Lines Matching defs:netmask
803 struct sockaddr *netmask, int flags, struct sockaddr *src,
883 gateway, netmask, flags, NULL, ifscope);
888 * this destination. Should check about netmask!!!
920 info.rti_info[RTAX_NETMASK] = netmask;
1086 struct sockaddr *netmask, int flags, struct rtentry **ret_nrt)
1088 return (rtrequest_common_locked(req, dst, gateway, netmask,
1094 struct sockaddr *gateway, struct sockaddr *netmask, int flags,
1102 return (rtrequest_common_locked(req, dst, gateway, netmask,
1123 struct sockaddr *gateway, struct sockaddr *netmask, int flags,
1143 * a netmask in the tree
1146 netmask = 0;
1172 /* Embed ifscope into netmask (local copy) */
1173 if (netmask != NULL)
1174 netmask = mask_copy(netmask, &mask, ifscope);
1184 if ((rn = rnh->rnh_deladdr(dst, netmask, rnh)) == 0)
1270 if ((netmask = rt->rt_genmask) == 0)
1296 /* Embed or clear ifscope into/from netmask (local copy) */
1297 if (netmask != NULL)
1298 netmask = mask_copy(netmask, &mask, ifscope);
1337 if (netmask)
1338 rt_maskedcopy(dst, ndst, netmask);
1352 rn = rnh->rnh_addaddr((caddr_t)ndst, (caddr_t)netmask,
1377 (caddr_t)netmask,
1465 struct sockaddr *netmask,
1472 error = rtrequest_locked(req, dst, gateway, netmask, flags, ret_nrt);
1726 struct sockaddr *netmask)
1730 u_char *cp3 = (u_char *)netmask;
1749 node_lookup(struct sockaddr *dst, struct sockaddr *netmask,
1768 /* Embed (or clear) ifscope into netmask */
1769 if (netmask != NULL)
1770 netmask = mask_copy(netmask, &mask, ifscope);
1775 rn = rnh->rnh_lookup_args(dst, netmask, rnh, f, w);
1816 rt_lookup(boolean_t lookup_only, struct sockaddr *dst, struct sockaddr *netmask,
1825 netmask = NULL;
1832 rn = rnh->rnh_lookup(dst, netmask, rnh);
1846 rn0 = rn = node_lookup(dst, netmask, IFSCOPE_NONE);
1901 rn = node_lookup(dst, netmask, ifscope);