Lines Matching full:tunnel
18 /* Random numbers used for internal consistency checks of tunnel and session structures */
63 * Is linked into a per-tunnel session list and a per-net ("global") IDR tree.
71 struct l2tp_tunnel *tunnel; /* back pointer to tunnel context */ member
83 u32 nr_max; /* max NR. Depends on tunnel */
88 struct list_head list; /* per-tunnel list node */
133 /* L2TP tunnel configuration */
151 /* Represents a tunnel instance.
153 * Holds the tunnel socket (either passed from userspace or directly created by the kernel).
154 * Maintains a list of sessions belonging to the tunnel instance.
163 bool acpt_newsess; /* indicates whether this tunnel accepts
179 int fd; /* parent fd, if tunnel socket was created
194 int (*session_create)(struct net *net, struct l2tp_tunnel *tunnel,
211 /* Tunnel and session refcounts */
212 void l2tp_tunnel_put(struct l2tp_tunnel *tunnel);
215 /* Tunnel and session lookup.
231 /* Tunnel and session lifetime management.
238 int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
240 void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
243 struct l2tp_tunnel *tunnel,
247 struct l2tp_tunnel *tunnel);
259 /* Transmit path helpers for sending packets over the tunnel socket. */
287 static inline u32 l2tp_tunnel_dst_mtu(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_dst_mtu() argument
292 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
303 static inline bool l2tp_tunnel_uses_xfrm(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_uses_xfrm() argument
305 struct sock *sk = tunnel->sock; in l2tp_tunnel_uses_xfrm()
311 static inline bool l2tp_tunnel_uses_xfrm(const struct l2tp_tunnel *tunnel) in l2tp_tunnel_uses_xfrm() argument