Home
last modified time | relevance | path

Searched refs:IFNAMSIZ (Results 1 – 12 of 12) sorted by relevance

/system/extras/tests/net_test/
Dnet_test.py59 IFNAMSIZ = 16 variable
176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0)
178 return struct.unpack("%dsi" % IFNAMSIZ, ifr)[1]
187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0)
195 _, flags = struct.unpack("%dsH" % IFNAMSIZ, ifr)
200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
DREADME48 IFNAMSIZ = 16). On the guest, they are named eth0, eth1, etc.
Dsock_diag.py283 net_test.IFNAMSIZ)
/system/core/toolbox/
Diftop.c55 char name[IFNAMSIZ];
143 ret = sscanf(p, "%" STR(IFNAMSIZ) "s", ifs->name); in get_interfaces()
/system/connectivity/dhcp_client/
Ddevice_info.cc58 if (if_name_len > IFNAMSIZ) { in GetDeviceInfo()
/system/core/libsysutils/src/
DNetlinkEvent.cpp162 char ifname[IFNAMSIZ] = ""; in parseIfAddrMessage()
340 char dev[IFNAMSIZ] = ""; in parseRtMessage()
428 char ifname[IFNAMSIZ]; in parseNdUserOptMessage()
468 INET6_ADDRSTRLEN + strlen("%") + IFNAMSIZ + strlen(","); in parseNdUserOptMessage()
/system/netd/server/
DRouteController.cpp244 *length = strlcpy(name, input, IFNAMSIZ) + 1; in padInterfaceName()
245 if (*length > IFNAMSIZ) { in padInterfaceName()
246 ALOGE("interface name too long (%zu > %u)", *length, IFNAMSIZ); in padInterfaceName()
276 char iifName[IFNAMSIZ], oifName[IFNAMSIZ]; in modifyIpRule()
DNetdConstants.cpp166 if ((name_len == 0) || (name_len > IFNAMSIZ)) { in isIfaceName()
/system/connectivity/shill/net/
Dsockets.cc59 char dev_name[IFNAMSIZ]; in BindToDevice()
/system/bt/btif/src/
Dbtif_pan.c319 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
328 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
418 strncpy(ifr.ifr_name, TAP_IF_NAME, IFNAMSIZ); in btpan_tap_open()
/system/core/libnetutils/
Difc_utils.c176 strncpy(ifr->ifr_name, name, IFNAMSIZ); in ifc_init_ifr()
177 ifr->ifr_name[IFNAMSIZ - 1] = 0; in ifc_init_ifr()
/system/core/init/
Dbuiltins.cpp90 strlcpy(ifr.ifr_name, interface, IFNAMSIZ); in __ifupdown()