Home
last modified time | relevance | path

Searched refs:ifr_hwaddr (Results 1 – 25 of 29) sorted by relevance

12

/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c93 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in linux_get_ifhwaddr()
95 ifname, ifr.ifr_hwaddr.sa_family); in linux_get_ifhwaddr()
98 os_memcpy(addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in linux_get_ifhwaddr()
110 os_memcpy(ifr.ifr_hwaddr.sa_data, addr, ETH_ALEN); in linux_set_ifhwaddr()
111 ifr.ifr_hwaddr.sa_family = ARPHRD_ETHER; in linux_set_ifhwaddr()
Ddriver_wired.c225 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in wired_init_sockets()
227 ifr.ifr_hwaddr.sa_family); in wired_init_sockets()
230 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets()
Ddriver_wired_common.c101 ifr.ifr_hwaddr.sa_family = AF_UNSPEC; in driver_wired_multi()
102 os_memcpy(ifr.ifr_hwaddr.sa_data, addr, ETH_ALEN); in driver_wired_multi()
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py189 ifr_name, ifr_family, ifr_hwaddr = unpack_struct_ifreq(
191 return (ifr_family, tools.inet_ntohw(ifr_hwaddr[:6]))
205 ifr_name, ifr_family, ifr_hwaddr = unpack_struct_ifreq(
207 return (ifr_family, tools.inet_ntohw(ifr_hwaddr[:6]))
/external/strace/
Dsock.c157 uint16_t proto = ifr->ifr_hwaddr.sa_family; in print_ifreq()
161 PRINT_FIELD_XVAL_SORTED_SIZED("ifr_hwaddr={", ifr->ifr_hwaddr, in print_ifreq()
165 PRINT_FIELD_MAC_SZ(", ", ifr->ifr_hwaddr, sa_data, in print_ifreq()
166 MIN(sizeof(ifr->ifr_hwaddr.sa_data), sz)); in print_ifreq()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in openInterface()
144 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in openInterface()
Dpppoe-discovery.c142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in openInterface()
144 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in openInterface()
Dplugin.c336 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) { in PPPoEDevnameHook()
/external/toybox/toys/net/
Difconfig.c140 for (i=0; i<6; i++) printf(":%02x"+!i, ifre.ifr_hwaddr.sa_data[i]); in display_ifconfig()
143 if (ifre.ifr_hwaddr.sa_family == types[i].type) break; in display_ifconfig()
145 if(ifre.ifr_hwaddr.sa_family == ARPHRD_ETHER) { in display_ifconfig()
147 for (i=0; i<6; i++) xprintf(":%02x"+!i, ifre.ifr_hwaddr.sa_data[i]); in display_ifconfig()
425 struct sockaddr *sock = &ifre.ifr_hwaddr; in ifconfig_main()
/external/curl/lib/
Dif2ip.h74 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/external/iproute2/ip/
Dipmaddr.c296 if (ifr.ifr_hwaddr.sa_data[0]) in multiaddr_modify()
298 if (ll_addr_a2n(ifr.ifr_hwaddr.sa_data, in multiaddr_modify()
Diplink.c1209 ifr->ifr_hwaddr.sa_family = hatype; in parse_address()
1210 alen = ll_addr_a2n(ifr->ifr_hwaddr.sa_data, 14, lla); in parse_address()
/external/toybox/toys/pending/
Darp.c165 if ((toys.optflags & FLAG_H) && (ifre.ifr_hwaddr.sa_family != ARPHRD_ETHER)) in set_entry()
167 memcpy(&req.arp_ha, &(ifre.ifr_hwaddr), sizeof(req.arp_ha)); in set_entry()
Darping.c77 memcpy(mac, req.ifr_hwaddr.sa_data, 6); in get_interface()
Ddhcp6.c170 memcpy(mac, req.ifr_hwaddr.sa_data, 6); in get_mac()
Dip.c687 (unsigned char *)(req.ifr_hwaddr.sa_data)); in link_set()
693 (unsigned char *)(req.ifr_hwaddr.sa_data)); in link_set()
/external/iproute2/misc/
Darpd.c200 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) in send_probe()
211 ah->ar_hrd = htons(ifr.ifr_hwaddr.sa_family); in send_probe()
217 memcpy(p, ifr.ifr_hwaddr.sa_data, ah->ar_hln); in send_probe()
/external/iproute2/include/uapi/linux/
Dif.h255 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/external/kernel-headers/original/uapi/linux/
Dif.h257 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/external/ppp/pppd/
Dsys-linux.c1850 memset (&bestifreq.ifr_hwaddr, 0, sizeof (struct sockaddr)); in get_ether_addr()
1857 &bestifreq.ifr_hwaddr, in get_ether_addr()
1876 memset(&ifreq.ifr_hwaddr, 0, sizeof(struct sockaddr)); in get_if_hwaddr()
1881 memcpy(addr, ifreq.ifr_hwaddr.sa_data, 6); in get_if_hwaddr()
2106 if (ok && ((ifr.ifr_hwaddr.sa_family & ~0xFF) != ARPHRD_PPP)) in ppp_available()
2935 ptr = (unsigned char *) ifr.ifr_hwaddr.sa_data; in ether_to_eui64()
/external/iputils/
Drarpd.c155 ifl->hatype = ifrp->ifr_hwaddr.sa_family; in load_if()
156 memcpy(ifl->lladdr, ifrp->ifr_hwaddr.sa_data, 14); in load_if()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c330 memcpy(fake_p->saddr_ll.sll_addr, ifinfo.ifr_hwaddr.sa_data, ETH_ALEN); in complete_eth_addrs()
Dns-icmpv6_sender.c190 memcpy(lladdr_p->sll_addr, ifinfo.ifr_hwaddr.sa_data, ETH_ALEN); in specify_hw_addr()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c327 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in l2_packet_init()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c272 a = (unsigned char *) &ifr.ifr_hwaddr.sa_data; in get_node_id()

12