Lines Matching defs:bestmatch
66 static int bestmatch(ht_match_t *, uint16_t);
349 class_id = bestmatch(fid_table, slctrs_srchd);
358 * bestmatch(fid_table, bestmask)
364 bestmatch(ht_match_t *fid_table, uint16_t bestmask)
367 int bestmatch = -1;
398 * and bestmatch() should continue
420 if (bestmatch == -1) { /* first matching filter */
421 /* this filter becomes the bestmatch */
428 bestmatch = key;
441 /* check to see if this is the new bestmatch */
443 oldbm = bestmatch;
444 ipgpc3dbg(("bestmatch: filter %s " \
451 bestmatch = key;
453 ipgpc3dbg(("bestmatch: filter %s " \
462 if (bestmatch == -1) { /* no best matches were found */
463 ipgpc3dbg(("bestmatch: No filters ACCEPTED"));
466 ipgpc3dbg(("bestmatch: filter %s ACCEPTED with priority %d " \
468 ipgpc_fid_list[bestmatch].filter.filter_name,
469 ipgpc_fid_list[bestmatch].filter.priority,
470 ipgpc_fid_list[bestmatch].filter.precedence));
471 return (ipgpc_fid_list[bestmatch].class_id);