Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 15 of 15) sorted by relevance

/net/netfilter/
Dxt_qtaguid.c640 static struct iface_stat *get_iface_entry(const char *ifname) in get_iface_entry() argument
645 if (ifname == NULL) { in get_iface_entry()
652 if (!strcmp(ifname, iface_entry->ifname)) in get_iface_entry()
684 iface_entry->ifname, in pp_iface_stat_line()
762 iface_entry->ifname, in iface_stat_fmt_proc_show()
795 proc_entry = proc_mkdir(new_iface->ifname, iface_stat_procdir); in iface_create_proc_worker()
820 "entry=%p dev=%s\n", new_iface, new_iface->ifname); in iface_create_proc_worker()
837 entry->ifname, in _iface_stat_set_active()
844 entry->ifname, in _iface_stat_set_active()
862 new_iface->ifname = kstrdup(net_dev->name, GFP_ATOMIC); in iface_alloc()
[all …]
Dxt_qtaguid_internal.h219 char *ifname; member
Dxt_qtaguid_print.c205 is->ifname, in pp_iface_stat()
Dnf_tables_api.c1376 char ifname[IFNAMSIZ]; in nf_tables_newchain() local
1383 nla_strlcpy(ifname, ha[NFTA_HOOK_DEV], IFNAMSIZ); in nf_tables_newchain()
1384 dev = dev_get_by_name(net, ifname); in nf_tables_newchain()
/net/irda/
Dirnetlink.c37 char * ifname; in ifname_to_netdev() local
42 ifname = nla_data(info->attrs[IRDA_NL_ATTR_IFNAME]); in ifname_to_netdev()
44 pr_debug("%s(): Looking for %s\n", __func__, ifname); in ifname_to_netdev()
46 return dev_get_by_name(net, ifname); in ifname_to_netdev()
/net/l2tp/
Dl2tp_eth.c285 if (cfg->ifname) { in l2tp_eth_create()
286 dev = dev_get_by_name(net, cfg->ifname); in l2tp_eth_create()
292 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create()
350 strlcpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
Dl2tp_core.h72 char *ifname; member
105 char ifname[IFNAMSIZ]; member
251 const char *ifname,
Dl2tp_netlink.c63 char *ifname; in l2tp_nl_session_get() local
69 ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_session_get()
70 session = l2tp_session_get_by_ifname(net, ifname, do_ref); in l2tp_nl_session_get()
569 cfg.ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_cmd_session_create()
750 if ((session->ifname[0] && in l2tp_nl_session_send()
751 nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || in l2tp_nl_session_send()
Dl2tp_core.c297 const char *ifname, in l2tp_session_get_by_ifname() argument
307 if (!strcmp(session->ifname, ifname)) { in l2tp_session_get_by_ifname()
/net/core/
Drtnetlink.c1706 struct nlattr **tb, char *ifname, int status) in do_setlink() argument
1726 err = dev_change_net_namespace(dev, net, ifname); in do_setlink()
1800 if (ifm->ifi_index > 0 && ifname[0]) { in do_setlink()
1801 err = dev_change_name(dev, ifname); in do_setlink()
1981 char ifname[IFNAMSIZ]; in rtnl_setlink() local
1988 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_setlink()
1990 ifname[0] = '\0'; in rtnl_setlink()
1997 dev = __dev_get_by_name(net, ifname); in rtnl_setlink()
2006 err = do_setlink(skb, dev, ifm, tb, ifname, 0); in rtnl_setlink()
2068 char ifname[IFNAMSIZ]; in rtnl_dellink() local
[all …]
Dpktgen.c450 static int pktgen_add_device(struct pktgen_thread *t, const char *ifname);
452 const char *ifname, bool exact);
1947 const char *ifname, int remove) in __pktgen_NN_threads() argument
1954 pkt_dev = pktgen_find_dev(t, ifname, exact); in __pktgen_NN_threads()
1969 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument
1976 pr_debug("%s: marking %s for removal\n", __func__, ifname); in pktgen_mark_device()
1980 pkt_dev = __pktgen_NN_threads(pn, ifname, REMOVE); in pktgen_mark_device()
1986 __func__, ifname); in pktgen_mark_device()
1992 __func__, msec_per_try * i, ifname); in pktgen_mark_device()
2059 const char *ifname) in pktgen_dev_get_by_name() argument
[all …]
/net/phonet/
Dpep-gprs.c260 static const char ifname[] = "gprs%d"; in gprs_attach() local
269 dev = alloc_netdev(sizeof(*gp), ifname, NET_NAME_UNKNOWN, gprs_setup); in gprs_attach()
/net/batman-adv/
Dsysfs.c753 const char *ifname; in batadv_show_mesh_iface() local
760 ifname = "none"; in batadv_show_mesh_iface()
762 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface()
764 length = sprintf(buff, "%s\n", ifname); in batadv_show_mesh_iface()
/net/atm/
Dbr2684.c138 if (!strncmp(net_dev->name, s->spec.ifname, IFNAMSIZ)) in br2684_find_dev()
684 ni.ifname[0] ? ni.ifname : "nas%d", in br2684_create()
/net/can/
Dbcm.c189 char ifname[IFNAMSIZ]; in bcm_proc_show() local
198 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show()
210 op->can_id, bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()
236 bcm_proc_getifname(ifname, op->ifindex), in bcm_proc_show()