Home
last modified time | relevance | path

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

/linux/net/core/
A Ddev_ioctl.c336 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 Dif.h260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/linux/tools/testing/selftests/bpf/
A Dxdp_redirect_multi.c64 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
/linux/drivers/net/
A Dtap.c1095 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 Dtun.c3168 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 Dxdp_router_ipv4_user.c87 *((__u8 *)&mac + i) = (__u8)ifr.ifr_hwaddr.sa_data[i]; in getmac()
A Dxdp_sample_user.c1660 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()

Completed in 19 milliseconds