Lines Matching +full:magic +full:- +full:packet
1 /* SPDX-License-Identifier: GPL-2.0-only */
26 /* System-wide session hash table size */
65 * Tracks runtime state including cookies, dataplane packet sequencing, and IO statistics.
66 * Is linked into a per-tunnel session hashlist; and in the case of an L2TPv3 session into
67 * an additional per-net ("global") hashlist.
71 int magic; /* should be L2TP_SESSION_MAGIC */ member
88 u32 nr_oos; /* NR of last OOS packet */
116 * out pseudowire-specific shutdown actions.
123 * Pseudowire-specific implementation of debugfs session rendering.
136 /* Used only for kernel-created sockets */
154 * Is linked into a per-net list of tunnels.
158 int magic; /* Should be L2TP_TUNNEL_MAGIC */ member
163 spinlock_t hlist_lock; /* write-protection for session_hlist */
177 struct list_head list; /* list node on per-namespace list of tunnels */
195 * session instance, as well as carry out any pseudowire-specific initialisation.
204 * It must call l2tp_session_delete, as well as carry out any pseudowire-specific
212 return &session->priv[0]; in l2tp_session_priv()
236 * Creation of a new instance is a two-step process: create, then register.
278 * validating the tunnel magic feather.
284 switch (session->l2specific_type) { in l2tp_get_l2specific_len()
298 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
311 struct sock *sk = tunnel->sock; in l2tp_tunnel_uses_xfrm()
313 return sk && (rcu_access_pointer(sk->sk_policy[0]) || in l2tp_tunnel_uses_xfrm()
314 rcu_access_pointer(sk->sk_policy[1])); in l2tp_tunnel_uses_xfrm()
326 int opt_len = session->peer_cookie_len + l2tp_get_l2specific_len(session); in l2tp_v3_ensure_opt_in_linear()
329 int off = *ptr - *optr; in l2tp_v3_ensure_opt_in_linear()
332 return -1; in l2tp_v3_ensure_opt_in_linear()
334 if (skb->data != *optr) { in l2tp_v3_ensure_opt_in_linear()
335 *optr = skb->data; in l2tp_v3_ensure_opt_in_linear()
336 *ptr = skb->data + off; in l2tp_v3_ensure_opt_in_linear()
344 MODULE_ALIAS("net-l2tp-type-" __stringify(type))