Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 16 of 16) 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.c1247 char ifname[IFNAMSIZ]; in nft_chain_parse_hook() local
1254 nla_strlcpy(ifname, ha[NFTA_HOOK_DEV], IFNAMSIZ); in nft_chain_parse_hook()
1255 dev = dev_get_by_name(net, ifname); in nft_chain_parse_hook()
/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.c226 if (cfg->ifname) { in l2tp_eth_create()
227 dev = dev_get_by_name(net, cfg->ifname); in l2tp_eth_create()
233 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create()
278 strlcpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
Dl2tp_core.h82 char *ifname; member
114 char ifname[IFNAMSIZ]; member
254 struct l2tp_session *l2tp_session_get_by_ifname(struct net *net, 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()
572 cfg.ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_cmd_session_create()
751 if ((session->ifname[0] && in l2tp_nl_session_send()
752 nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || in l2tp_nl_session_send()
Dl2tp_core.c359 struct l2tp_session *l2tp_session_get_by_ifname(struct net *net, char *ifname, in l2tp_session_get_by_ifname() argument
369 if (!strcmp(session->ifname, ifname)) { in l2tp_session_get_by_ifname()
/net/core/
Dpktgen.c451 static int pktgen_add_device(struct pktgen_thread *t, const char *ifname);
453 const char *ifname, bool exact);
1955 const char *ifname, int remove) in __pktgen_NN_threads() argument
1962 pkt_dev = pktgen_find_dev(t, ifname, exact); in __pktgen_NN_threads()
1977 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument
1984 pr_debug("%s: marking %s for removal\n", __func__, ifname); in pktgen_mark_device()
1988 pkt_dev = __pktgen_NN_threads(pn, ifname, REMOVE); in pktgen_mark_device()
1994 __func__, ifname); in pktgen_mark_device()
2000 __func__, msec_per_try * i, ifname); in pktgen_mark_device()
2067 const char *ifname) in pktgen_dev_get_by_name() argument
[all …]
Drtnetlink.c1912 struct nlattr **tb, char *ifname, int status) in do_setlink() argument
1928 err = dev_change_net_namespace(dev, net, ifname); in do_setlink()
2002 if (ifm->ifi_index > 0 && ifname[0]) { in do_setlink()
2003 err = dev_change_name(dev, ifname); in do_setlink()
2212 char ifname[IFNAMSIZ]; in rtnl_setlink() local
2219 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_setlink()
2221 ifname[0] = '\0'; in rtnl_setlink()
2228 dev = __dev_get_by_name(net, ifname); in rtnl_setlink()
2241 err = do_setlink(skb, dev, ifm, tb, ifname, 0); in rtnl_setlink()
2303 char ifname[IFNAMSIZ]; in rtnl_dellink() local
[all …]
/net/batman-adv/
Dsysfs.c884 const char *ifname; in batadv_show_mesh_iface() local
891 ifname = "none"; in batadv_show_mesh_iface()
893 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface()
895 length = sprintf(buff, "%s\n", ifname); in batadv_show_mesh_iface()
913 char ifname[IFNAMSIZ]) in batadv_store_mesh_iface_finish()
926 if (strncmp(ifname, "none", 4) == 0) in batadv_store_mesh_iface_finish()
935 (strncmp(hard_iface->soft_iface->name, ifname, IFNAMSIZ) == 0)) in batadv_store_mesh_iface_finish()
949 ret = batadv_hardif_enable_interface(hard_iface, net, ifname); in batadv_store_mesh_iface_finish()
/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/netfilter/ipvs/
Dip_vs_sync.c1362 static int set_mcast_if(struct sock *sk, char *ifname) in set_mcast_if() argument
1368 dev = __dev_get_by_name(net, ifname); in set_mcast_if()
1398 join_mcast_group(struct sock *sk, struct in_addr *addr, char *ifname) in join_mcast_group() argument
1408 dev = __dev_get_by_name(net, ifname); in join_mcast_group()
1425 char *ifname) in join_mcast_group6() argument
1431 dev = __dev_get_by_name(net, ifname); in join_mcast_group6()
1445 static int bind_mcastif_addr(struct socket *sock, char *ifname) in bind_mcastif_addr() argument
1452 dev = __dev_get_by_name(net, ifname); in bind_mcastif_addr()
1462 ifname, &addr); in bind_mcastif_addr()
/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.c172 char ifname[IFNAMSIZ]; in bcm_proc_show() local
181 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show()
193 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()
222 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()