Home
last modified time | relevance | path

Searched refs:ifr_name (Results 1 – 25 of 44) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_010.cpp46 …(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()
Dnet_socket_test_013.cpp136 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/
Ddev_ioctl.c25 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/
Dsockets.c312 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/
Dsockets_porting.c321 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/
Dsockets.c514 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/
DIt_net_container_001.cpp48 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), "eth0", IFNAMSIZ); in SetIP()
DIt_net_container_002.cpp48 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), "eth0", IFNAMSIZ); in SetIP()
/kernel/liteos_m/testsuites/unittest/xts/net/
Dacts_net_test.c73 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/
Drtw_android.c149 __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/
Dtuntap_user.c149 strlcpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/kernel/liteos_a/testsuites/unittest/container/
DIt_container_test.cpp164 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/
Dwext-core.c930 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/
Ddevninet.c59 strcpy(ifr.ifr_name, ifa->rt->dst.dev->name); in ninet_gifconf()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c398 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/
Dif.h114 #define ifr_name ifr_ifrn.ifrn_name macro
/kernel/linux/linux-5.10/arch/um/drivers/
Dvector_user.c143 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/
Dhwtstamp_config.c114 strcpy(ifr.ifr_name, argv[1]); in main()
Dtimestamping.c359 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/
Dnip_lib.c31 strcpy(ifr.ifr_name, ifname); in nip_get_ifindex()
/kernel/linux/linux-5.10/include/uapi/linux/
Dif.h259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dif.h159 #define ifr_name ifr_ifrn.ifrn_name macro
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif.h166 #define ifr_name ifr_ifrn.ifrn_name macro
/kernel/linux/linux-5.10/Documentation/networking/
Dtuntap.rst110 strncpy(ifr.ifr_name, dev, IFNAMSIZ);
116 strcpy(dev, ifr.ifr_name);
164 strcpy(ifr.ifr_name, dev);
/kernel/liteos_m/components/net/test/
Dnet_socket_test_011.c336 (void)strcpy_s(nif.ifr_name, sizeof(nif.ifr_name), inface); in UdpTestNetifTask()

12