Lines Matching refs:session_id
139 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id) in l2tp_session_id_hash_2() argument
141 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2()
151 l2tp_session_id_hash(struct l2tp_tunnel *tunnel, u32 session_id) in l2tp_session_id_hash() argument
153 return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; in l2tp_session_id_hash()
249 u32 session_id) in l2tp_tunnel_get_session() argument
254 session_list = l2tp_session_id_hash(tunnel, session_id); in l2tp_tunnel_get_session()
258 if (session->session_id == session_id) { in l2tp_tunnel_get_session()
270 struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id) in l2tp_session_get() argument
275 session_list = l2tp_session_id_hash_2(l2tp_pernet(net), session_id); in l2tp_session_get()
279 if (session->session_id == session_id) { in l2tp_session_get()
351 head = l2tp_session_id_hash(tunnel, session->session_id); in l2tp_session_register()
360 if (session_walk->session_id == session->session_id) { in l2tp_session_register()
367 g_head = l2tp_session_id_hash_2(pn, session->session_id); in l2tp_session_register()
375 if (session_walk->session_id == session->session_id && in l2tp_session_register()
657 session->session_id); in l2tp_recv_common()
804 u32 tunnel_id, session_id; in l2tp_udp_recv_core() local
853 session_id = ntohs(*(__be16 *)ptr); in l2tp_udp_recv_core()
858 session_id = ntohl(*(__be32 *)ptr); in l2tp_udp_recv_core()
863 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_udp_recv_core()
870 tunnel->name, tunnel_id, session_id); in l2tp_udp_recv_core()
940 u32 session_id = session->peer_session_id; in l2tp_build_l2tpv2_header() local
948 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
1592 struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, in l2tp_session_create() argument
1602 session->session_id = session_id; in l2tp_session_create()
1616 tunnel->tunnel_id, session->session_id); in l2tp_session_create()