Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/core/
Ddev_ioctl.c266 return dev_set_mac_address_user(dev, &ifr->ifr_hwaddr, NULL); in dev_ifsioc()
269 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc()
271 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc()
272 min(sizeof(ifr->ifr_hwaddr.sa_data), in dev_ifsioc()
287 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
291 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
295 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
299 return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
412 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_010.cpp141 …hwaddr: %02hhX:%02hhX:%02hhX:XX:XX:XX", ifr.ifr_hwaddr.sa_data[0], ifr.ifr_hwaddr.sa_data[1], ifr. in IoctlTestInternal()
/kernel/liteos_m/kal/libc/newlib/porting/include/net/
Dif.h115 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
/kernel/linux/linux-5.10/include/uapi/linux/
Dif.h260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif.h167 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dif.h160 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
/kernel/uniproton/src/net/lwip-2.1/src/
Dsockets.c383 if (memcpy_s((void *)ifr->ifr_hwaddr.sa_data, sizeof(ifr->ifr_hwaddr.sa_data), in OsLwipIoctlInternalSiocgifHwAddr()
/kernel/liteos_m/components/net/lwip-2.1/porting/src/
Dsockets_porting.c398 if (memcpy_s((void *)ifr->ifr_hwaddr.sa_data, sizeof(ifr->ifr_hwaddr.sa_data), in lwip_ioctl_internal_SIOCGIFHWADDR()
/kernel/liteos_a/net/lwip-2.1/porting/src/
Dsockets.c809 … ret = netif_set_hwaddr(netif, (const unsigned char *)ifr->ifr_hwaddr.sa_data, netif->hwaddr_len); in lwip_ioctl_internal_SIOCSIFHWADDR()
839 if (memcpy_s((void *)ifr->ifr_hwaddr.sa_data, sizeof(ifr->ifr_hwaddr.sa_data), in lwip_ioctl_internal_SIOCGIFHWADDR()
/kernel/linux/linux-5.10/drivers/net/
Dtap.c1098 copy_to_user(&ifr->ifr_hwaddr, &sa, sizeof(sa))) in tap_ioctl()
1105 if (copy_from_user(&sa, &ifr->ifr_hwaddr, sizeof(sa))) in tap_ioctl()
Dtun.c3218 dev_get_mac_address(&ifr.ifr_hwaddr, net, tun->dev->name); in __tun_chr_ioctl()
3225 ret = dev_set_mac_address_user(tun->dev, &ifr.ifr_hwaddr, NULL); in __tun_chr_ioctl()
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_router_ipv4_user.c87 *((__u8 *)&mac + i) = (__u8)ifr.ifr_hwaddr.sa_data[i]; in getmac()