/net/netfilter/ |
D | xt_qtaguid.c | 640 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 …]
|
D | xt_qtaguid_internal.h | 219 char *ifname; member
|
D | xt_qtaguid_print.c | 205 is->ifname, in pp_iface_stat()
|
D | nf_tables_api.c | 1247 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/ |
D | irnetlink.c | 37 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/ |
D | l2tp_eth.c | 226 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()
|
D | l2tp_core.h | 82 char *ifname; member 114 char ifname[IFNAMSIZ]; member 254 struct l2tp_session *l2tp_session_get_by_ifname(struct net *net, char *ifname,
|
D | l2tp_netlink.c | 63 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()
|
D | l2tp_core.c | 359 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/ |
D | pktgen.c | 451 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 …]
|
D | rtnetlink.c | 1912 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/ |
D | sysfs.c | 884 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/ |
D | pep-gprs.c | 260 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/ |
D | ip_vs_sync.c | 1362 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/ |
D | br2684.c | 138 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/ |
D | bcm.c | 172 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()
|