/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/lowpan-tools/lowpan-tools/ |
H A D | 0001-Fix-potential-string-truncation-in-strncpy.patch | 32 - 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 D | dev_ioctl.c | 29 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 D | tap-linux.c | 100 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 D | tap-bsd.c | 80 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 D | net_iface.cpp | 93 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 D | tun.c | 25 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 D | hwtstamp_config.c | 116 strcpy(ifr.ifr_name, argv[1]); in main()
|
H A D | timestamping.c | 388 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 D | can_socketcan.c | 212 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 D | tuntap_user.c | 149 strscpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|
/openbmc/linux/net/wireless/ |
H A D | wext-core.c | 958 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 D | eth-raw-os.c | 48 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 D | flow_dissector.c | 457 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 D | lwt_helpers.h | 50 memcpy(ifr.ifr_name, dev_name, IFNAMSIZ); in open_tuntap()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/rarpd/rarpd/ |
H A D | 0003-rarpd.c-bug-fix.patch | 102 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 D | mock_syscall.cpp | 167 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 D | qemu-bridge-helper.c | 181 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 D | vector_user.c | 144 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 D | if.h | 259 #define ifr_name ifr_ifrn.ifrn_name /* interface name */ macro
|
/openbmc/phosphor-networkd/src/ |
H A D | system_queries.cpp | 39 std::copy_n(ifname.begin(), copied, ifr.ifr_name); in makeIFReq()
|
/openbmc/linux/Documentation/networking/ |
H A D | tuntap.rst | 110 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 D | xdp_redirect_multi.c | 58 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
|
H A D | xdp_hw_metadata.c | 314 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 D | inarp.c | 170 strncpy(ifreq->ifr_name, ifname, sizeof(ifreq->ifr_name)); in do_ifreq()
|
/openbmc/linux/arch/xtensa/platforms/iss/ |
H A D | network.c | 173 strscpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); in tuntap_open()
|