Home
last modified time | relevance | path

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

/linux-6.6.21/net/core/
Ddev_ioctl.c541 return dev_set_mac_address_user(dev, &ifr->ifr_hwaddr, NULL); in dev_ifsioc()
544 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc()
546 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc()
547 min(sizeof(ifr->ifr_hwaddr.sa_data_min), in dev_ifsioc()
557 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
561 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
565 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
569 return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
695 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl()
/linux-6.6.21/include/uapi/linux/
Dif.h260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_redirect_multi.c63 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()
/linux-6.6.21/drivers/net/
Dtap.c1133 copy_to_user(&ifr->ifr_hwaddr, &sa, sizeof(sa))) in tap_ioctl()
1140 if (copy_from_user(&sa, &ifr->ifr_hwaddr, sizeof(sa))) in tap_ioctl()
Dtun.c3267 dev_get_mac_address(&ifr.ifr_hwaddr, net, tun->dev->name); in __tun_chr_ioctl()
3274 ret = dev_set_mac_address_user(tun->dev, &ifr.ifr_hwaddr, NULL); in __tun_chr_ioctl()
/linux-6.6.21/samples/bpf/
Dxdp_sample_user.c1658 memcpy(mac_addr, ifr.ifr_hwaddr.sa_data, 6 * sizeof(char)); in get_mac_addr()