/net/l2tp/ |
D | l2tp_ppp.c | 559 u32 session_id; member 578 info->session_id = sa_v2in4->pppol2tp.s_session; in pppol2tp_sockaddr_get_info() 594 info->session_id = sa_v3in4->pppol2tp.s_session; in pppol2tp_sockaddr_get_info() 610 info->session_id = sa_v2in6->pppol2tp.s_session; in pppol2tp_sockaddr_get_info() 626 info->session_id = sa_v3in6->pppol2tp.s_session; in pppol2tp_sockaddr_get_info() 669 if (!info->session_id && !info->peer_session_id) { in pppol2tp_tunnel_get() 757 session = l2tp_tunnel_get_session(tunnel, info.session_id); in pppol2tp_connect() 783 tunnel, info.session_id, in pppol2tp_connect() 810 if (session->session_id == 0 && session->peer_session_id == 0) { in pppol2tp_connect() 864 u32 session_id, u32 peer_session_id, in pppol2tp_session_create() argument [all …]
|
D | l2tp_core.c | 134 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id) in l2tp_session_id_hash_2() argument 136 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2() 146 l2tp_session_id_hash(struct l2tp_tunnel *tunnel, u32 session_id) in l2tp_session_id_hash() argument 148 return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; in l2tp_session_id_hash() 244 u32 session_id) in l2tp_tunnel_get_session() argument 249 session_list = l2tp_session_id_hash(tunnel, session_id); in l2tp_tunnel_get_session() 253 if (session->session_id == session_id) { in l2tp_tunnel_get_session() 265 struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id) in l2tp_session_get() argument 270 session_list = l2tp_session_id_hash_2(l2tp_pernet(net), session_id); in l2tp_session_get() 274 if (session->session_id == session_id) { in l2tp_session_get() [all …]
|
D | l2tp_core.h | 75 u32 session_id; member 199 u32 session_id, u32 peer_session_id, 228 u32 session_id); 230 struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id); 248 u32 session_id, u32 peer_session_id,
|
D | l2tp_netlink.c | 49 u32 session_id; in l2tp_nl_session_get() local 61 session_id = nla_get_u32(info->attrs[L2TP_ATTR_SESSION_ID]); in l2tp_nl_session_get() 64 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_nl_session_get() 524 u32 session_id; in l2tp_nl_cmd_session_create() local 548 session_id = nla_get_u32(info->attrs[L2TP_ATTR_SESSION_ID]); in l2tp_nl_cmd_session_create() 633 session_id, in l2tp_nl_cmd_session_create() 638 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_nl_cmd_session_create() 724 nla_put_u32(skb, L2TP_ATTR_SESSION_ID, session->session_id) || in l2tp_nl_session_send()
|
D | l2tp_ip.c | 115 u32 session_id; in l2tp_ip_recv() local 128 session_id = ntohl(*((__be32 *)ptr)); in l2tp_ip_recv() 135 if (session_id == 0) { in l2tp_ip_recv() 141 session = l2tp_session_get(net, session_id); in l2tp_ip_recv()
|
D | l2tp_ip6.c | 128 u32 session_id; in l2tp_ip6_recv() local 141 session_id = ntohl(*((__be32 *)ptr)); in l2tp_ip6_recv() 148 if (session_id == 0) { in l2tp_ip6_recv() 154 session = l2tp_session_get(net, session_id); in l2tp_ip6_recv()
|
D | l2tp_eth.c | 245 u32 session_id, u32 peer_session_id, in l2tp_eth_create() argument 264 session = l2tp_session_create(sizeof(*spriv), tunnel, session_id, in l2tp_eth_create()
|
D | l2tp_debugfs.c | 134 if (session->session_id == 0) in l2tp_dfs_seq_tunnel_show() 183 seq_printf(m, " SESSION %u, peer %u, %s\n", session->session_id, in l2tp_dfs_seq_session_show()
|
D | trace.h | 105 __entry->sid = session->session_id;
|
/net/batman-adv/ |
D | tp_meter.c | 939 u8 session_id[2]; in batadv_tp_start() local 943 get_random_bytes(session_id, sizeof(session_id)); in batadv_tp_start() 945 session_cookie = batadv_tp_session_cookie(session_id, icmp_uid); in batadv_tp_start() 986 memcpy(tp_vars->session, session_id, sizeof(session_id)); in batadv_tp_start()
|
/net/nfc/nci/ |
D | hci.c | 747 skb->len == strlen(ndev->hci_dev->init_data.session_id) && in nci_hci_dev_session_init() 748 !memcmp(ndev->hci_dev->init_data.session_id, skb->data, skb->len) && in nci_hci_dev_session_init() 765 ndev->hci_dev->init_data.session_id, in nci_hci_dev_session_init() 766 strlen(ndev->hci_dev->init_data.session_id)); in nci_hci_dev_session_init()
|
/net/nfc/hci/ |
D | core.c | 483 if (skb->len && skb->len == strlen(hdev->init_data.session_id) && in hci_dev_session_init() 484 (memcmp(hdev->init_data.session_id, skb->data, in hci_dev_session_init() 505 hdev->init_data.session_id, in hci_dev_session_init() 506 strlen(hdev->init_data.session_id)); in hci_dev_session_init()
|