Searched refs:ifr_hwaddr (Results 1 – 7 of 7) sorted by relevance
/linux/net/core/ |
A D | dev_ioctl.c | 336 return dev_set_mac_address_user(dev, &ifr->ifr_hwaddr, NULL); in dev_ifsioc() 339 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc() 341 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc() 342 min(sizeof(ifr->ifr_hwaddr.sa_data), in dev_ifsioc() 352 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc() 356 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc() 360 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc() 364 return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc() 494 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl()
|
/linux/include/uapi/linux/ |
A D | if.h | 260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
|
/linux/tools/testing/selftests/bpf/ |
A D | xdp_redirect_multi.c | 64 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
|
/linux/drivers/net/ |
A D | tap.c | 1095 copy_to_user(&ifr->ifr_hwaddr, &sa, sizeof(sa))) in tap_ioctl() 1102 if (copy_from_user(&sa, &ifr->ifr_hwaddr, sizeof(sa))) in tap_ioctl()
|
A D | tun.c | 3168 dev_get_mac_address(&ifr.ifr_hwaddr, net, tun->dev->name); in __tun_chr_ioctl() 3175 ret = dev_set_mac_address_user(tun->dev, &ifr.ifr_hwaddr, NULL); in __tun_chr_ioctl()
|
/linux/samples/bpf/ |
A D | xdp_router_ipv4_user.c | 87 *((__u8 *)&mac + i) = (__u8)ifr.ifr_hwaddr.sa_data[i]; in getmac()
|
A D | xdp_sample_user.c | 1660 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
|
Completed in 23 milliseconds