/linux-6.1.9/net/phonet/ |
D | pn_dev.c | 50 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() 132 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_add() 151 struct phonet_device_list *pndevs = phonet_device_list(dev_net(dev)); in phonet_address_del() 196 def_dev = phonet_device_get(dev_net(dev)); in phonet_address_get() 254 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_autodel() 358 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_add() 375 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); in phonet_route_del()
|
D | pn_netlink.c | 40 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-6.1.9/net/bridge/ |
D | br_ioctl.c | 87 struct net *net = dev_net(br->dev); in add_del_if() 219 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 226 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 233 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 240 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 280 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 287 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 296 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate() 310 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
|
D | br_input.c | 69 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up() 240 net = dev_net(skb->dev); in nf_hook_bridge_pre() 276 net = dev_net(skb->dev); in nf_hook_bridge_pre() 279 br_handle_frame_finish(dev_net(skb->dev), NULL, skb); in nf_hook_bridge_pre() 377 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in br_handle_frame()
|
/linux-6.1.9/net/ipv6/ |
D | ip6_vti.c | 185 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() 536 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in vti6_xmit() 610 struct net *net = dev_net(skb->dev); in vti6_err() 614 t = vti6_tnl_lookup(dev_net(skb->dev), &iph->daddr, &iph->saddr); in vti6_err() [all …]
|
D | ndisc.c | 418 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() 532 ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); in ndisc_send_na() 540 if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr, in ndisc_send_na() 541 inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, in ndisc_send_na() 687 struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, in ndisc_send_rs() 742 if (skb && ipv6_chk_addr_and_flags(dev_net(dev), &ipv6_hdr(skb)->saddr, in ndisc_solicit() 769 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); in pndisc_is_router() 852 ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); in ndisc_recv_ns() 887 struct net *net = dev_net(dev); in ndisc_recv_ns() [all …]
|
D | ip6_input.c | 304 struct net *net = dev_net(skb->dev); in ipv6_rcv() 334 struct net *net = dev_net(dev); in ipv6_list_rcv() 494 dev_net(skb->dev), NULL, skb, skb->dev, NULL, in ip6_input() 506 __IP6_UPD_PO_STATS(dev_net(skb_dst(skb)->dev), in ip6_mc_input() 513 dev = dev_get_by_index_rcu(dev_net(skb->dev), sdif); in ip6_mc_input() 532 if (atomic_read(&dev_net(skb->dev)->ipv6.devconf_all->mc_forwarding) && in ip6_mc_input()
|
D | seg6_iptunnel.c | 131 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap() 208 struct net *net = dev_net(dst->dev); in seg6_do_srh_encap_red() 358 struct net *net = dev_net(skb_dst(skb)->dev); in seg6_do_srh_inline() 494 dev_net(skb->dev), NULL, skb, NULL, in seg6_input_core() 497 return seg6_input_finish(dev_net(skb->dev), NULL, skb); in seg6_input_core() 503 struct net *net = dev_net(skb->dev); in seg6_input_nf() 522 return seg6_input_core(dev_net(skb->dev), NULL, skb); in seg6_input()
|
D | icmp.c | 79 struct net *net = dev_net(skb->dev); in icmpv6_err() 466 net = dev_net(skb->dev); in icmp6_send() 671 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach() 709 struct net *net = dev_net(skb->dev); in icmpv6_echo_reply() 822 struct net *net = dev_net(skb->dev); in icmpv6_notify() 869 struct net *net = dev_net(skb->dev); in icmpv6_rcv() 901 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INMSGS); in icmpv6_rcv() 919 ICMP6MSGIN_INC_STATS(dev_net(dev), idev, type); in icmpv6_rcv() 1012 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_CSUMERRORS); in icmpv6_rcv() 1014 __ICMP6_INC_STATS(dev_net(dev), idev, ICMP6_MIB_INERRORS); in icmpv6_rcv()
|
D | exthdrs.c | 303 struct net *net = dev_net(skb->dev); in ipv6_destopt_rcv() 309 __IP6_INC_STATS(dev_net(dst->dev), idev, in ipv6_destopt_rcv() 372 struct net *net = dev_net(skb->dev); in ipv6_srh_rcv() 493 struct net *net = dev_net(skb->dev); in ipv6_rpl_srh_rcv() 689 struct net *net = dev_net(skb->dev); in ipv6_rthdr_rcv() 816 if (!ipv6_chk_home_addr(dev_net(skb_dst(skb)->dev), addr)) { in ipv6_rthdr_rcv() 924 return skb_dst(skb) ? dev_net(skb_dst(skb)->dev) : dev_net(skb->dev); in ipv6_skb_net() 1066 struct net *net = dev_net(skb->dev); in ipv6_parse_hopopts() 1166 net = dev_net(skb->dev); in ipv6_push_rthdr4()
|
D | ip6_tunnel.c | 256 struct net *net = dev_net(dev); in ip6_tnl_create2() 310 t->net = dev_net(dev); in ip6_tnl_create() 467 struct net *net = dev_net(skb->dev); in ip6_tnl_err() 482 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 611 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, eiph->saddr, in ip4ip6_err() 621 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, in ip4ip6_err() 678 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, in ip6ip6_err() 860 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in __ip6_tnl_rcv() 920 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->saddr, &ipv6h->daddr); in ipxip6_rcv() 1200 skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev))); in ip6_tnl_xmit() [all …]
|
D | ip6_gre.c | 119 struct net *net = dev_net(dev); in ip6gre_tunnel_lookup() 379 nt->net = dev_net(dev); in ip6gre_tunnel_locate() 421 struct net *net = dev_net(skb->dev); in ip6gre_err() 654 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv4() 699 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_ipv6() 726 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in prepare_ip6gre_xmit_other() 777 fl6->flowi6_uid = sock_net_uid(dev_net(dev), NULL); in __gre6_xmit() 1024 fl6.flowi6_uid = sock_net_uid(dev_net(dev), NULL); in ip6erspan_tunnel_xmit() 1404 ip6_flow_hdr(ipv6h, 0, ip6_make_flowlabel(dev_net(dev), skb, in ip6gre_header() 1505 tunnel->net = dev_net(dev); in ip6gre_tunnel_init_common() [all …]
|
/linux-6.1.9/net/ipv4/ |
D | ip_input.c | 154 struct net *net = dev_net(dev); in ip_call_ra_chain() 247 struct net *net = dev_net(skb->dev); in ip_local_deliver() 273 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INDISCARDS); in ip_rcv_options() 281 if (ip_options_compile(dev_net(dev), opt, skb)) { in ip_rcv_options() 282 __IP_INC_STATS(dev_net(dev), IPSTATS_MIB_INHDRERRORS); in ip_rcv_options() 563 struct net *net = dev_net(dev); in ip_rcv() 653 struct net *net = dev_net(dev); in ip_list_rcv()
|
D | ip_vti.c | 52 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() 257 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev))); in vti_xmit() 321 struct net *net = dev_net(skb->dev); in vti4_err()
|
D | icmp.c | 398 struct net *net = dev_net(rt->dst.dev); in icmp_reply() 603 net = dev_net(rt->dst.dev); in __icmp_send() 605 net = dev_net(skb_in->dev); in __icmp_send() 818 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_socket_deliver() 852 net = dev_net(skb_dst(skb)->dev); in icmp_unreach() 963 __ICMP_INC_STATS(dev_net(skb->dev), ICMP_MIB_INERRORS); in icmp_redirect() 995 net = dev_net(skb_dst(skb)->dev); in icmp_echo() 1026 struct net *net = dev_net(skb->dev); in icmp_build_probe() 1158 __ICMP_INC_STATS(dev_net(skb_dst(skb)->dev), ICMP_MIB_INERRORS); in icmp_timestamp() 1175 struct net *net = dev_net(rt->dst.dev); in icmp_rcv() [all …]
|
D | arp.c | 242 neigh->type = inet_addr_type_dev_table(dev_net(dev), dev, addr); in arp_constructor() 352 if (skb && inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit() 360 if (inet_addr_type_dev_table(dev_net(dev), dev, in arp_solicit() 398 struct net *net = dev_net(in_dev->dev); in arp_ignore() 434 struct net *net = dev_net(in_dev->dev); in arp_accept() 457 struct net *net = dev_net(dev); in arp_filter() 663 dev_net(skb->dev), NULL, skb, NULL, skb->dev, in arp_xmit() 951 arp_process(dev_net(skb->dev), NULL, skb); in parp_redo() 989 dev_net(dev), NULL, skb, dev, NULL, in arp_rcv() 1282 rt_cache_flush(dev_net(dev)); in arp_netdev_event()
|
D | fib_frontend.c | 287 net = dev_net(dev); in fib_compute_spec_dst() 348 struct net *net = dev_net(dev); in __fib_validate_source() 426 struct net *net = dev_net(dev); in fib_validate_source() 1069 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic() 1317 addr_type = inet_addr_type_dev_table(dev_net(dev), dev, in fib_del_ifaddr() 1327 fib_flush(dev_net(dev)); in fib_del_ifaddr() 1423 fib_flush(dev_net(dev)); in fib_disable_ip() 1425 rt_cache_flush(dev_net(dev)); in fib_disable_ip() 1433 struct net *net = dev_net(dev); in fib_inetaddr_event() 1442 rt_cache_flush(dev_net(dev)); in fib_inetaddr_event() [all …]
|
/linux-6.1.9/include/linux/ |
D | netfilter_netdev.h | 33 dev_net(skb->dev), NULL); in nf_hook_ingress() 103 dev_net(dev), NULL); in nf_hook_egress()
|
D | inetdevice.h | 84 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \ 92 IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr) 95 (max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \
|
/linux-6.1.9/drivers/net/ |
D | vrf.c | 186 return netns_vrf_map(dev_net(dev)); in netns_vrf_map_by_dev() 462 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() 543 struct net *net = dev_net(vrf_dev); in vrf_process_v4_outbound() 584 ret = vrf_ip_local_out(dev_net(skb_dst(skb)->dev), skb->sk, skb); in vrf_process_v4_outbound() 680 IP6_INC_STATS(dev_net(dst->dev), in vrf_finish_output6() 768 struct net *net = dev_net(vrf_dev); in vrf_ip6_out_direct() 806 struct net *net = dev_net(dev); in vrf_rt6_release() 828 struct net *net = dev_net(dev); in vrf_rt6_create() 998 struct net *net = dev_net(vrf_dev); in vrf_ip_out_direct() 1053 struct net *net = dev_net(dev); in vrf_rtable_release() [all …]
|
/linux-6.1.9/net/mctp/ |
D | neigh.c | 28 struct net *net = dev_net(mdev->dev); in mctp_neigh_add() 73 struct net *net = dev_net(mdev->dev); in mctp_neigh_remove_dev() 91 struct net *net = dev_net(mdev->dev); in mctp_neigh_remove() 281 struct net *net = dev_net(mdev->dev); in mctp_neigh_lookup()
|
/linux-6.1.9/net/caif/ |
D | caif_dev.c | 112 caif_device_list(dev_net(dev)); in caif_get() 320 struct cfcnfg *cfg = get_cfcnfg(dev_net(dev)); in caif_enroll_dev() 324 caifdevs = caif_device_list(dev_net(dev)); in caif_enroll_dev() 375 cfg = get_cfcnfg(dev_net(dev)); in caif_device_notify() 376 caifdevs = caif_device_list(dev_net(dev)); in caif_device_notify()
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_interface.c | 248 struct net *net = dev_net(dev); in xfrmi_create() 342 xnet = !net_eq(xi->net, dev_net(skb->dev)); in xfrmi_rcv_cb() 350 XFRM_INC_STATS(dev_net(skb->dev), in xfrmi_rcv_cb() 452 xfrmi_scrub_packet(skb, !net_eq(xi->net, dev_net(dev))); in xfrmi_xmit2() 490 dst = ip6_route_output(dev_net(dev), NULL, &fl.u.ip6); in xfrmi_xmit() 507 rt = __ip_route_output_key(dev_net(dev), &fl.u.ip4); in xfrmi_xmit() 537 struct net *net = dev_net(skb->dev); in xfrmi4_err() 598 struct net *net = dev_net(skb->dev); in xfrmi6_err() 774 struct net *net = dev_net(dev); in xfrmi_newlink() 970 spi = xfrm6_tunnel_spi_lookup(dev_net(skb->dev), saddr); in xfrmi6_rcv_tunnel()
|
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_bpf.c | 262 nfct = __bpf_nf_ct_alloc_entry(dev_net(ctx->rxq->dev), bpf_tuple, tuple__sz, in bpf_xdp_ct_alloc() 297 caller_net = dev_net(ctx->rxq->dev); in bpf_xdp_ct_lookup() 330 net = skb->dev ? dev_net(skb->dev) : sock_net(skb->sk); in bpf_skb_ct_alloc() 365 caller_net = skb->dev ? dev_net(skb->dev) : sock_net(skb->sk); in bpf_skb_ct_lookup()
|
D | nf_nat_masquerade.c | 154 struct net *net = dev_net(dev); in masq_device_event() 208 nf_nat_masq_schedule(dev_net(idev->dev), &addr, dev->ifindex, in masq_inet_event() 295 nf_nat_masq_schedule(dev_net(dev), &addr, dev->ifindex, inet_cmp, in masq_inet6_event()
|