Lines Matching full:tunnel
18 /* Random numbers used for internal consistency checks of tunnel and session structures */
22 /* Per tunnel session hash table size */
66 * Is linked into a per-tunnel session hashlist; and in the case of an L2TPv3 session into
74 struct l2tp_tunnel *tunnel; /* back pointer to tunnel context */ member
86 u32 nr_max; /* max NR. Depends on tunnel */
132 /* L2TP tunnel configuration */
150 /* Represents a tunnel instance.
152 * Holds the tunnel socket (either passed from userspace or directly created by the kernel).
153 * Maintains a hashlist of sessions belonging to the tunnel instance.
164 bool acpt_newsess; /* indicates whether this tunnel accepts
183 int fd; /* parent fd, if tunnel socket was created
198 int (*session_create)(struct net *net, struct l2tp_tunnel *tunnel,
215 /* Tunnel and session refcounts */
216 void l2tp_tunnel_inc_refcount(struct l2tp_tunnel *tunnel);
217 void l2tp_tunnel_dec_refcount(struct l2tp_tunnel *tunnel);
221 /* Tunnel and session lookup.
227 struct l2tp_session *l2tp_tunnel_get_session(struct l2tp_tunnel *tunnel,
231 struct l2tp_session *l2tp_session_get_nth(struct l2tp_tunnel *tunnel, int nth);
235 /* Tunnel and session lifetime management.
242 int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
244 void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
247 struct l2tp_tunnel *tunnel,
251 struct l2tp_tunnel *tunnel);
263 /* Transmit path helpers for sending packets over the tunnel socket. */
277 /* Extract the tunnel structure from a socket's sk_user_data pointer,
278 * validating the tunnel magic feather.
293 static inline u32 l2tp_tunnel_dst_mtu(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_dst_mtu() argument
298 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
309 static inline bool l2tp_tunnel_uses_xfrm(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_uses_xfrm() argument
311 struct sock *sk = tunnel->sock; in l2tp_tunnel_uses_xfrm()
317 static inline bool l2tp_tunnel_uses_xfrm(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_uses_xfrm() argument