Searched refs:ifr_hwaddr (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/net/core/ |
D | dev_ioctl.c | 339 return dev_set_mac_address_user(dev, &ifr->ifr_hwaddr, NULL); in dev_ifsioc() 342 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc() 344 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc() 345 min(sizeof(ifr->ifr_hwaddr.sa_data), in dev_ifsioc() 355 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc() 359 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc() 363 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc() 367 return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc() 497 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl()
|
/linux-6.1.9/include/uapi/linux/ |
D | if.h | 260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | xdp_redirect_multi.c | 63 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
|
/linux-6.1.9/drivers/net/ |
D | tap.c | 1112 copy_to_user(&ifr->ifr_hwaddr, &sa, sizeof(sa))) in tap_ioctl() 1119 if (copy_from_user(&sa, &ifr->ifr_hwaddr, sizeof(sa))) in tap_ioctl()
|
D | tun.c | 3232 dev_get_mac_address(&ifr.ifr_hwaddr, net, tun->dev->name); in __tun_chr_ioctl() 3239 ret = dev_set_mac_address_user(tun->dev, &ifr.ifr_hwaddr, NULL); in __tun_chr_ioctl()
|
/linux-6.1.9/samples/bpf/ |
D | xdp_sample_user.c | 1658 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
|