Searched refs:IFNAMSIZ (Results 1 – 12 of 12) sorted by relevance
/system/extras/tests/net_test/ |
D | net_test.py | 59 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)
|
D | README | 48 IFNAMSIZ = 16). On the guest, they are named eth0, eth1, etc.
|
D | sock_diag.py | 283 net_test.IFNAMSIZ)
|
/system/core/toolbox/ |
D | iftop.c | 55 char name[IFNAMSIZ]; 143 ret = sscanf(p, "%" STR(IFNAMSIZ) "s", ifs->name); in get_interfaces()
|
/system/connectivity/dhcp_client/ |
D | device_info.cc | 58 if (if_name_len > IFNAMSIZ) { in GetDeviceInfo()
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 162 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/ |
D | RouteController.cpp | 244 *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()
|
D | NetdConstants.cpp | 166 if ((name_len == 0) || (name_len > IFNAMSIZ)) { in isIfaceName()
|
/system/connectivity/shill/net/ |
D | sockets.cc | 59 char dev_name[IFNAMSIZ]; in BindToDevice()
|
/system/bt/btif/src/ |
D | btif_pan.c | 319 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/ |
D | ifc_utils.c | 176 strncpy(ifr->ifr_name, name, IFNAMSIZ); in ifc_init_ifr() 177 ifr->ifr_name[IFNAMSIZ - 1] = 0; in ifc_init_ifr()
|
/system/core/init/ |
D | builtins.cpp | 90 strlcpy(ifr.ifr_name, interface, IFNAMSIZ); in __ifupdown()
|