Lines Matching refs:netmask

172 	uint8_t *netmask = NULL;  in rn_lookup()  local
180 netmask = x->rn_key; in rn_lookup()
183 if (x && netmask) { in rn_lookup()
184 while (x && x->rn_mask != netmask) in rn_lookup()
435 uint8_t *netmask = n_arg; in rn_addmask() local
451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); in rn_addmask()
474 netmask = cp = (uint8_t *)(x + 2); in rn_addmask()
489 cplim = netmask + mlen; in rn_addmask()
491 for (cp = netmask + skip; (cp < cplim) && *cp == 0xff; ) in rn_addmask()
499 b += (cp - netmask) << 3; in rn_addmask()
547 uint8_t *v = v_arg, *netmask = n_arg; in rn_addroute() local
562 if (netmask) { in rn_addroute()
563 if ((x = rn_addmask(netmask, 0, top->rn_off)) == NULL) { in rn_addroute()
569 netmask = x->rn_key; in rn_addroute()
577 if (tt->rn_mask == netmask) { in rn_addroute()
582 if (netmask == NULL || in rn_addroute()
585 rn_refines(netmask, tt->rn_mask) || in rn_addroute()
586 rn_lexobetter(netmask, tt->rn_mask)))) in rn_addroute()
630 if (netmask) { in rn_addroute()
631 tt->rn_mask = netmask; in rn_addroute()
663 if ((netmask == NULL) || (b > t->rn_b)) { in rn_addroute()
696 if (mmask == netmask) { in rn_addroute()
701 if (rn_refines(netmask, mmask) || rn_lexobetter(netmask, mmask)) in rn_addroute()
714 uint8_t *v, *netmask; in rn_delete() local
719 netmask = netmask_arg; in rn_delete()
734 if (netmask) { in rn_delete()
735 if ((x = rn_addmask(netmask, 1, head_off)) == NULL) { in rn_delete()
739 netmask = x->rn_key; in rn_delete()
740 while (tt->rn_mask != netmask) in rn_delete()