bestmatch
if_info_t *bestmatch, *ifn;
bestmatch = NULL; /* no match yet */
bestmatch = ifn;
if (bestmatch == NULL) {
bestmatch = ifn;
if (bestmatch != NULL)
return (bestmatch->if_address.s_addr);
struct in_addr clientaddr, bestmatch;
bestmatch.s_addr = get_best_match(clientaddr);
if (bestmatch.s_addr)
(void) strcpy(tmp, inet_ntoa(bestmatch));
class_id = bestmatch(fid_table, slctrs_srchd);
int bestmatch = -1;
if (bestmatch == -1) { /* first matching filter */
bestmatch = key;
oldbm = bestmatch;
bestmatch = key;
if (bestmatch == -1) { /* no best matches were found */
ipgpc_fid_list[bestmatch].filter.filter_name,
ipgpc_fid_list[bestmatch].filter.priority,
ipgpc_fid_list[bestmatch].filter.precedence));
return (ipgpc_fid_list[bestmatch].class_id);
static int bestmatch(ht_match_t *, uint16_t);