Lines Matching defs:mask
572 naddr addr, mask;
579 /* "subnet=x.y.z.u/mask[,metric]" must be alone on the line */
675 if (val0 == NULL || !getnet(val0, &addr, &mask)
679 parm.parm_mask = mask;
798 /* look for trust_gateway=x.y.z|net/mask|...) */
817 &tg->tgate_nets[i].mask)
819 || tg->tgate_nets[i].mask == 0) {
944 naddr mask; /* in host byte order */
983 mask = std_mask(htonl(in.s_addr));
984 if ((~mask & in.s_addr) != 0)
985 mask = HOST_MASK;
987 mask = (naddr)strtoul(mname, &p, 0);
988 if (*p != '\0' || mask > 32)
990 if (mask != 0)
991 mask = HOST_MASK << (32-mask);
994 /* must have mask of 0 with default */
995 if (mask != 0 && in.s_addr == RIP_DEFAULT)
998 if ((~mask & in.s_addr) != 0)
1001 if ((mask & in.s_addr) == 0 && in.s_addr != RIP_DEFAULT)
1009 *maskp = mask;