Lines Matching defs:fid_table

70  * common_classify(packet, fid_table, slctrs_srchd)
76 common_classify(ipgpc_packet_t *packet, ht_match_t *fid_table,
83 ipgpc_findfilters(IPGPC_TABLE_DIR, packet->direction, fid_table);
91 ipgpc_findfilters(IPGPC_TABLE_IF, packet->if_index, fid_table);
99 ipgpc_findfilters(IPGPC_BA_DSID, packet->dsfield, fid_table);
107 ipgpc_findfilters(IPGPC_TABLE_UID, packet->uid, fid_table);
115 ipgpc_findfilters(IPGPC_TABLE_PROJID, packet->projid, fid_table);
124 packet->proto, fid_table);
138 packet->sport, fid_table);
152 packet->dport, fid_table);
193 * FREE_FID_TABLE(fid_table, p, q, i)
195 * searches fid_table for dynamically allocated memory and frees it
198 #define FREE_FID_TABLE(fid_table, p, q, i) \
199 /* free all allocated memory in fid_table */ \
201 if (fid_table[i].next != NULL) { \
202 p = fid_table[i].next; \
230 ht_match_t fid_table[HASH_SIZE];
239 * no need to free fid_table. Since zero selectors were
247 bzero(fid_table, sizeof (ht_match_t) * HASH_SIZE);
250 rc = common_classify(packet, fid_table, &slctrs_srchd);
253 FREE_FID_TABLE(fid_table, p, q, i);
266 V4_PART_OF_V6(packet->saddr), fid_table);
271 FREE_FID_TABLE(fid_table, p, q, i);
282 V4_PART_OF_V6(packet->daddr), fid_table);
287 FREE_FID_TABLE(fid_table, p, q, i);
300 packet->saddr, fid_table);
305 FREE_FID_TABLE(fid_table, p, q, i);
316 packet->daddr, fid_table);
321 FREE_FID_TABLE(fid_table, p, q, i);
334 FREE_FID_TABLE(fid_table, p, q, i);
341 * no need to free fid_table. Since zero selectors were
349 class_id = bestmatch(fid_table, slctrs_srchd);
351 FREE_FID_TABLE(fid_table, p, q, i);
358 * bestmatch(fid_table, bestmask)
360 * determines the bestmatching filter in fid_table which matches the criteria
364 bestmatch(ht_match_t *fid_table, uint16_t bestmask)
376 if (fid_table[i].key == 0) {
379 for (item = &fid_table[i]; item != NULL; item = item->next) {