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

/system/core/include/netutils/
H A Difc.h61 extern int ifc_add_route(const char *name, const char *addr, int prefix_length,
64 int prefix_length, const char *gw);
72 extern in_addr_t prefixLengthToIpv4Netmask(int prefix_length);
/system/core/libnetutils/
H A Difc_utils.c61 in_addr_t prefixLengthToIpv4Netmask(int prefix_length) argument
66 if (prefix_length <= 0 || prefix_length > 32) {
70 mask = ~mask << (32 - prefix_length);
504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument
516 netmask = prefixLengthToIpv4Netmask(prefix_length);
521 if (prefix_length == 32) {
820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument
837 rtmsg.rtmsg_dst_len = prefix_length;
840 if (prefix_length
867 ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, const char *gw) argument
939 ifc_add_ipv4_route(const char *ifname, struct in_addr dst, int prefix_length, struct in_addr gw) argument
950 ifc_add_ipv6_route(const char *ifname, struct in6_addr dst, int prefix_length, struct in6_addr gw) argument
956 ifc_add_route(const char *ifname, const char *dst, int prefix_length, const char *gw) argument
963 ifc_remove_route(const char *ifname, const char*dst, int prefix_length, const char *gw) argument
[all...]
/system/netd/
H A DCommandListener.cpp347 int prefix_length = 0; local
352 if (sscanf(argv[6], "%d", &prefix_length) != 1) {
358 if (ifc_add_route(argv[3], argv[5], prefix_length, argv[7])) {
367 prefix_length, argv[7]);
375 if (ifc_remove_route(argv[3], argv[5], prefix_length, argv[7])) {
384 prefix_length, argv[7]);

Completed in 56 milliseconds