Home
last modified time | relevance | path

Searched refs:hwaddr (Results 1 – 7 of 7) sorted by relevance

/system/core/libnetutils/
Ddhcpmsg.c24 static void *init_dhcp_msg(dhcp_msg *msg, int type, void *hwaddr, uint32_t xid) in init_dhcp_msg() argument
39 memcpy(msg->chaddr, hwaddr, 6); in init_dhcp_msg()
55 int init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid) in init_dhcp_discover_msg() argument
59 x = init_dhcp_msg(msg, DHCPDISCOVER, hwaddr, xid); in init_dhcp_discover_msg()
73 int init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid, in init_dhcp_request_msg() argument
78 x = init_dhcp_msg(msg, DHCPREQUEST, hwaddr, xid); in init_dhcp_request_msg()
Ddhcpmsg.h101 int init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid);
103 int init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid,
Dpacket.h20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
Ddhcpclient.c399 unsigned char hwaddr[6]; in dhcp_init_ifc() local
407 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
414 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
449 size = init_dhcp_discover_msg(msg, hwaddr, xid); in dhcp_init_ifc()
453 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr); in dhcp_init_ifc()
Dpacket.c43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument
56 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN); in open_raw_socket()
/system/extras/tests/net_test/
Dnet_test.py181 def SetInterfaceHWAddr(ifname, hwaddr): argument
183 hwaddr = hwaddr.replace(":", "")
184 hwaddr = hwaddr.decode("hex")
185 if len(hwaddr) != 6:
186 raise ValueError("Unknown hardware address length %d" % len(hwaddr))
187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
/system/netd/server/
DCommandListener.cpp288 unsigned char hwaddr[6]; in runCommand() local
292 memset(hwaddr, 0, sizeof(hwaddr)); in runCommand()
300 if (ifc_get_hwaddr(argv[2], (void *) hwaddr)) { in runCommand()
320 hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], hwaddr[4], hwaddr[5], in runCommand()