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

/system/core/include/netutils/
H A Difc.h62 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);
/system/core/libnetutils/
H A Difc_utils.c66 in_addr_t prefixLengthToIpv4Netmask(int prefix_length) argument
71 if (prefix_length <= 0 || prefix_length > 32) {
75 mask = ~mask << (32 - prefix_length);
509 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument
521 netmask = prefixLengthToIpv4Netmask(prefix_length);
526 if (prefix_length == 32) {

Completed in 4 milliseconds