Searched refs:ifr_hwaddr (Results 1 – 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/net/core/ |
D | dev_ioctl.c | 266 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/ |
D | net_socket_test_010.cpp | 141 …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/ |
D | if.h | 115 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | if.h | 260 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | if.h | 167 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | if.h | 160 #define ifr_hwaddr ifr_ifru.ifru_hwaddr macro
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
D | sockets.c | 383 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/ |
D | sockets_porting.c | 398 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/ |
D | sockets.c | 809 … 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/ |
D | tap.c | 1098 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()
|
D | tun.c | 3218 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/ |
D | xdp_router_ipv4_user.c | 87 *((__u8 *)&mac + i) = (__u8)ifr.ifr_hwaddr.sa_data[i]; in getmac()
|