Lines Matching refs:fd

38 throttle_host (unsigned int fd)  in throttle_host()  argument
42 logmessage("DEBUG: fd: %d checking throttle-host\n", fd); in throttle_host()
45 if(strlen(mysqlchar_array[fd][0]) < 2) in throttle_host()
47 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_host()
53 host_array[fd][2], /* host */ in throttle_host()
54 triplet_array[fd][1], /* from */ in throttle_host()
55 triplet_array[fd][2], /* to */ in throttle_host()
56 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
57 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
58 atol(triplet_array[fd][3]), /* quota_cur */ in throttle_host()
59 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
60 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
61 atol(mysqlchar_array[fd][9]) /* rcpt_max */ in throttle_host()
65 snprintf(mysqlquery_array[fd], 512, in throttle_host()
70 host_array[fd][2], in throttle_host()
71 atoi(triplet_array[fd][3]), in throttle_host()
72 atol(mysqlchar_array[fd][5]), in throttle_host()
73 atol(mysqlchar_array[fd][9]), in throttle_host()
74 atol(mysqlchar_array[fd][7]), in throttle_host()
75 atol(mysqlchar_array[fd][1]), in throttle_host()
76 atol(mysqlchar_array[fd][6])); in throttle_host()
77 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_host()
84 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_host()
90 host_array[fd][2], /* host */ in throttle_host()
91 triplet_array[fd][1], /* from */ in throttle_host()
92 triplet_array[fd][2], /* to */ in throttle_host()
93 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
94 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
95 atol(mysqlchar_array[fd][4]), /* quota_cur */ in throttle_host()
96 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
97 atol(mysqlchar_array[fd][2]), /* count_cur */ in throttle_host()
98 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
99 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_host()
100 atol(mysqlchar_array[fd][10]), /* rcpt_cur */ in throttle_host()
101 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_host()
102 atol(mysqlchar_array[fd][11]), /* rcpt_tot */ in throttle_host()
103 tquota[fd], /* quota percentage */ in throttle_host()
104 tcount[fd], /* count percentage */ in throttle_host()
105 trcpt[fd] /* rcpt percentage */ in throttle_host()
112 if(timenow > (unsigned int)(atol(mysqlchar_array[fd][6])+atol(mysqlchar_array[fd][3]))) in throttle_host()
117 host_array[fd][2], /* host */ in throttle_host()
118 triplet_array[fd][1], /* from */ in throttle_host()
119 triplet_array[fd][2], /* to */ in throttle_host()
120 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
121 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
122 atoi(triplet_array[fd][3]), /* quota_cur */ in throttle_host()
123 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
124 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
125 atol(mysqlchar_array[fd][8])+instance_inc[fd], /* count_tot */ in throttle_host()
126 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_host()
127 atol(mysqlchar_array[fd][11])+1 /* rcpt_tot */ in throttle_host()
131 snprintf(mysqlquery_array[fd], 512, in throttle_host()
143 atoi(triplet_array[fd][3]), in throttle_host()
144 instance_inc[fd], in throttle_host()
145 mysqlchar_array[fd][0]); in throttle_host()
146 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_host()
154 if(atol(mysqlchar_array[fd][2]) >= atol(mysqlchar_array[fd][1]) || /* count */ in throttle_host()
155 atol(mysqlchar_array[fd][4]) >= atol(mysqlchar_array[fd][5]) || /* quota */ in throttle_host()
156 atol(mysqlchar_array[fd][10]) >= atol(mysqlchar_array[fd][9])) /* rcpt max */ in throttle_host()
158 if((instance_inc[fd] == 0) && (atol(mysqlchar_array[fd][10]) < atol(mysqlchar_array[fd][9]))) in throttle_host()
164 host_array[fd][2], /* host */ in throttle_host()
165 triplet_array[fd][1], /* from */ in throttle_host()
166 triplet_array[fd][2], /* to */ in throttle_host()
167 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
168 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
169 atol(mysqlchar_array[fd][4]), /* quota_cur */ in throttle_host()
170 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
171 atol(mysqlchar_array[fd][2]), /* count_cur */ in throttle_host()
172 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
173 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_host()
174 atol(mysqlchar_array[fd][10]), /* rcpt_cur */ in throttle_host()
175 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_host()
176 atol(mysqlchar_array[fd][11]), /* rcpt_tot */ in throttle_host()
177 atol(mysqlchar_array[fd][14]), /* abuse_tot */ in throttle_host()
178 tquota[fd], /* quota percentage */ in throttle_host()
179 tcount[fd], /* count percentage */ in throttle_host()
180 trcpt[fd] /* rcpt percentage */ in throttle_host()
184 snprintf(mysqlquery_array[fd], 512, in throttle_host()
188 mysqlchar_array[fd][0]); in throttle_host()
189 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_host()
193 if(atol(mysqlchar_array[fd][14]) >= SENDER_THROTTLE_AUTOBLACKLIST_NUMBER-1) /* _abuse_tot */ in throttle_host()
201 snprintf(mysqlquery_array[fd], 512, in throttle_host()
204 mysqlchar_array[fd][0], expire); in throttle_host()
207 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_host()
212 host_array[fd][2], /* host */ in throttle_host()
213 triplet_array[fd][1], /* from */ in throttle_host()
214 triplet_array[fd][2], /* to */ in throttle_host()
215 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
216 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
217 atol(mysqlchar_array[fd][4]), /* quota_cur */ in throttle_host()
218 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
219 atol(mysqlchar_array[fd][2]), /* count_cur */ in throttle_host()
220 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
221 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_host()
222 atol(mysqlchar_array[fd][10]), /* rcpt_cur */ in throttle_host()
223 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_host()
224 atol(mysqlchar_array[fd][11]), /* rcpt_tot */ in throttle_host()
225 atol(mysqlchar_array[fd][14]), /* abuse_tot */ in throttle_host()
226 tquota[fd], /* quota percentage */ in throttle_host()
227 tcount[fd], /* count percentage */ in throttle_host()
228 trcpt[fd] /* rcpt percentage */ in throttle_host()
241 tattrib_array[fd][0], /* attribute state */ in throttle_host()
242 host_array[fd][2], /* host */ in throttle_host()
243 triplet_array[fd][1], /* from */ in throttle_host()
244 triplet_array[fd][2], /* to */ in throttle_host()
245 atol(triplet_array[fd][3]), /* size_cur */ in throttle_host()
246 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_host()
247 atol(mysqlchar_array[fd][4])+atol(triplet_array[fd][3]), /* quota_cur */ in throttle_host()
248 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_host()
249 atol(mysqlchar_array[fd][2])+instance_inc[fd], /* count_cur */ in throttle_host()
250 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_host()
251 atol(mysqlchar_array[fd][8])+instance_inc[fd], /* count_tot */ in throttle_host()
252 atol(mysqlchar_array[fd][10])+1, /* rcpt_cur */ in throttle_host()
253 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_host()
254 atol(mysqlchar_array[fd][11])+1, /* rcpt_tot */ in throttle_host()
255 tquota[fd], /* quota percentage*/ in throttle_host()
256 tcount[fd], /* count percentage*/ in throttle_host()
257 trcpt[fd] /* rcpt percentage*/ in throttle_host()
261 snprintf(mysqlquery_array[fd], 512, in throttle_host()
270 atol(triplet_array[fd][3]), in throttle_host()
271 instance_inc[fd], in throttle_host()
272 instance_inc[fd], in throttle_host()
273 mysqlchar_array[fd][0]); in throttle_host()
274 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_host()