Lines Matching +full:sock +full:- +full:priv

1 /* SPDX-License-Identifier: GPL-2.0-only */
12 #include <net/sock.h>
63 * Is linked into a per-tunnel session list and a per-net ("global") IDR tree.
88 struct list_head list; /* per-tunnel list node */
90 struct hlist_node hlist; /* per-net session hlist */
117 * out pseudowire-specific shutdown actions.
124 * Pseudowire-specific implementation of debugfs session rendering.
128 void (*show)(struct seq_file *m, void *priv);
130 u8 priv[]; /* private data */ member
137 /* Used only for kernel-created sockets */
155 * Is linked into a per-net list of tunnels.
162 spinlock_t list_lock; /* write-protection for session_list */
178 struct sock *sock; /* parent socket */ member
191 * session instance, as well as carry out any pseudowire-specific initialisation.
200 * It must call l2tp_session_delete, as well as carry out any pseudowire-specific
208 return &session->priv[0]; in l2tp_session_priv()
222 struct l2tp_session *l2tp_v3_session_get(const struct net *net, struct sock *sk, u32 session_id);
224 struct l2tp_session *l2tp_session_get(const struct net *net, struct sock *sk, int pver,
226 struct l2tp_session *l2tp_session_get_next(const struct net *net, struct sock *sk, int pver,
232 * Creation of a new instance is a two-step process: create, then register.
257 int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
272 int l2tp_ioctl(struct sock *sk, int cmd, int *karg);
274 struct l2tp_tunnel *l2tp_sk_to_tunnel(const struct sock *sk);
278 switch (session->l2specific_type) { in l2tp_get_l2specific_len()
292 dst = sk_dst_get(tunnel->sock); in l2tp_tunnel_dst_mtu()
305 struct sock *sk = tunnel->sock; in l2tp_tunnel_uses_xfrm()
307 return sk && (rcu_access_pointer(sk->sk_policy[0]) || in l2tp_tunnel_uses_xfrm()
308 rcu_access_pointer(sk->sk_policy[1])); in l2tp_tunnel_uses_xfrm()
320 int opt_len = session->peer_cookie_len + l2tp_get_l2specific_len(session); in l2tp_v3_ensure_opt_in_linear()
323 int off = *ptr - *optr; in l2tp_v3_ensure_opt_in_linear()
326 return -1; in l2tp_v3_ensure_opt_in_linear()
328 if (skb->data != *optr) { in l2tp_v3_ensure_opt_in_linear()
329 *optr = skb->data; in l2tp_v3_ensure_opt_in_linear()
330 *ptr = skb->data + off; in l2tp_v3_ensure_opt_in_linear()
338 MODULE_ALIAS("net-l2tp-type-" __stringify(type))