• Home
  • Raw
  • Download

Lines Matching refs:net

153 static int vrf_ip6_local_out(struct net *net, struct sock *sk,  in vrf_ip6_local_out()  argument
158 err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, in vrf_ip6_local_out()
162 err = dst_output(net, sk, skb); in vrf_ip6_local_out()
171 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() local
175 struct dst_entry *dst_null = &net->ipv6.ip6_null_entry->dst; in vrf_process_v6_outbound()
193 dst = ip6_route_output(net, NULL, &fl6); in vrf_process_v6_outbound()
211 ret = vrf_ip6_local_out(net, skb->sk, skb); in vrf_process_v6_outbound()
232 static int vrf_ip_local_out(struct net *net, struct sock *sk, in vrf_ip_local_out() argument
237 err = nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, in vrf_ip_local_out()
240 err = dst_output(net, sk, skb); in vrf_ip_local_out()
251 struct net *net = dev_net(vrf_dev); in vrf_process_v4_outbound() local
269 rt = ip_route_output_flow(net, &fl4, NULL); in vrf_process_v4_outbound()
337 static int vrf_finish_direct(struct net *net, struct sock *sk, in vrf_finish_direct() argument
362 static int vrf_finish_output6(struct net *net, struct sock *sk, in vrf_finish_output6() argument
396 static int vrf_output6(struct net *net, struct sock *sk, struct sk_buff *skb) in vrf_output6() argument
399 net, sk, skb, NULL, skb_dst(skb)->dev, in vrf_output6()
436 static int vrf_output6_direct(struct net *net, struct sock *sk, in vrf_output6_direct() argument
442 net, sk, skb, NULL, skb->dev, in vrf_output6_direct()
451 struct net *net = dev_net(vrf_dev); in vrf_ip6_out_direct() local
456 err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, sk, in vrf_ip6_out_direct()
460 err = vrf_output6_direct(net, sk, skb); in vrf_ip6_out_direct()
489 struct net *net = dev_net(dev); in vrf_rt6_release() local
501 dst->dev = net->loopback_dev; in vrf_rt6_release()
511 struct net *net = dev_net(dev); in vrf_rt6_create() local
520 rt6i_table = fib6_new_table(net, vrf->tb_id); in vrf_rt6_create()
525 rt6 = ip6_dst_alloc(net, dev, flags); in vrf_rt6_create()
557 static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) in vrf_finish_output() argument
604 static int vrf_output(struct net *net, struct sock *sk, struct sk_buff *skb) in vrf_output() argument
608 IP_UPD_PO_STATS(net, IPSTATS_MIB_OUT, skb->len); in vrf_output()
614 net, sk, skb, NULL, dev, in vrf_output()
651 static int vrf_output_direct(struct net *net, struct sock *sk, in vrf_output_direct() argument
657 net, sk, skb, NULL, skb->dev, in vrf_output_direct()
666 struct net *net = dev_net(vrf_dev); in vrf_ip_out_direct() local
671 err = nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, in vrf_ip_out_direct()
675 err = vrf_output_direct(net, sk, skb); in vrf_ip_out_direct()
721 struct net *net = dev_net(dev); in vrf_rtable_release() local
733 dst->dev = net->loopback_dev; in vrf_rtable_release()
891 static int vrf_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in vrf_rcv_finish() argument
901 struct net *net = dev_net(dev); in vrf_rcv_nfhook() local
903 if (nf_hook(pf, hook, net, NULL, skb, dev, NULL, vrf_rcv_finish) != 1) in vrf_rcv_nfhook()
944 static struct rt6_info *vrf_ip6_route_lookup(struct net *net, in vrf_ip6_route_lookup() argument
966 return ip6_pol_route(net, table, ifindex, fl6, flags); in vrf_ip6_route_lookup()
981 struct net *net = dev_net(vrf_dev); in vrf_ip6_input_dst() local
984 rt6 = vrf_ip6_route_lookup(net, vrf_dev, &fl6, ifindex, in vrf_ip6_input_dst()
989 if (unlikely(&rt6->dst == &net->ipv6.ip6_null_entry->dst)) in vrf_ip6_input_dst()
1099 struct net *net = dev_net(dev); in vrf_link_scope_lookup() local
1109 dst = &net->ipv6.ip6_null_entry->dst; in vrf_link_scope_lookup()
1117 rt = vrf_ip6_route_lookup(net, dev, fl6, fl6->flowi6_oif, flags); in vrf_link_scope_lookup()
1305 static int vrf_newlink(struct net *src_net, struct net_device *dev, in vrf_newlink()
1311 struct net *net; in vrf_newlink() local
1332 net = dev_net(dev); in vrf_newlink()
1333 add_fib_rules = net_generic(net, vrf_net_id); in vrf_newlink()
1424 static int __net_init vrf_netns_init(struct net *net) in vrf_netns_init() argument
1426 bool *add_fib_rules = net_generic(net, vrf_net_id); in vrf_netns_init()