Lines Matching refs:l2tp_tunnel
50 struct l2tp_tunnel;
89 struct l2tp_tunnel *tunnel; /* back pointer to tunnel
158 struct l2tp_tunnel {
194 static inline void *l2tp_tunnel_priv(struct l2tp_tunnel *tunnel)
204 static inline struct l2tp_tunnel *l2tp_sock_to_tunnel(struct sock *sk)
206 struct l2tp_tunnel *tunnel;
212 tunnel = (struct l2tp_tunnel *)(sk->sk_user_data);
224 extern struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id);
225 extern struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
227 extern struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id);
228 extern struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);
230 extern int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp);
231 extern int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
232 extern struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg);
234 extern void l2tp_tunnel_free(struct l2tp_tunnel *tunnel);
237 extern int l2tp_udp_recv_core(struct l2tp_tunnel *tunnel, struct sk_buff *skb, int (*payload_hook)(struct sk_buff *skb));
243 extern void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
252 static inline void l2tp_tunnel_inc_refcount_1(struct l2tp_tunnel *tunnel)
257 static inline void l2tp_tunnel_dec_refcount_1(struct l2tp_tunnel *tunnel)