Lines Matching refs:netmask
222 caddr_t netmask = NULL;
228 netmask = x->rn_key;
231 if (x && netmask) {
232 while (x && x->rn_mask != netmask)
490 caddr_t netmask = (caddr_t)n_arg;
498 if ((mlen = *(u_char *)netmask) > max_keylen)
507 Bcopy(netmask + skip, addmask_key + skip, mlen - skip);
531 netmask = cp = (caddr_t)(x + 2);
543 cplim = netmask + mlen; isnormal = 1;
544 for (cp = netmask + skip; (cp < cplim) && *(u_char *)cp == 0xff;)
552 b += (cp - netmask) << 3;
599 caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg;
614 if (netmask) {
615 if ((x = rn_addmask(netmask, 0, top->rn_offset)) == 0)
619 netmask = x->rn_key;
627 if (tt->rn_mask == netmask)
629 if (netmask == 0 ||
631 ((b_leaf < tt->rn_bit) /* index(netmask) > node */
632 || rn_refines(netmask, tt->rn_mask)
633 || rn_lexobetter(netmask, tt->rn_mask))))
677 if (netmask) {
678 tt->rn_mask = netmask;
709 if ((netmask == 0) || (b > t->rn_bit ))
736 if (mmask == netmask) {
741 if (rn_refines(netmask, mmask)
742 || rn_lexobetter(netmask, mmask))
755 caddr_t v, netmask;
759 netmask = netmask_arg;
772 if (netmask) {
773 if ((x = rn_addmask(netmask, 1, head_off)) == 0)
775 netmask = x->rn_key;
776 while (tt->rn_mask != netmask)