Lines Matching refs:ip_tunnel
71 static bool check_6rd(struct ip_tunnel *tunnel, const struct in6_addr *v6dst,
77 struct ip_tunnel __rcu *tunnels_r_l[IP6_SIT_HASH_SIZE];
78 struct ip_tunnel __rcu *tunnels_r[IP6_SIT_HASH_SIZE];
79 struct ip_tunnel __rcu *tunnels_l[IP6_SIT_HASH_SIZE];
80 struct ip_tunnel __rcu *tunnels_wc[1];
81 struct ip_tunnel __rcu **tunnels[4];
88 struct ip_tunnel *t = netdev_priv(dev); in dev_to_sit_net()
96 static struct ip_tunnel *ipip6_tunnel_lookup(struct net *net, in ipip6_tunnel_lookup()
103 struct ip_tunnel *t; in ipip6_tunnel_lookup()
135 static struct ip_tunnel __rcu **__ipip6_bucket(struct sit_net *sitn, in __ipip6_bucket()
154 static inline struct ip_tunnel __rcu **ipip6_bucket(struct sit_net *sitn, in ipip6_bucket()
155 struct ip_tunnel *t) in ipip6_bucket()
160 static void ipip6_tunnel_unlink(struct sit_net *sitn, struct ip_tunnel *t) in ipip6_tunnel_unlink()
162 struct ip_tunnel __rcu **tp; in ipip6_tunnel_unlink()
163 struct ip_tunnel *iter; in ipip6_tunnel_unlink()
175 static void ipip6_tunnel_link(struct sit_net *sitn, struct ip_tunnel *t) in ipip6_tunnel_link()
177 struct ip_tunnel __rcu **tp = ipip6_bucket(sitn, t); in ipip6_tunnel_link()
186 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_clone_6rd()
194 struct ip_tunnel *t0 = netdev_priv(sitn->fb_tunnel_dev); in ipip6_tunnel_clone_6rd()
202 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_create()
228 static struct ip_tunnel *ipip6_tunnel_locate(struct net *net, in ipip6_tunnel_locate()
233 struct ip_tunnel *t, *nt; in ipip6_tunnel_locate()
234 struct ip_tunnel __rcu **tp; in ipip6_tunnel_locate()
291 __ipip6_tunnel_locate_prl(struct ip_tunnel *t, __be32 addr) in __ipip6_tunnel_locate_prl()
304 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_get_prl()
368 ipip6_tunnel_add_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a, int chg) in ipip6_tunnel_add_prl()
422 ipip6_tunnel_del_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a) in ipip6_tunnel_del_prl()
457 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_prl_ctl()
484 isatap_chksrc(struct sk_buff *skb, const struct iphdr *iph, struct ip_tunnel *t) in isatap_chksrc()
512 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_uninit()
531 struct ip_tunnel *t; in ipip6_err()
603 static inline bool is_spoofed_6rd(struct ip_tunnel *tunnel, const __be32 v4addr, in is_spoofed_6rd()
624 static bool only_dnatted(const struct ip_tunnel *tunnel, in only_dnatted()
641 struct ip_tunnel *tunnel) in packet_is_spoofed()
679 struct ip_tunnel *tunnel; in ipip6_rcv()
752 struct ip_tunnel *tunnel; in sit_tunnel_rcv()
805 static bool check_6rd(struct ip_tunnel *tunnel, const struct in6_addr *v6dst, in check_6rd()
840 static inline __be32 try_6rd(struct ip_tunnel *tunnel, in try_6rd()
856 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_xmit()
1049 struct ip_tunnel *tunnel = netdev_priv(dev); in sit_tunnel_xmit__()
1098 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_bind_dev()
1138 static void ipip6_tunnel_update(struct ip_tunnel *t, struct ip_tunnel_parm *p, in ipip6_tunnel_update()
1164 static int ipip6_tunnel_update_6rd(struct ip_tunnel *t, in ipip6_tunnel_update_6rd()
1198 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_get6rd()
1223 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_6rdctl()
1273 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_get()
1286 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_add()
1302 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_change()
1333 struct ip_tunnel *t = netdev_priv(dev); in ipip6_tunnel_del()
1408 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_dev_free()
1422 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_setup()
1444 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_init()
1469 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_fb_tunnel_init()
1559 struct ip_tunnel *nt; in ipip6_newlink()
1606 struct ip_tunnel *t = netdev_priv(dev); in ipip6_changelink()
1694 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_fill_info()
1772 .priv_size = sizeof(struct ip_tunnel),
1817 struct ip_tunnel *t; in sit_destroy_tunnels()
1836 struct ip_tunnel *t; in sit_init_net()
1847 sitn->fb_tunnel_dev = alloc_netdev(sizeof(struct ip_tunnel), "sit0", in sit_init_net()