Searched refs:hwaddr (Results 1 – 8 of 8) sorted by relevance
/system/core/libnetutils/ |
D | dhcpmsg.c | 24 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()
|
D | dhcpmsg.h | 101 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,
|
D | packet.h | 22 int open_raw_socket(const char* ifname, uint8_t hwaddr[ETH_ALEN], int if_index);
|
D | dhcpclient.c | 397 unsigned char hwaddr[6]; in dhcp_init_ifc() local 405 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc() 412 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc() 447 size = init_dhcp_discover_msg(msg, hwaddr, xid); in dhcp_init_ifc() 451 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr); in dhcp_init_ifc()
|
D | packet.c | 42 int open_raw_socket(const char* ifname __unused, uint8_t hwaddr[ETH_ALEN], int if_index) { in open_raw_socket() 52 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN); in open_raw_socket()
|
/system/netd/server/ |
D | WakeupController.cpp | 157 struct nfulnl_msg_packet_hw hwaddr = {}; in init() local 158 extract(payload, hwaddr); in init() 159 size_t hwAddrLen = ntohs(hwaddr.hw_addrlen); in init() 160 hwAddrLen = std::min(hwAddrLen, sizeof(hwaddr.hw_addr)); in init() 161 args.dstHw.assign(hwaddr.hw_addr, hwaddr.hw_addr + hwAddrLen); in init()
|
D | InterfaceController.cpp | 452 std::string hwAddrToStr(unsigned char* hwaddr) { in hwAddrToStr() argument 453 return StringPrintf("%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], in hwAddrToStr() 454 hwaddr[4], hwaddr[5]); in hwAddrToStr() 512 unsigned char hwaddr[ETH_ALEN] = {}; in getCfg() local 538 memcpy((void*) hwaddr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN); in getCfg() 544 cfgResult.hwAddr = hwAddrToStr(hwaddr); in getCfg()
|
/system/netd/tests/ |
D | binder_test.cpp | 2602 std::string hwAddrToStr(unsigned char* hwaddr) { in hwAddrToStr() argument 2603 return StringPrintf("%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], in hwAddrToStr() 2604 hwaddr[4], hwaddr[5]); in hwAddrToStr() 2635 unsigned char hwaddr[ETH_ALEN] = {}; in getInterfaceHwAddr() local 2637 memcpy((void*) hwaddr, &res.value().ifr_hwaddr.sa_data, ETH_ALEN); in getInterfaceHwAddr() 2640 return hwAddrToStr(hwaddr); in getInterfaceHwAddr()
|