/external/dhcpcd-6.8.2/ |
H A D | 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 [all...] |
H A D | dhcpcd.h | 70 unsigned char hwaddr[HWADDR_LEN]; member in struct:interface
|
H A D | common.c | 310 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen, char *buf, size_t buflen) argument 328 p += snprintf(p, 3, "%.2x", hwaddr[i]);
|
H A D | ipv4ll.c | 225 memcpy(&seed, ifp->hwaddr, ifp->hwlen); 227 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed),
|
H A D | duid.c | 77 memcpy(p, ifp->hwaddr, ifp->hwlen);
|
H A D | dhcpcd.c | 477 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid), 732 * so our RFC7217 address beats the hwaddr based one. 909 * so our RFC7217 address beats the hwaddr based one. 985 /* The flags and hwaddr could have changed */ 989 memcpy(iff->hwaddr, ifp->hwaddr, iff->hwlen); 1016 const uint8_t *hwaddr, uint8_t hwlen) 1019 char buf[sizeof(ifp->hwaddr) * 3]; 1025 if (hwlen > sizeof(ifp->hwaddr)) { 1031 if (ifp->hwlen == hwlen && memcmp(ifp->hwaddr, hwadd 1015 dhcpcd_handlehwaddr(struct dhcpcd_ctx *ctx, const char *ifname, const uint8_t *hwaddr, uint8_t hwlen) argument [all...] |
H A D | arp.c | 87 APPEND(ifp->hwaddr, ifp->hwlen); 173 memcmp(hw_s, ifn->hwaddr, ifn->hwlen) == 0)
|
H A D | if-linux.c | 739 struct rtattr *rta, *hwaddr; local 768 hwaddr = NULL; 782 hwaddr = rta; 797 if (ifi->ifi_flags & IFF_MASTER && !hwaddr) { 816 if (!(ifi->ifi_flags & IFF_UP) && hwaddr) { 820 if (hwaddr->rta_len == RTA_LENGTH(l)) 821 dhcpcd_handlehwaddr(ctx, ifn, RTA_DATA(hwaddr), l);
|
H A D | ipv6.c | 391 ifp->hwaddr, ifp->hwlen, 1132 if (memcmp(ifp->hwaddr, allzero, ifp->hwlen) == 0 || 1133 memcmp(ifp->hwaddr, allone, ifp->hwlen) == 0) 1168 ap->addr.s6_addr[ 8] = ifp->hwaddr[0]; 1169 ap->addr.s6_addr[ 9] = ifp->hwaddr[1]; 1170 ap->addr.s6_addr[10] = ifp->hwaddr[2]; 1173 ap->addr.s6_addr[13] = ifp->hwaddr[3]; 1174 ap->addr.s6_addr[14] = ifp->hwaddr[4]; 1175 ap->addr.s6_addr[15] = ifp->hwaddr[5]; 1177 memcpy(&ap->addr.s6_addr[8], ifp->hwaddr, [all...] |
H A D | if.c | 487 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen); 494 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen);
|
/external/dnsmasq/src/ |
H A D | 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) argument 652 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) 656 memcmp(conf_addr->hwaddr, hwadd 530 address_allocate(struct dhcp_context *context, struct in_addr *addrp, unsigned char *hwaddr, int hw_len, struct dhcp_netid *netids, time_t now) argument 662 find_config(struct dhcp_config *configs, struct dhcp_context *context, unsigned char *clid, int clid_len, unsigned char *hwaddr, int hw_len, int hw_type, char *hostname) argument 725 unsigned char hwaddr[ETHER_ADDR_LEN]; local [all...] |
H A D | 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, argument 308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0) 377 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, argument 382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) 384 memcpy(lease->hwaddr, hwaddr, hw_le [all...] |
H A D | 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);
|
H A D | 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...] |
H A D | rfc2131.c | 276 memcmp_masked(mac->hwaddr, mess->chaddr, mess->hlen, mac->mask)) 432 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) 584 if (new && !have_config(new, CONFIG_CLID) && !new->hwaddr) 901 !config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) 905 ltmp->hwaddr, ltmp->clid_len, ltmp->clid, &len); 1092 if (config && config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) 1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), 1310 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, argument 1334 return hwaddr;
|
H A D | 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);
|
/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | if.c | 89 * hwaddr -- if non-NULL, set to the hardware address 96 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) argument 135 if (hwaddr) { 142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); 148 if (NOT_UNICAST(hwaddr)) {
|
H A D | pppoe-discovery.c | 94 * hwaddr -- if non-NULL, set to the hardware address 101 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) argument 137 if (hwaddr) { 142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); 150 if (NOT_UNICAST(hwaddr)) {
|
H A D | pppoe.h | 263 int openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr);
|
/external/autotest/server/site_tests/network_StressServoEthernetPlug/ |
H A D | network_StressServoEthernetPlug.py | 79 (iface, hwaddr) = iface_start.groups() 85 eth_dict[iface] = {self.ETH_MAC: hwaddr, self.ETH_IP: ipaddress}
|
/external/autotest/client/bin/net/ |
H A D | 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...] |
/external/autotest/client/deps/lansim/src/py/ |
H A D | 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/ |
H A D | queue_msg_obj.c | 374 void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *msg, uint8_t *hwaddr, argument 381 memcpy(msg->queue_msg_hwaddr, hwaddr, len); 466 __ADD(QUEUE_MSG_ATTR_HWADDR, hwaddr)
|
H A D | log_msg_obj.c | 319 void nfnl_log_msg_set_hwaddr(struct nfnl_log_msg *msg, uint8_t *hwaddr, int len) argument 324 memcpy(msg->log_msg_hwaddr, hwaddr, len);
|
/external/ppp/pppd/ |
H A D | sys-solaris.c | 2151 get_ether_addr(ipaddr, hwaddr) 2153 struct sockaddr *hwaddr; 2208 if (!get_hw_addr(ifr->ifr_name, ina, hwaddr)) { 2222 get_hw_addr_dlpi(name, hwaddr) 2224 struct sockaddr *hwaddr; 2272 hwaddr->sa_family = AF_UNSPEC; 2273 memcpy(hwaddr->sa_data, adrp, adrlen); 2281 get_hw_addr(name, ina, hwaddr) 2284 struct sockaddr *hwaddr; 2300 *hwaddr [all...] |