Home
last modified time | relevance | path

Searched refs:prefixlen (Results 1 – 11 of 11) sorted by relevance

/system/extras/tests/net_test/
Diproute.py427 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex): argument
430 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
436 def AddAddress(self, address, prefixlen, ifindex): argument
438 RTM_NEWADDR, address, prefixlen,
441 def DelAddress(self, address, prefixlen, ifindex): argument
443 RTM_DELADDR, address, prefixlen, 0, 0, ifindex)
455 def _Route(self, version, command, table, dest, prefixlen, nexthop, dev, argument
460 rtmsg = RTMsg((family, prefixlen, 0, 0, RT_TABLE_UNSPEC,
480 def AddRoute(self, version, table, dest, prefixlen, nexthop, dev): argument
481 self._Route(version, RTM_NEWROUTE, table, dest, prefixlen, nexthop, dev,
[all …]
Dsock_diag.py195 addr, prefixlen, port = arg
198 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
Dsrcaddr_selection_test.py87 self.assertEquals(64, ifa_msg.prefixlen)
Dmultinetwork_base.py253 prefixlen=64,
/system/netd/server/
DNetdConstants.cpp184 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { in parsePrefix() argument
185 if (!prefix || !family || !address || !prefixlen) { in parsePrefix()
202 *prefixlen = templen; in parsePrefix()
224 if (*prefixlen > 32) { in parsePrefix()
233 if (*prefixlen > 128) { in parsePrefix()
DNetdConstants.h49 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
DSockDiag.cpp161 uint8_t prefixlen = addrlen * 8; in sendDumpRequest() local
180 prefixlen, in sendDumpRequest()
/system/core/libnetutils/
Difc_utils.c261 int prefixlen) { in ifc_act_on_address() argument
320 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
336 ((struct in_addr *)addr)->s_addr |= htonl((1<<(32-prefixlen))-1); in ifc_act_on_address()
369 int ifc_add_address(const char *name, const char *address, int prefixlen) { in ifc_add_address() argument
370 return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen); in ifc_add_address()
373 int ifc_del_address(const char *name, const char * address, int prefixlen) { in ifc_del_address() argument
374 return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen); in ifc_del_address()
382 unsigned int prefixlen; in ifc_clear_ipv6_addresses() local
393 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
414 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
[all …]
/system/core/include/netutils/
Difc.h46 int prefixlen);
48 int prefixlen);
/system/core/libsysutils/src/
DNetlinkEvent.cpp565 has_prefix(const char* str, const char* end, const char* prefix, size_t prefixlen) in has_prefix() argument
567 if ((end-str) >= (ptrdiff_t)prefixlen && !memcmp(str, prefix, prefixlen)) in has_prefix()
568 return str + prefixlen; in has_prefix()
/system/connectivity/shill/doc/
Dipconfig-api.txt92 a netmask of 255.255.255.0 has a prefixlen of 24