/external/dhcpcd/ |
ifaddrs.c | 40 struct sockaddr_ll *hwaddr = NULL; local 80 hwaddr = malloc(sizeof(struct sockaddr_ll)); 81 if (hwaddr) { 82 memset(hwaddr, 0, sizeof(struct sockaddr_ll)); 83 hwaddr->sll_family = family; 84 /* hwaddr->sll_protocol = ETHERTYPE_IP; */ 85 hwaddr->sll_hatype = ARPHRD_ETHER; 86 hwaddr->sll_halen = ETH_ALEN; 87 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN); 90 ifa->ifa_addr = (struct sockaddr *)hwaddr; [all...] |
arp.c | 63 memcpy(p, iface->hwaddr, iface->hwlen); 116 const char *hwaddr; local 147 memcmp(hw_s, iface->hwaddr, iface->hwlen) == 0) 161 hwaddr = hwaddr_ntoa((unsigned char *)hw_s, 165 iface->name, inet_ntoa(ina), hwaddr); 166 if (select_profile(iface, hwaddr) == -1 &&
|
if-bsd.c | 326 unsigned char *hwaddr; local 426 hwaddr = xmalloc(sdl.sdl_alen); 427 memcpy(hwaddr, LLADDR(&sdl), 429 handle_hwaddr(ifname, hwaddr,
|
dhcpcd.h | 115 unsigned char hwaddr[HWADDR_LEN]; member in struct:interface
|
duid.c | 89 memcpy(p, iface->hwaddr, iface->hwlen);
|
dhcpcd.c | 297 memcpy(&xid, (iface->hwaddr + iface->hwlen) - sizeof(xid), 731 memcmp(dhcp->chaddr, iface->hwaddr, iface->hwlen)) 733 syslog(LOG_DEBUG, "%s: xid 0x%x is not for hwaddr %s", 842 memcpy(iface->clientid + 2, iface->hwaddr, 850 syslog(LOG_DEBUG, "%s: using hwaddr %s", iface->name, 851 hwaddr_ntoa(iface->hwaddr, iface->hwlen)); [all...] |
/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 | 397 unsigned char hwaddr[6]; local 405 if (ifc_get_hwaddr(ifname, hwaddr)) { 412 s = open_raw_socket(ifname, hwaddr, if_index); 447 size = init_dhcp_discover_msg(msg, hwaddr, xid); 451 size = init_dhcp_request_msg(msg, hwaddr, xid, info.ipaddr, info.serveraddr);
|
packet.c | 42 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) 55 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN);
|
/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/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...] |
dnsmasq.h | 418 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_lease 438 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:hwaddr_config 452 struct hwaddr_config *hwaddr; member in struct:dhcp_config 524 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_mac 805 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 807 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type); 811 unsigned char *hwaddr, int hw_len, 828 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 833 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 846 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, [all...] |
dbus.c | 43 " <arg name=\"hwaddr\" type=\"s\"/>\n" 48 " <arg name=\"hwaddr\" type=\"s\"/>\n" 53 " <arg name=\"hwaddr\" type=\"s\"/>\n" 409 lease->hwaddr, lease->clid_len, lease->clid, &i);
|
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);
|
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 140 * hwaddr -- buffer for ehthernet address 147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr) 180 memcpy(hwaddr, LLADDR(sdl), ETH_ALEN); 197 * hwaddr -- buffer with ehthernet address 204 initFilter(int fd, UINT16_t type, unsigned char *hwaddr) 247 bpfInsn[PPPOE_FILTER_CMPW].k = ((hwaddr[0] << 24) | (hwaddr[1] << 16) | 248 (hwaddr[2] << 8) | hwaddr[3]); 249 bpfInsn[PPPOE_FILTER_CMPH].k = ((hwaddr[4] << 8) | hwaddr[5]) [all...] |
/frameworks/base/core/java/android/net/ |
InterfaceConfiguration.java | 95 public void setHardwareAddress(String hwAddr) { 96 mHwAddr = hwAddr;
|
/external/grub/netboot/ |
3c90x.c | 246 unsigned char HWAddr[ETH_ALEN]; 510 memcpy(hdr.src_addr, INF_3C90X.HWAddr, ETH_ALEN); 763 INF_3C90X.HWAddr[0] = eeprom[0]>>8; 764 INF_3C90X.HWAddr[1] = eeprom[0]&0xFF; 765 INF_3C90X.HWAddr[2] = eeprom[1]>>8; 766 INF_3C90X.HWAddr[3] = eeprom[1]&0xFF; 767 INF_3C90X.HWAddr[4] = eeprom[2]>>8; 768 INF_3C90X.HWAddr[5] = eeprom[2]&0xFF; 769 printf("MAC Address = %!\n", INF_3C90X.HWAddr);
|
/external/wpa_supplicant_8/src/drivers/ |
linux_ioctl.c | 87 wpa_printf(MSG_ERROR, "Could not get interface %s hwaddr: %s", 113 wpa_printf(MSG_DEBUG, "Could not set interface %s hwaddr: %s",
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
NetworkInterfaceTest.java | 410 byte[] hwAddr = netif.getHardwareAddress(); 412 assertTrue(hwAddr == null || hwAddr.length == 0); 414 assertTrue(hwAddr.length >= 0);
|
/system/core/netcfg/ |
netcfg.c | 112 { "hwaddr", 2, set_hwaddr },
|
/external/libppp/src/ |
arp.c | 229 arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr, 307 memcpy(hwaddr, dl, dl->sdl_len);
|
/system/netd/ |
CommandListener.cpp | 457 unsigned char hwaddr[6]; local 461 memset(hwaddr, 0, sizeof(hwaddr)); 469 if (ifc_get_hwaddr(argv[2], (void *) hwaddr)) { 489 hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], hwaddr[4], hwaddr[5] [all...] |