Lines Matching refs:index
153 inline void increaseFltRuleCount(int index, ipa_ip_type iptype, int increment)
155 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0))
157 IPACMERR("Index is out of range: %d.\n", index);
162 flt_rule_count_v4[index] += increment;
163 IPACMDBG_H("Now num of v4 flt rules on client %d is %d.\n", index, flt_rule_count_v4[index]);
167 flt_rule_count_v6[index] += increment;
168 IPACMDBG_H("Now num of v6 flt rules on client %d is %d.\n", index, flt_rule_count_v6[index]);
173 inline void decreaseFltRuleCount(int index, ipa_ip_type iptype, int decrement)
175 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0))
177 IPACMERR("Index is out of range: %d.\n", index);
182 flt_rule_count_v4[index] -= decrement;
183 IPACMDBG_H("Now num of v4 flt rules on client %d is %d.\n", index, flt_rule_count_v4[index]);
187 flt_rule_count_v6[index] -= decrement;
188 IPACMDBG_H("Now num of v6 flt rules on client %d is %d.\n", index, flt_rule_count_v6[index]);
193 inline int getFltRuleCount(int index, ipa_ip_type iptype)
195 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0))
197 IPACMERR("Index is out of range: %d.\n", index);
202 return flt_rule_count_v4[index];
206 return flt_rule_count_v6[index];
299 data_fid->if_index = ipa_if_index; // already ipa index, not fid index
333 data_fid->if_index = ipa_if_index; // already ipa index, not fid index