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()531 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument543 netmask = prefixLengthToIpv4Netmask(prefix_length); in ifc_act_on_ipv4_route()548 if (prefix_length == 32) { in ifc_act_on_ipv4_route()
62 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);