/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | xdping.c | 100 char *ifname = NULL; in main() local 119 ifname = optarg; in main() 120 ifindex = if_nametoindex(ifname); in main() 123 ifname); in main() 143 if (!ifname) { in main() 202 printf("Setting up XDP for %s, please wait...\n", ifname); in main() 207 fprintf(stderr, "Link set xdp fd failed for %s\n", ifname); in main() 215 ifname); in main() 239 count, ifname, argv[optind]); in main()
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_013.cpp | 132 static unsigned int GetIp(int sfd, const char *ifname) in GetIp() argument 136 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, ifname, sizeof(ifr.ifr_name) - 1); in GetIp() 148 static unsigned int GetNetmask(int sfd, const char *ifname) in GetNetmask() argument 152 int ret = strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, ifname, sizeof(ifr.ifr_name) - 1); in GetNetmask() 175 const char *ifname[] = {"eth0", "wlan0", "et1", "wl1", "enp4s0f0"}; in ClientsThread() local 193 for (int j = 0; j < sizeof(ifname) / sizeof(ifname[0]); ++j) { in ClientsThread() 194 ip = GetIp(fd, ifname[j]); in ClientsThread() 195 msk = GetNetmask(fd, ifname[j]); in ClientsThread() 197 LogPrintln("[%d]<%d>%s: ip %s", fd, thrNo, ifname[j], MyInetNtoa(ip)); in ClientsThread() 198 LogPrintln("[%d]<%d>%s: netmask %s", fd, thrNo, ifname[j], MyInetNtoa(msk)); in ClientsThread()
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
D | bond_sysfs.c | 62 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument 67 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name() 85 char *ifname; in bonding_store_bonds() local 89 ifname = command + 1; in bonding_store_bonds() 91 !dev_valid_name(ifname)) in bonding_store_bonds() 95 pr_info("%s is being created...\n", ifname); in bonding_store_bonds() 96 rv = bond_create(bn->net, ifname); in bonding_store_bonds() 99 pr_info("%s already exists\n", ifname); in bonding_store_bonds() 101 pr_info("%s creation failed\n", ifname); in bonding_store_bonds() 108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds() [all …]
|
D | bond_options.c | 796 char ifname[IFNAMSIZ] = { 0, }; in bond_option_active_slave_set() local 800 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set() 801 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set() 804 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set() 1390 char *ifname; in bond_option_slaves_set() local 1394 ifname = command + 1; in bond_option_slaves_set() 1397 !dev_valid_name(ifname)) in bond_option_slaves_set() 1400 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_slaves_set() 1403 ifname); in bond_option_slaves_set()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | os_intfs.c | 33 static char ifname[IFNAMSIZ] = "wlan%d"; variable 88 module_param_string(ifname, ifname, sizeof(ifname), 0644); 110 MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default"); 205 if (dev_alloc_name(pnetdev, ifname) < 0) { in r8712_init_netdev() 206 strcpy(ifname, "wlan%d"); in r8712_init_netdev() 207 dev_alloc_name(pnetdev, ifname); in r8712_init_netdev()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | atmbr2684.h | 44 char ifname[IFNAMSIZ]; member 53 char ifname[IFNAMSIZ]; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | atmbr2684.h | 32 char ifname[IFNAMSIZ]; member 41 char ifname[IFNAMSIZ]; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | atmbr2684.h | 58 char ifname[IFNAMSIZ]; member 72 char ifname[IFNAMSIZ]; member
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | sysfs.c | 383 char ifname[IFNAMSIZ + 3] = ""; in batadv_store_uint_attr() local 410 snprintf(ifname, sizeof(ifname), "%s: ", slave_dev->name); in batadv_store_uint_attr() 413 attr_name, ifname, atomic_read(attr), uint_val); in batadv_store_uint_attr() 947 const char *ifname; in batadv_show_mesh_iface() local 956 ifname = "none"; in batadv_show_mesh_iface() 958 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface() 960 length = sprintf(buff, "%s\n", ifname); in batadv_show_mesh_iface() 978 char ifname[IFNAMSIZ]) in batadv_store_mesh_iface_finish() 991 if (strncmp(ifname, "none", 4) == 0) in batadv_store_mesh_iface_finish() 1000 strncmp(hard_iface->soft_iface->name, ifname, IFNAMSIZ) == 0) in batadv_store_mesh_iface_finish() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fweh.c | 158 brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, in brcmf_fweh_handle_if_event() 161 is_p2pdev, emsg->ifname, emsg->addr); in brcmf_fweh_handle_if_event() 246 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
|
/kernel/linux/linux-5.10/drivers/net/can/ |
D | vxcan.c | 171 char ifname[IFNAMSIZ]; in vxcan_newlink() local 195 nla_strlcpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink() 198 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); in vxcan_newlink() 206 peer = rtnl_create_link(peer_net, ifname, name_assign_type, in vxcan_newlink()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | xsk.c | 71 char ifname[IFNAMSIZ]; member 452 memcpy(ifr.ifr_name, ctx->ifname, IFNAMSIZ - 1); in xsk_get_max_queues() 661 const char *ifname, __u32 queue_id, in xsk_create_ctx() argument 688 memcpy(ctx->ifname, ifname, IFNAMSIZ - 1); in xsk_create_ctx() 689 ctx->ifname[IFNAMSIZ - 1] = '\0'; in xsk_create_ctx() 698 const char *ifname, in xsk_socket__create_shared() argument 728 ifindex = if_nametoindex(ifname); in xsk_socket__create_shared() 753 ctx = xsk_create_ctx(xsk, umem, ifindex, ifname, queue_id, in xsk_socket__create_shared() 883 int xsk_socket__create(struct xsk_socket **xsk_ptr, const char *ifname, in xsk_socket__create() argument 891 return xsk_socket__create_shared(xsk_ptr, ifname, queue_id, umem, in xsk_socket__create()
|
D | libbpf_probes.c | 27 char ifname[IF_NAMESIZE], path[64], buf[8]; in get_vendor_id() local 31 if (!if_indextoname(ifindex, ifname)) in get_vendor_id() 34 snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); in get_vendor_id()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | xdp_rxq_info_user.c | 31 static char *ifname; variable 72 ifindex, ifname); in int_exit() 348 ifname, ifindex, action2str(action), options2str(cfg_opt)); in stats_print() 508 ifname = (char *)&ifname_buf; in main() 509 strncpy(ifname, optarg, IF_NAMESIZE); in main() 510 ifindex = if_nametoindex(ifname); in main()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/ |
D | os_intfs.c | 84 static char *ifname = "wlan%d"; variable 85 module_param(ifname, charp, 0644); 86 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface"); 182 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam() 295 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 297 if (dev_alloc_name(pnetdev, ifname) < 0) in rtw_init_netdev_name()
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_core.h | 61 char *ifname; member 95 char ifname[IFNAMSIZ]; member 233 const char *ifname);
|
D | l2tp_eth.c | 256 if (cfg->ifname) { in l2tp_eth_create() 257 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create() 317 strlcpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
|
/kernel/linux/linux-5.10/Documentation/usb/ |
D | gadget-testing.rst | 83 ifname network device interface name associated with this 94 Except for ifname they can be written to until the function is linked to a 95 configuration. The ifname is read-only and contains the name of the interface 123 ifname network device interface name associated with this 134 Except for ifname they can be written to until the function is linked to a 135 configuration. The ifname is read-only and contains the name of the interface 163 ifname network device interface name associated with this 174 Except for ifname they can be written to until the function is linked to a 175 configuration. The ifname is read-only and contains the name of the interface 445 ifname network device interface name associated with this [all …]
|
/kernel/linux/linux-5.10/net/core/ |
D | pktgen.c | 464 static int pktgen_add_device(struct pktgen_thread *t, const char *ifname); 466 const char *ifname, bool exact); 1857 const char *ifname, int remove) in __pktgen_NN_threads() argument 1864 pkt_dev = pktgen_find_dev(t, ifname, exact); in __pktgen_NN_threads() 1879 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument 1886 pr_debug("%s: marking %s for removal\n", __func__, ifname); in pktgen_mark_device() 1890 pkt_dev = __pktgen_NN_threads(pn, ifname, REMOVE); in pktgen_mark_device() 1896 __func__, ifname); in pktgen_mark_device() 1902 __func__, msec_per_try * i, ifname); in pktgen_mark_device() 1969 const char *ifname) in pktgen_dev_get_by_name() argument [all …]
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | configfs-usb-gadget-phonet | 6 This item contains just one readonly attribute: ifname.
|
D | configfs-usb-gadget-ecm | 7 ifname
|
D | configfs-usb-gadget-ncm | 7 ifname - network device interface name associated with
|
/kernel/linux/linux-5.10/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 710 char ifname[IFNAMSIZ + 2]; in fcoe_if_to_netdev() local 713 strlcpy(ifname, buffer, IFNAMSIZ); in fcoe_if_to_netdev() 714 cp = ifname + strlen(ifname); in fcoe_if_to_netdev() 715 while (--cp >= ifname && *cp == '\n') in fcoe_if_to_netdev() 717 return dev_get_by_name(&init_net, ifname); in fcoe_if_to_netdev()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 122 int rtw_change_ifname(struct adapter *padapter, const char *ifname) in rtw_change_ifname() argument 154 rtw_init_netdev_name(pnetdev, ifname); in rtw_change_ifname()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/ |
D | osdep_intf.h | 26 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
|