Lines Matching refs:fd

38 throttle_sasl (unsigned int fd)  in throttle_sasl()  argument
42 logmessage("DEBUG: fd: %d checking throttle-sasl\n", fd); in throttle_sasl()
45 if(strlen(mysqlchar_array[fd][0]) < 2) in throttle_sasl()
47 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_sasl()
53 host_array[fd][2], /* host */ in throttle_sasl()
54 triplet_array[fd][1], /* from */ in throttle_sasl()
55 triplet_array[fd][2], /* to */ in throttle_sasl()
56 atol(triplet_array[fd][3]), /* size_cur */ in throttle_sasl()
57 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_sasl()
58 atol(triplet_array[fd][3]), /* quota_cur */ in throttle_sasl()
59 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_sasl()
60 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_sasl()
61 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_sasl()
62 triplet_array[fd][4] /* sasl_username */ in throttle_sasl()
66 snprintf(mysqlquery_array[fd], 512, in throttle_sasl()
71 triplet_array[fd][4], in throttle_sasl()
72 atoi(triplet_array[fd][3]), in throttle_sasl()
73 atol(mysqlchar_array[fd][5]), in throttle_sasl()
74 atol(mysqlchar_array[fd][9]), in throttle_sasl()
75 atol(mysqlchar_array[fd][7]), in throttle_sasl()
76 atol(mysqlchar_array[fd][1]), in throttle_sasl()
77 atol(mysqlchar_array[fd][6])); in throttle_sasl()
78 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_sasl()
85 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_sasl()
91 host_array[fd][2], /* host */ in throttle_sasl()
92 triplet_array[fd][1], /* from */ in throttle_sasl()
93 triplet_array[fd][2], /* to */ in throttle_sasl()
94 atol(triplet_array[fd][3]), /* size_cur */ in throttle_sasl()
95 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_sasl()
96 atol(mysqlchar_array[fd][4]), /* quota_cur */ in throttle_sasl()
97 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_sasl()
98 atol(mysqlchar_array[fd][2]), /* count_cur */ in throttle_sasl()
99 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_sasl()
100 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_sasl()
101 atol(mysqlchar_array[fd][10]), /* rcpt_cur */ in throttle_sasl()
102 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_sasl()
103 atol(mysqlchar_array[fd][11]), /* rcpt_tot */ in throttle_sasl()
104 tquota[fd], /* quota percentage */ in throttle_sasl()
105 tcount[fd], /* count percentage */ in throttle_sasl()
106 trcpt[fd], /* rcpt percentage */ in throttle_sasl()
107 triplet_array[fd][4] /* sasl_username */ in throttle_sasl()
114 if(timenow > (unsigned int)(atol(mysqlchar_array[fd][6])+atol(mysqlchar_array[fd][3]))) in throttle_sasl()
119 host_array[fd][2], /* host */ in throttle_sasl()
120 triplet_array[fd][1], /* from */ in throttle_sasl()
121 triplet_array[fd][2], /* to */ in throttle_sasl()
122 atol(triplet_array[fd][3]), /* size_cur */ in throttle_sasl()
123 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_sasl()
124 atoi(triplet_array[fd][3]), /* quota_cur */ in throttle_sasl()
125 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_sasl()
126 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_sasl()
127 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_sasl()
128 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_sasl()
129 atol(mysqlchar_array[fd][11])+1, /* rcpt_tot */ in throttle_sasl()
130 triplet_array[fd][4] /* sasl_username */ in throttle_sasl()
134 snprintf(mysqlquery_array[fd], 512, in throttle_sasl()
146 atoi(triplet_array[fd][3]), in throttle_sasl()
147 instance_inc[fd], in throttle_sasl()
148 triplet_array[fd][4]); in throttle_sasl()
149 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_sasl()
157 if(atol(mysqlchar_array[fd][2]) >= atol(mysqlchar_array[fd][1]) || /* count */ in throttle_sasl()
158 atol(mysqlchar_array[fd][4]) >= atol(mysqlchar_array[fd][5]) || /* quota */ in throttle_sasl()
159 atol(mysqlchar_array[fd][10]) >= atol(mysqlchar_array[fd][9])) /* rcpt max */ in throttle_sasl()
161 if((instance_inc[fd] == 0) && (atol(mysqlchar_array[fd][10]) < atol(mysqlchar_array[fd][9]))) in throttle_sasl()
167 host_array[fd][2], /* host */ in throttle_sasl()
168 triplet_array[fd][1], /* from */ in throttle_sasl()
169 triplet_array[fd][2], /* to */ in throttle_sasl()
170 atol(triplet_array[fd][3]), /* size_cur */ in throttle_sasl()
171 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_sasl()
172 atol(mysqlchar_array[fd][4]), /* quota_cur */ in throttle_sasl()
173 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_sasl()
174 atol(mysqlchar_array[fd][2]), /* count_cur */ in throttle_sasl()
175 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_sasl()
176 atol(mysqlchar_array[fd][8]), /* count_tot */ in throttle_sasl()
177 atol(mysqlchar_array[fd][10]), /* rcpt_cur */ in throttle_sasl()
178 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_sasl()
179 atol(mysqlchar_array[fd][11]), /* rcpt_tot */ in throttle_sasl()
180 tquota[fd], /* quota percentage */ in throttle_sasl()
181 tcount[fd], /* count percentage */ in throttle_sasl()
182 trcpt[fd], /* rcpt percentage */ in throttle_sasl()
183 triplet_array[fd][4] /* sasl_username */ in throttle_sasl()
187 snprintf(mysqlquery_array[fd], 512, in throttle_sasl()
191 triplet_array[fd][1]); in throttle_sasl()
192 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_sasl()
203 tattrib_array[fd][0], /* attribute state */ in throttle_sasl()
204 host_array[fd][2], /* host */ in throttle_sasl()
205 triplet_array[fd][1], /* from */ in throttle_sasl()
206 triplet_array[fd][2], /* to */ in throttle_sasl()
207 atol(triplet_array[fd][3]), /* size_cur */ in throttle_sasl()
208 atol(mysqlchar_array[fd][7]), /* size_max */ in throttle_sasl()
209 atol(mysqlchar_array[fd][4])+atol(triplet_array[fd][3]), /* quota_cur */ in throttle_sasl()
210 atol(mysqlchar_array[fd][5]), /* quota_max */ in throttle_sasl()
211 atol(mysqlchar_array[fd][2])+instance_inc[fd], /* count_cur */ in throttle_sasl()
212 atol(mysqlchar_array[fd][1]), /* count_max */ in throttle_sasl()
213 atol(mysqlchar_array[fd][8])+instance_inc[fd], /* count_tot */ in throttle_sasl()
214 atol(mysqlchar_array[fd][10])+1, /* rcpt_cur */ in throttle_sasl()
215 atol(mysqlchar_array[fd][9]), /* rcpt_max */ in throttle_sasl()
216 atol(mysqlchar_array[fd][11])+1, /* rcpt_tot */ in throttle_sasl()
217 tquota[fd], /* quota percentage */ in throttle_sasl()
218 tcount[fd], /* count percentage */ in throttle_sasl()
219 trcpt[fd], /* rcpt percentage */ in throttle_sasl()
220 triplet_array[fd][4] /* sasl_username */ in throttle_sasl()
224 snprintf(mysqlquery_array[fd], 512, in throttle_sasl()
233 atol(triplet_array[fd][3]), in throttle_sasl()
234 instance_inc[fd], in throttle_sasl()
235 instance_inc[fd], in throttle_sasl()
236 triplet_array[fd][4]); in throttle_sasl()
237 if(db_doquery(fd) == -1) return(db_failure(fd, "throttle")); in throttle_sasl()