/system/core/libnetutils/ |
dhcpmsg.c | 24 static void *init_dhcp_msg(dhcp_msg *msg, int type, void *hwaddr, uint32_t xid) 39 memcpy(msg->chaddr, hwaddr, 6); 55 int init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid) 59 x = init_dhcp_msg(msg, DHCPDISCOVER, hwaddr, xid); 73 int init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid, 78 x = init_dhcp_msg(msg, DHCPREQUEST, hwaddr, xid);
|
packet.h | 20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
|
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,
|
dhcpclient.c | 399 unsigned char hwaddr[6]; local 407 if (ifc_get_hwaddr(ifname, hwaddr)) { 414 s = open_raw_socket(ifname, hwaddr, if_index); 449 size = init_dhcp_discover_msg(msg, hwaddr, xid); 453 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr);
|
packet.c | 43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) 56 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN);
|
/external/dhcpcd-6.8.2/ |
ifaddrs.c | 42 struct sockaddr_ll *hwaddr = NULL; local 82 hwaddr = malloc(sizeof(struct sockaddr_ll)); 83 if (hwaddr) { 84 memset(hwaddr, 0, sizeof(struct sockaddr_ll)); 85 hwaddr->sll_family = family; 86 /* hwaddr->sll_protocol = ETHERTYPE_IP; */ 87 ifc_get_ifindex(ifa->ifa_name, &hwaddr->sll_ifindex); 88 hwaddr->sll_hatype = ARPHRD_ETHER; 89 hwaddr->sll_halen = ETH_ALEN; 90 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN) [all...] |
dhcpcd.h | 70 unsigned char hwaddr[HWADDR_LEN]; member in struct:interface
|
common.c | 310 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen, char *buf, size_t buflen) 328 p += snprintf(p, 3, "%.2x", hwaddr[i]);
|
ipv4ll.c | 225 memcpy(&seed, ifp->hwaddr, ifp->hwlen); 227 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed),
|
duid.c | 77 memcpy(p, ifp->hwaddr, ifp->hwlen);
|
/external/dnsmasq/src/ |
dhcp.c | 531 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 535 a particular hwaddr/clientid/hostname in our configuration. 543 /* hash hwaddr */ 545 j += hwaddr[i] + (hwaddr[i] << 8) + (hwaddr[i] << 16); 555 /* pick a seed based on hwaddr then iterate until we find a free address. */ 648 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type) 652 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) 656 memcmp(conf_addr->hwaddr, hwaddr, len) == 0 725 unsigned char hwaddr[ETHER_ADDR_LEN]; local [all...] |
lease.c | 155 lease->hwaddr, lease->hwaddr_len, lease->hwaddr_type, NULL)) && 197 ourprintf(&err, "%.2x", lease->hwaddr[i]); 292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0) 377 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) 384 memcpy(lease->hwaddr, hwaddr, hw_len) [all...] |
helper.c | 46 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:script_data 136 p += sprintf(p, "%.2x", data.hwaddr[i]); 348 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len);
|
dnsmasq.h | 420 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_lease 440 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:hwaddr_config 454 struct hwaddr_config *hwaddr; member in struct:dhcp_config 526 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_mac 808 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 810 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type); 814 unsigned char *hwaddr, int hw_len, 831 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 836 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 849 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 89 * hwaddr -- if non-NULL, set to the hardware address 96 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) 135 if (hwaddr) { 142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); 148 if (NOT_UNICAST(hwaddr)) {
|
pppoe-discovery.c | 94 * hwaddr -- if non-NULL, set to the hardware address 101 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) 137 if (hwaddr) { 142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); 150 if (NOT_UNICAST(hwaddr)) {
|
/external/autotest/server/site_tests/network_StressServoEthernetPlug/ |
network_StressServoEthernetPlug.py | 76 iface_start = re.search('^(eth\S+)\s+Link encap:Ethernet\s+HWaddr' 79 (iface, hwaddr) = iface_start.groups() 85 eth_dict[iface] = {self.ETH_MAC: hwaddr, self.ETH_IP: ipaddress}
|
/system/extras/tests/net_test/ |
net_test.py | 181 def SetInterfaceHWAddr(ifname, hwaddr): 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)
|
/external/autotest/client/bin/net/ |
net_utils.py | 319 hwaddr = f.read().strip() 321 return hwaddr 324 def set_hwaddr(self, hwaddr): 325 utils.system('ifconfig %s hw ether %s' % (self._name, hwaddr)) 668 def mac_string_to_binary(hwaddr): 675 hwaddr: a text string containing the MAC address to convert. 681 for c in hwaddr.split(':',6)]]) 686 def mac_binary_to_string(hwaddr): 693 hwaddr: a byte string containing the MAC address to convert. 698 return "%02x:%02x:%02x:%02x:%02x:%02x" % tuple(map(ord,hwaddr)) [all...] |
/development/scripts/ |
reverse_tether.sh | 19 # location of the hwaddr utility 20 : ${HWADDR:=/home/build/nonconf/google3/experimental/users/szym/moblat/hwaddr/hwaddr-armeabi} 75 echo " HWADDR=$HWADDR" 89 $ADB push $HWADDR /data/local/hwaddr # TODO(szym) handle failures? 90 $ADB shell "/data/local/hwaddr $PHONE_DEV $PHONE_HW" 91 $ADB shell "/data/local/hwaddr $PHONE_DEV [all...] |
/external/autotest/client/deps/lansim/src/py/ |
tuntap.py | 194 def set_hwaddr(self, hwaddr): 200 @param string hwaddr: The address in hex format: 'aa:bb:cc:DD:EE:FF'. 204 tools.inet_hwton(hwaddr))) 211 hwaddr = property(get_hwaddr, set_hwaddr) variable in class:TunTap
|
/external/libnl/lib/netfilter/ |
queue_msg_obj.c | 374 void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *msg, uint8_t *hwaddr, 381 memcpy(msg->queue_msg_hwaddr, hwaddr, len); 466 __ADD(QUEUE_MSG_ATTR_HWADDR, hwaddr)
|
/development/ndk/platforms/android-9/arch-mips/include/asm/lasat/ |
lasat.h | 39 unsigned char hwaddr[6]; member in struct:lasat_eeprom_struct
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/asm/lasat/ |
lasat.h | 39 unsigned char hwaddr[6]; member in struct:lasat_eeprom_struct
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/asm/lasat/ |
lasat.h | 39 unsigned char hwaddr[6]; member in struct:lasat_eeprom_struct
|