/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_010.cpp | 46 …(void)strncpy_s(ifr->ifr_name, sizeof(ifr->ifr_name) - 1, gDefaultNetif, sizeof(ifr->ifr_name) - 1… in InitIfreq() 47 ifr->ifr_name[sizeof(ifr->ifr_name) - 1] = '\0'; in InitIfreq() 63 ret = strncpy_s(name, IF_NAMESIZE - 1, ifr.ifr_name, IF_NAMESIZE - 1); in IfIndex2Name() 80 ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, name, sizeof(ifr.ifr_name) - 1); in IfName2Index() 82 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in IfName2Index() 131 LogPrintln("name of ifindex %u: %s", lanIndex, ifr.ifr_name); in IoctlTestInternal() 136 LogPrintln("index of ifname %s: %d", ifr.ifr_name, ifr.ifr_ifindex); in IoctlTestInternal() 146 …LogPrintln("FLAGS of ifname %s: %#x, IFF_PROMISC: %d", ifr.ifr_name, ifr.ifr_flags, !!(ifr.ifr_fla… in IoctlTestInternal() 164 …LogPrintln("FLAGS of ifname %s: %#x, IFF_PROMISC: %d", ifr.ifr_name, ifr.ifr_flags, !!(ifr.ifr_fla… in IoctlTestInternal()
|
D | net_socket_test_013.cpp | 136 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, ifname, sizeof(ifr.ifr_name) - 1); in GetIp() 140 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in GetIp() 152 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, ifname, sizeof(ifr.ifr_name) - 1); in GetNetmask() 156 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; in GetNetmask()
|
/kernel/linux/linux-5.10/net/core/ |
D | dev_ioctl.c | 25 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname() 26 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname() 83 struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); in dev_ifsioc_locked() 220 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); in dev_ifsioc() 375 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ioctl() 377 colon = strchr(ifr->ifr_name, ':'); in dev_ioctl() 387 dev_load(net, ifr->ifr_name); in dev_ioctl() 388 ret = dev_get_mac_address(&ifr->ifr_hwaddr, net, ifr->ifr_name); in dev_ioctl() 405 dev_load(net, ifr->ifr_name); in dev_ioctl() 414 dev_load(net, ifr->ifr_name); in dev_ioctl() [all …]
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
D | sockets.c | 312 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in OsLwipIoctlInternalSiocgifConf() 318 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in OsLwipIoctlInternalSiocgifConf() 344 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocgifAddr() 359 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocgifNetmask() 372 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocgifHwAddr() 393 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocsifFlags() 469 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocgifFlags() 553 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in OsLwipIoctlInternalSiocgifName() 558 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in OsLwipIoctlInternalSiocgifName() 613 struct netif *netif = netif_find(ifr->ifr_name); in OsLwipIoctlInternalSiocsifName() [all …]
|
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
D | sockets_porting.c | 321 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in lwip_ioctl_internal_SIOCGIFCONF() 327 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in lwip_ioctl_internal_SIOCGIFCONF() 355 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCGIFADDR() 372 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCGIFNETMASK() 388 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCGIFHWADDR() 411 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCSIFFLAGS() 489 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCGIFFLAGS() 573 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in lwip_ioctl_internal_SIOCGIFNAME() 578 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in lwip_ioctl_internal_SIOCGIFNAME() 636 netif = netif_find(ifr->ifr_name); in lwip_ioctl_internal_SIOCSIFNAME() [all …]
|
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
D | sockets.c | 514 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); 520 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); 548 netif = netif_find(ifr->ifr_name); 598 netif = netif_find(ifr->ifr_name); 694 netif = netif_find(ifr->ifr_name); 743 netif = netif_find(ifr->ifr_name); 778 netif = netif_find(ifr->ifr_name); 856 netif = netif_find(ifr->ifr_name); 889 netif = netif_find(ifr->ifr_name); 918 netif = netif_find(ifr->ifr_name); [all …]
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
D | It_net_container_001.cpp | 48 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), "eth0", IFNAMSIZ); in SetIP()
|
D | It_net_container_002.cpp | 48 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), "eth0", IFNAMSIZ); in SetIP()
|
/kernel/liteos_m/testsuites/unittest/xts/net/ |
D | acts_net_test.c | 73 if (strcmp("lo", ifre[i].ifr_name) != 0) { 75 ret = strcpy_s(ifrTmp.ifr_name, sizeof(ifrTmp.ifr_name), ifre[i].ifr_name);
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/ |
D | rtw_android.c | 149 __func__, command, ifr->ifr_name); in rtw_android_priv_cmd() 159 __func__, command, ifr->ifr_name); in rtw_android_priv_cmd()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 149 strlcpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/kernel/liteos_a/testsuites/unittest/container/ |
D | It_container_test.cpp | 164 ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), ifname, IFNAMSIZ); in TryResetNetAddr() 220 int ret = strcpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), ifname); in NetContainerGetLocalIP()
|
/kernel/linux/linux-5.10/net/wireless/ |
D | wext-core.c | 930 if ((dev = __dev_get_by_name(net, iwr->ifr_name)) == NULL) in wireless_process_ioctl() 986 dev_load(net, iwr->ifr_name); in wext_ioctl_dispatch() 1047 iwr.ifr_name[sizeof(iwr.ifr_name) - 1] = 0; in wext_handle_ioctl() 1103 iwr.ifr_name[IFNAMSIZ-1] = 0; in compat_wext_handle_ioctl() 1104 colon = strchr(iwr.ifr_name, ':'); in compat_wext_handle_ioctl()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | devninet.c | 59 strcpy(ifr.ifr_name, ifa->rt->dst.dev->name); in ninet_gifconf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 398 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap() 427 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/net/ |
D | if.h | 114 #define ifr_name ifr_ifrn.ifrn_name macro
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | vector_user.c | 143 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); in create_tap_fd() 173 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); in create_raw_fd()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 114 strcpy(ifr.ifr_name, argv[1]); in main()
|
D | timestamping.c | 359 memcpy(device.ifr_name, interface, if_len + 1); in main() 364 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
|
/kernel/linux/common_modules/newip/examples/ |
D | nip_lib.c | 31 strcpy(ifr.ifr_name, ifname); in nip_get_ifindex()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | if.h | 259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | if.h | 159 #define ifr_name ifr_ifrn.ifrn_name macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | if.h | 166 #define ifr_name ifr_ifrn.ifrn_name macro
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | tuntap.rst | 110 strncpy(ifr.ifr_name, dev, IFNAMSIZ); 116 strcpy(dev, ifr.ifr_name); 164 strcpy(ifr.ifr_name, dev);
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_011.c | 336 (void)strcpy_s(nif.ifr_name, sizeof(nif.ifr_name), inface); in UdpTestNetifTask()
|