Lines Matching defs:mask
167 in_addr_t gate, mask, v1_mask, dst, ddst_h = 0;
442 /* decide what mask was intended */
444 0 == (mask = ntohl(n->n_mask)) ||
445 0 != (ntohl(dst) & ~mask))
446 mask = ripv1_mask_host(dst, ifp);
453 rt = rtget(dst, mask);
458 v12buf.n->n_mask = htonl(mask);
731 if (tg != NULL && tg->tgate_nets->mask != 0) {
821 0 == (mask = ntohl(n->n_mask))) {
822 mask = ripv1_mask_host(dst, ifp);
823 } else if ((ntohl(dst) & ~mask) != 0) {
827 naddr_ntoa(htonl(mask)),
832 if (mask == HOST_MASK &&
835 addrname(dst, mask, 0));
857 if (tg != NULL && (tn = tg->tgate_nets)->mask != 0) {
859 if (on_net(dst, tn->net, tn->mask) &&
860 tn->mask <= mask)
863 if (i >= MAX_TGATE_NETS || tn->mask == 0) {
865 addrname(dst, mask, 0));
903 (((rt = rtget(dst, mask)) == NULL ||
905 (v1_mask = ripv1_mask_net(dst, 0)) > mask) {
908 i = (v1_mask & ~mask)/ddst_h;
927 addrname(dst, mask, 0),
932 mask = v1_mask;
948 input_route(dst, mask, &new, n, rt_state);
1007 /* decide what mask was intended */
1009 0 == (mask = ntohl(n->n_mask)) ||
1010 0 != (ntohl(dst) & ~mask))
1011 mask = ripv1_mask_host(dst, ifp);
1014 rt = rtget(dst, mask);
1019 v12buf.n->n_mask = htonl(mask);
1060 in_addr_t mask,
1083 rt = rtget(dst, mask);
1100 rtadd(dst, mask, rt_state, new);