Home
last modified time | relevance | path

Searched refs:prefix_length (Results 1 – 2 of 2) sorted by relevance

/system/core/libnetutils/
Difc_utils.c65 in_addr_t prefixLengthToIpv4Netmask(int prefix_length) in prefixLengthToIpv4Netmask() argument
70 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() argument
545 netmask = prefixLengthToIpv4Netmask(prefix_length); in ifc_act_on_ipv4_route()
550 if (prefix_length == 32) { in ifc_act_on_ipv4_route()
/system/core/libnetutils/include/netutils/
Difc.h65 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);