Home
last modified time | relevance | path

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

12

/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/lowpan-tools/lowpan-tools/
H A D0001-Fix-potential-string-truncation-in-strncpy.patch32 - strncpy(req.ifr_name, iface, IF_NAMESIZE);
34 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
46 - strncpy(req.ifr_name, iface, IFNAMSIZ);
47 + strncpy(req.ifr_name, iface, IFNAMSIZ - 1);
48 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
63 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
77 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
91 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
105 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
119 + req.ifr_name[IF_NAMESIZE - 1] = '\0';
[all …]
/openbmc/linux/net/core/
H A Ddev_ioctl.c29 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname()
30 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname()
421 strscpy_pad(ifrr.ifr_name, dev->name, IFNAMSIZ); in generic_hwtstamp_ioctl_lower()
682 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ioctl()
684 colon = strchr(ifr->ifr_name, ':'); in dev_ioctl()
694 dev_load(net, ifr->ifr_name); in dev_ioctl()
712 dev_load(net, ifr->ifr_name); in dev_ioctl()
721 dev_load(net, ifr->ifr_name); in dev_ioctl()
736 dev_load(net, ifr->ifr_name); in dev_ioctl()
784 dev_load(net, ifr->ifr_name); in dev_ioctl()
[all …]
/openbmc/qemu/net/
H A Dtap-linux.c100 pstrcpy(ifr.ifr_name, IFNAMSIZ, ifname); in tap_open()
102 pstrcpy(ifr.ifr_name, IFNAMSIZ, "tap%d"); in tap_open()
107 PATH_NET_TUN, ifr.ifr_name); in tap_open()
115 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open()
317 pstrcpy(ifname, sizeof(ifr.ifr_name), ifr.ifr_name); in tap_fd_get_ifname()
H A Dtap-bsd.c80 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open()
147 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open_clone()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dnet_iface.cpp93 if (len + 1 >= sizeof(ifr->ifr_name)) in ioctl_sock()
98 std::memcpy(ifr->ifr_name, name_.c_str(), len); in ioctl_sock()
99 ifr->ifr_name[len] = 0; in ioctl_sock()
/openbmc/linux/tools/testing/selftests/net/
H A Dtun.c25 strcpy(ifr.ifr_name, dev); in tun_attach()
36 strcpy(ifr.ifr_name, dev); in tun_detach()
54 strcpy(ifr.ifr_name, dev); in tun_alloc()
63 strcpy(dev, ifr.ifr_name); in tun_alloc()
H A Dhwtstamp_config.c116 strcpy(ifr.ifr_name, argv[1]); in main()
H A Dtimestamping.c388 memcpy(device.ifr_name, interface, if_len + 1); in main()
393 memcpy(hwtstamp.ifr_name, interface, if_len + 1); in main()
/openbmc/qemu/net/can/
H A Dcan_socketcan.c212 memset(&ifr.ifr_name, 0, sizeof(ifr.ifr_name)); in can_host_socketcan_connect()
213 strcpy(ifr.ifr_name, c->ifname); in can_host_socketcan_connect()
288 if (strlen(value) >= sizeof(ifr.ifr_name)) { in can_host_socketcan_set_if()
290 sizeof(ifr.ifr_name) - 1); in can_host_socketcan_set_if()
/openbmc/linux/arch/um/os-Linux/drivers/
H A Dtuntap_user.c149 strscpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
/openbmc/linux/net/wireless/
H A Dwext-core.c958 if ((dev = __dev_get_by_name(net, iwr->ifr_name)) == NULL) in wireless_process_ioctl()
1014 dev_load(net, iwr->ifr_name); in wext_ioctl_dispatch()
1075 iwr.ifr_name[sizeof(iwr.ifr_name) - 1] = 0; in wext_handle_ioctl()
1131 iwr.ifr_name[IFNAMSIZ-1] = 0; in compat_wext_handle_ioctl()
1132 colon = strchr(iwr.ifr_name, ':'); in compat_wext_handle_ioctl()
/openbmc/u-boot/arch/sandbox/cpu/
H A Deth-raw-os.c48 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in sandbox_eth_raw_os_is_local()
124 strncpy(ifr.ifr_name, priv->host_ifname, IFNAMSIZ); in _raw_packet_start()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c457 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap()
486 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
H A Dlwt_helpers.h50 memcpy(ifr.ifr_name, dev_name, IFNAMSIZ); in open_tuntap()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/rarpd/rarpd/
H A D0003-rarpd.c-bug-fix.patch102 strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ);
258 - strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
259 + strncpy(ifr.ifr_name, ifname, IFNAMSIZ-1);
/openbmc/phosphor-networkd/test/
H A Dmock_syscall.cpp167 auto it = mock_if.find(req->ifr_name); in ioctl()
178 auto it = mock_if.find(req->ifr_name); in ioctl()
/openbmc/qemu/
H A Dqemu-bridge-helper.c181 snprintf(ifr->ifr_name, IFNAMSIZ, "%s", ifname); in prep_ifreq()
361 snprintf(iface, sizeof(iface), "%s", ifr.ifr_name); in main()
/openbmc/linux/arch/um/drivers/
H A Dvector_user.c144 strscpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in create_tap_fd()
174 strscpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in create_raw_fd()
/openbmc/linux/include/uapi/linux/
H A Dif.h259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
/openbmc/phosphor-networkd/src/
H A Dsystem_queries.cpp39 std::copy_n(ifname.begin(), copied, ifr.ifr_name); in makeIFReq()
/openbmc/linux/Documentation/networking/
H A Dtuntap.rst110 strscpy_pad(ifr.ifr_name, dev, IFNAMSIZ);
116 strcpy(dev, ifr.ifr_name);
164 strcpy(ifr.ifr_name, dev);
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_redirect_multi.c58 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
H A Dxdp_hw_metadata.c314 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in rxq_num()
335 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in hwtstamp_ioctl()
/openbmc/inarp/
H A Dinarp.c170 strncpy(ifreq->ifr_name, ifname, sizeof(ifreq->ifr_name)); in do_ifreq()
/openbmc/linux/arch/xtensa/platforms/iss/
H A Dnetwork.c173 strscpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()

12