Home
last modified time | relevance | path

Searched refs:dev_net (Results 1 – 25 of 250) sorted by relevance

12345678910

/Linux-v5.10/net/phonet/
Dpn_dev.c50 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_device_alloc()
64 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get()
77 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in __phonet_get_rcu()
89 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_device_destroy()
133 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_add()
152 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_del()
197 def_dev = phonet_device_get(dev_net(dev)); in phonet_address_get()
255 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_autodel()
359 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_add()
376 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_del()
Dpn_netlink.c40 rtnl_notify(skb, dev_net(dev), 0, in phonet_address_notify()
44 rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); in phonet_address_notify()
206 rtnl_notify(skb, dev_net(dev), 0, in rtm_phonet_notify()
210 rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_ROUTE, err); in rtm_phonet_notify()
/Linux-v5.10/net/bridge/
Dbr_ioctl.c85 struct net *net = dev_net(br->dev); in add_del_if()
181 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
188 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
195 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
202 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
242 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
249 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
258 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
272 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl()
Dbr_input.c66 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up()
213 net = dev_net(skb->dev); in nf_hook_bridge_pre()
249 net = dev_net(skb->dev); in nf_hook_bridge_pre()
252 br_handle_frame_finish(dev_net(skb->dev), NULL, skb); in nf_hook_bridge_pre()
338 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in br_handle_frame()
/Linux-v5.10/net/ipv6/
Dip6_vti.c184 struct net *net = dev_net(dev); in vti6_tnl_create2()
227 t->net = dev_net(dev); in vti6_tnl_create()
306 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_input_proto()
375 XFRM_INC_STATS(dev_net(skb->dev), in vti6_rcv_cb()
390 skb_scrub_packet(skb, !net_eq(t->net, dev_net(skb->dev))); in vti6_rcv_cb()
464 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti6_xmit()
474 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti6_xmit()
534 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in vti6_xmit()
608 struct net *net = dev_net(skb->dev); in vti6_err()
612 t = vti6_tnl_lookup(dev_net(skb->dev), &iph->daddr, &iph->saddr); in vti6_err()
[all …]
Dndisc.c417 struct sock *sk = dev_net(dev)->ipv6.ndisc_sk; in ndisc_alloc_skb()
474 struct net *net = dev_net(skb->dev); in ndisc_send_skb()
531 ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); in ndisc_send_na()
539 if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr, in ndisc_send_na()
540 inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, in ndisc_send_na()
671 struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, in ndisc_send_rs()
726 if (skb && ipv6_chk_addr_and_flags(dev_net(dev), &ipv6_hdr(skb)->saddr, in ndisc_solicit()
753 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); in pndisc_is_router()
836 ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); in ndisc_recv_ns()
871 struct net *net = dev_net(dev); in ndisc_recv_ns()
[all …]
Dip6_input.c302 struct net *net = dev_net(skb->dev); in ipv6_rcv()
332 struct net *net = dev_net(dev); in ipv6_list_rcv()
484 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in ip6_input()
496 __IP6_UPD_PO_STATS(dev_net(skb_dst(skb)->dev), in ip6_mc_input()
503 dev = dev_get_by_index_rcu(dev_net(skb->dev), sdif); in ip6_mc_input()
522 if (dev_net(skb->dev)->ipv6.devconf_all->mc_forwarding && in ip6_mc_input()
Dicmp.c88 struct net *net = dev_net(skb->dev); in icmpv6_err()
473 net = dev_net(skb->dev); in icmp6_send()
677 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach()
715 struct net *net = dev_net(skb->dev); in icmpv6_echo_reply()
817 struct net *net = dev_net(skb->dev); in icmpv6_notify()
861 struct net *net = dev_net(skb->dev); in icmpv6_rcv()
889 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INMSGS); in icmpv6_rcv()
907 ICMP6MSGIN_INC_STATS(dev_net(dev), idev, type); in icmpv6_rcv()
990 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_CSUMERRORS); in icmpv6_rcv()
992 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INERRORS); in icmpv6_rcv()
Dexthdrs.c286 struct net *net = dev_net(skb->dev); in ipv6_destopt_rcv()
292 __IP6_INC_STATS(dev_net(dst->dev), idev, in ipv6_destopt_rcv()
356 struct net *net = dev_net(skb->dev); in ipv6_srh_rcv()
476 struct net *net = dev_net(skb->dev); in ipv6_rpl_srh_rcv()
675 struct net *net = dev_net(skb->dev); in ipv6_rthdr_rcv()
803 if (!ipv6_chk_home_addr(dev_net(skb_dst(skb)->dev), addr)) { in ipv6_rthdr_rcv()
916 return skb_dst(skb) ? dev_net(skb_dst(skb)->dev) : dev_net(skb->dev); in ipv6_skb_net()
1021 struct net *net = dev_net(skb->dev); in ipv6_parse_hopopts()
1122 net = dev_net(skb->dev); in ipv6_push_rthdr4()
Dxfrm6_policy.c66 ipv6_dev_get_saddr(dev_net(dev), dev, &daddr->in6, 0, &saddr->in6); in xfrm6_get_saddr()
95 atomic_inc(&dev_net(dev)->ipv6.rt6_stats->fib_rt_uncache); in xfrm6_fill_dst()
142 in6_dev_get(dev_net(dev)->loopback_dev); in xfrm6_dst_ifdown()
Dip6_tunnel.c283 struct net *net = dev_net(dev); in ip6_tnl_create2()
340 t->net = dev_net(dev); in ip6_tnl_create()
501 struct net *net = dev_net(skb->dev); in ip6_tnl_err()
516 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err()
645 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, eiph->saddr, in ip4ip6_err()
655 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, in ip4ip6_err()
712 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, in ip6ip6_err()
898 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in __ip6_tnl_rcv()
958 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->saddr, &ipv6h->daddr); in ipxip6_rcv()
1227 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in ip6_tnl_xmit()
[all …]
Dip6_gre.c119 struct net *net = dev_net(dev); in ip6gre_tunnel_lookup()
379 nt->net = dev_net(dev); in ip6gre_tunnel_locate()
427 struct net *net = dev_net(skb->dev); in ip6gre_err()
660 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv4()
705 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv6()
758 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in __gre6_xmit()
993 fl6.flowi6_uid = sock_net_uid(dev_net(dev), NULL); in ip6erspan_tunnel_xmit()
1368 ip6_flow_hdr(ipv6h, 0, ip6_make_flowlabel(dev_net(dev), skb, in ip6gre_header()
1472 tunnel->net = dev_net(dev); in ip6gre_tunnel_init_common()
1537 tunnel->net = dev_net(dev); in ip6gre_fb_tunnel_init()
[all …]
/Linux-v5.10/net/ipv4/
Dip_input.c154 struct net *net = dev_net(dev); in ip_call_ra_chain()
245 struct net *net = dev_net(skb->dev); in ip_local_deliver()
270 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INDISCARDS); in ip_rcv_options()
278 if (ip_options_compile(dev_net(dev), opt, skb)) { in ip_rcv_options()
279 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INHDRERRORS); in ip_rcv_options()
533 struct net *net = dev_net(dev); in ip_rcv()
623 struct net *net = dev_net(dev); in ip_list_rcv()
Dicmp.c373 sk = icmp_sk(dev_net((*rt)->dst.dev)); in icmp_push_reply()
405 struct net *net = dev_net(rt->dst.dev); in icmp_reply()
610 net = dev_net(rt->dst.dev); in __icmp_send()
612 net = dev_net(skb_in->dev); in __icmp_send()
817 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_socket_deliver()
850 net = dev_net(skb_dst(skb)->dev); in icmp_unreach()
959 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_redirect()
988 net = dev_net(skb_dst(skb)->dev); in icmp_echo()
1039 __ICMP_INC_STATS(dev_net(skb_dst(skb)->dev), ICMP_MIB_INERRORS); in icmp_timestamp()
1056 struct net *net = dev_net(rt->dst.dev); in icmp_rcv()
[all …]
Dip_vti.c52 struct net *net = dev_net(skb->dev); in vti_input()
123 XFRM_INC_STATS(dev_net(skb->dev), in vti_rcv_cb()
138 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev))); in vti_rcv_cb()
184 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti_xmit()
197 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti_xmit()
255 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev))); in vti_xmit()
319 struct net *net = dev_net(skb->dev); in vti4_err()
Dfib_frontend.c286 net = dev_net(dev); in fib_compute_spec_dst()
347 struct net *net = dev_net(dev); in __fib_validate_source()
424 struct net *net = dev_net(dev); in fib_validate_source()
1053 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic()
1300 addr_type = inet_addr_type_dev_table(dev_net(dev), dev, in fib_del_ifaddr()
1310 fib_flush(dev_net(dev)); in fib_del_ifaddr()
1406 fib_flush(dev_net(dev)); in fib_disable_ip()
1408 rt_cache_flush(dev_net(dev)); in fib_disable_ip()
1416 struct net *net = dev_net(dev); in fib_inetaddr_event()
1425 rt_cache_flush(dev_net(dev)); in fib_inetaddr_event()
[all …]
Darp.c241 neigh->type = inet_addr_type_dev_table(dev_net(dev), dev, addr); in arp_constructor()
351 if (skb && inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit()
359 if (inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit()
397 struct net *net = dev_net(in_dev->dev); in arp_ignore()
436 struct net *net = dev_net(dev); in arp_filter()
642 dev_net(skb->dev), NULL, skb, NULL, skb->dev, in arp_xmit()
930 arp_process(dev_net(skb->dev), NULL, skb); in parp_redo()
968 dev_net(dev), NULL, skb, dev, NULL, in arp_rcv()
1254 rt_cache_flush(dev_net(dev)); in arp_netdev_event()
/Linux-v5.10/net/xfrm/
Dxfrm_interface.c151 struct net *net = dev_net(dev); in xfrmi_create()
237 xnet = !net_eq(xi->net, dev_net(skb->dev)); in xfrmi_rcv_cb()
245 XFRM_INC_STATS(dev_net(skb->dev), in xfrmi_rcv_cb()
316 xfrmi_scrub_packet(skb, !net_eq(xi->net, dev_net(dev))); in xfrmi_xmit2()
359 dst = ip6_route_output(dev_net(dev), NULL, &fl.u.ip6); in xfrmi_xmit()
376 rt = __ip_route_output_key(dev_net(dev), &fl.u.ip4); in xfrmi_xmit()
406 struct net *net = dev_net(skb->dev); in xfrmi4_err()
466 struct net *net = dev_net(skb->dev); in xfrmi6_err()
642 struct net *net = dev_net(dev); in xfrmi_newlink()
797 spi = xfrm6_tunnel_spi_lookup(dev_net(skb->dev), saddr); in xfrmi6_rcv_tunnel()
/Linux-v5.10/drivers/net/
Dvrf.c183 return netns_vrf_map(dev_net(dev)); in netns_vrf_map_by_dev()
445 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound()
525 struct net *net = dev_net(vrf_dev); in vrf_process_v4_outbound()
566 ret = vrf_ip_local_out(dev_net(skb_dst(skb)->dev), skb->sk, skb); in vrf_process_v4_outbound()
663 IP6_INC_STATS(dev_net(dst->dev), in vrf_finish_output6()
751 struct net *net = dev_net(vrf_dev); in vrf_ip6_out_direct()
787 struct net *net = dev_net(dev); in vrf_rt6_release()
809 struct net *net = dev_net(dev); in vrf_rt6_create()
986 struct net *net = dev_net(vrf_dev); in vrf_ip_out_direct()
1039 struct net *net = dev_net(dev); in vrf_rtable_release()
[all …]
/Linux-v5.10/net/batman-adv/
Ddebugfs.c320 struct net *net = dev_net(hard_iface->net_dev); in batadv_debugfs_add_hardif()
359 struct net *net = dev_net(hard_iface->net_dev); in batadv_debugfs_del_hardif()
380 struct net *net = dev_net(dev); in batadv_debugfs_add_meshif()
431 struct net *net = dev_net(dev); in batadv_debugfs_del_meshif()
/Linux-v5.10/net/netfilter/
Dnf_tables_offload.c296 nft_flow_block_offload_init(&bo, dev_net(dev), cmd, chain, &extack); in nft_block_offload_cmd()
310 struct net *net = dev_net(dev); in nft_indr_block_cleanup()
313 nft_flow_block_offload_init(&bo, dev_net(dev), FLOW_BLOCK_UNBIND, in nft_indr_block_cleanup()
330 nft_flow_block_offload_init(&bo, dev_net(dev), cmd, basechain, &extack); in nft_indr_block_offload_cmd()
542 struct net *net = dev_net(dev); in __nft_offload_get_chain()
579 struct net *net = dev_net(dev); in nft_offload_netdev_event()
Dnf_nat_masquerade.c80 struct net *net = dev_net(dev); in masq_device_event()
114 struct net *net = dev_net(idev->dev); in masq_inet_event()
243 net = maybe_get_net(dev_net(dev)); in masq_inet6_event()
/Linux-v5.10/net/caif/
Dcaif_dev.c112 caif_device_list(dev_net(dev)); in caif_get()
320 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); in caif_enroll_dev()
323 caifdevs = caif_device_list(dev_net(dev)); in caif_enroll_dev()
372 cfg = get_cfcnfg(dev_net(dev)); in caif_device_notify()
373 caifdevs = caif_device_list(dev_net(dev)); in caif_device_notify()
Dchnl_net.c275 result = caif_connect_client(dev_net(dev), &priv->conn_req, in chnl_net_open()
286 lldev = __dev_get_by_index(dev_net(dev), llifindex); in chnl_net_open()
332 caif_disconnect_client(dev_net(dev), &priv->chnl); in chnl_net_open()
348 caif_disconnect_client(dev_net(dev), &priv->chnl); in chnl_net_open()
362 caif_disconnect_client(dev_net(dev), &priv->chnl); in chnl_net_stop()
/Linux-v5.10/include/linux/
Dinetdevice.h82 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \
90 IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr)
93 (max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \

12345678910