Searched refs:prefix_length (Results 1 – 2 of 2) sorted by relevance
65 in_addr_t prefixLengthToIpv4Netmask(int prefix_length) in prefixLengthToIpv4Netmask() argument70 if (prefix_length <= 0 || prefix_length > 32) { in prefixLengthToIpv4Netmask()74 mask = ~mask << (32 - prefix_length); in prefixLengthToIpv4Netmask()533 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument545 netmask = prefixLengthToIpv4Netmask(prefix_length); in ifc_act_on_ipv4_route()550 if (prefix_length == 32) { in ifc_act_on_ipv4_route()
65 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);