Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 28) sorted by relevance

12

/net/bluetooth/hidp/
Dcore.c72 static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci) in hidp_copy_session() argument
76 bacpy(&ci->bdaddr, &session->bdaddr); in hidp_copy_session()
78 ci->flags = session->flags & valid_flags; in hidp_copy_session()
81 if (session->input) { in hidp_copy_session()
82 ci->vendor = session->input->id.vendor; in hidp_copy_session()
83 ci->product = session->input->id.product; in hidp_copy_session()
84 ci->version = session->input->id.version; in hidp_copy_session()
85 if (session->input->name) in hidp_copy_session()
86 strlcpy(ci->name, session->input->name, 128); in hidp_copy_session()
89 } else if (session->hid) { in hidp_copy_session()
[all …]
/net/l2tp/
Dl2tp_core.c233 struct l2tp_session *session; in l2tp_session_get() local
241 hlist_for_each_entry_rcu(session, session_list, global_hlist) { in l2tp_session_get()
242 if (session->session_id == session_id) { in l2tp_session_get()
243 l2tp_session_inc_refcount(session); in l2tp_session_get()
244 if (do_ref && session->ref) in l2tp_session_get()
245 session->ref(session); in l2tp_session_get()
248 return session; in l2tp_session_get()
258 hlist_for_each_entry(session, session_list, hlist) { in l2tp_session_get()
259 if (session->session_id == session_id) { in l2tp_session_get()
260 l2tp_session_inc_refcount(session); in l2tp_session_get()
[all …]
Dl2tp_debugfs.c45 struct l2tp_session *session; /* NULL means get next tunnel */ member
56 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx, true); in l2tp_dfs_next_session()
59 if (pd->session == NULL) { in l2tp_dfs_next_session()
83 if ((pd->tunnel == NULL) && (pd->session == NULL)) in l2tp_dfs_seq_start()
113 struct l2tp_session *session; in l2tp_dfs_seq_tunnel_show() local
115 session = hlist_entry(walk, struct l2tp_session, hlist); in l2tp_dfs_seq_tunnel_show()
116 if (session->session_id == 0) in l2tp_dfs_seq_tunnel_show()
164 struct l2tp_session *session = v; in l2tp_dfs_seq_session_show() local
166 seq_printf(m, " SESSION %u, peer %u, %s\n", session->session_id, in l2tp_dfs_seq_session_show()
167 session->peer_session_id, in l2tp_dfs_seq_session_show()
[all …]
Dl2tp_ppp.c145 struct l2tp_session *session; in pppol2tp_sock_to_session() local
151 session = (struct l2tp_session *)(sk->sk_user_data); in pppol2tp_sock_to_session()
152 if (session == NULL) { in pppol2tp_sock_to_session()
157 BUG_ON(session->magic != L2TP_SESSION_MAGIC); in pppol2tp_sock_to_session()
160 return session; in pppol2tp_sock_to_session()
200 static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in pppol2tp_recv() argument
202 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_recv()
226 l2tp_dbg(session, L2TP_MSG_DATA, in pppol2tp_recv()
228 session->name, data_len); in pppol2tp_recv()
233 l2tp_dbg(session, L2TP_MSG_DATA, in pppol2tp_recv()
[all …]
Dl2tp_eth.c46 struct l2tp_session *session; member
81 struct l2tp_session *session = priv->session; in l2tp_eth_dev_xmit() local
83 int ret = l2tp_xmit_skb(session, skb, session->hdr_len); in l2tp_eth_dev_xmit()
130 static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in l2tp_eth_dev_recv() argument
132 struct l2tp_eth_sess *spriv = l2tp_session_priv(session); in l2tp_eth_dev_recv()
136 if (session->debug & L2TP_MSG_DATA) { in l2tp_eth_dev_recv()
143 pr_debug("%s: eth recv\n", session->name); in l2tp_eth_dev_recv()
171 static void l2tp_eth_delete(struct l2tp_session *session) in l2tp_eth_delete() argument
176 if (session) { in l2tp_eth_delete()
177 spriv = l2tp_session_priv(session); in l2tp_eth_delete()
[all …]
Dl2tp_netlink.c45 int flags, struct l2tp_session *session,
58 struct l2tp_session *session = NULL; in l2tp_nl_session_get() local
63 session = l2tp_session_get_by_ifname(net, ifname, do_ref); in l2tp_nl_session_get()
70 session = l2tp_session_get(net, tunnel, session_id, in l2tp_nl_session_get()
76 return session; in l2tp_nl_session_get()
139 struct l2tp_session *session, in l2tp_session_notify() argument
150 NLM_F_ACK, session, cmd); in l2tp_session_notify()
513 struct l2tp_session *session; in l2tp_nl_cmd_session_create() local
649 session = l2tp_session_get(net, tunnel, session_id, false); in l2tp_nl_cmd_session_create()
650 if (session) { in l2tp_nl_cmd_session_create()
[all …]
Dl2tp_core.h126 int (*build_header)(struct l2tp_session *session, void *buf);
127 void (*recv_skb)(struct l2tp_session *session, struct sk_buff *skb, int data_len);
128 void (*session_close)(struct l2tp_session *session);
129 void (*ref)(struct l2tp_session *session);
130 void (*deref)(struct l2tp_session *session);
204 int (*session_delete)(struct l2tp_session *session);
212 static inline void *l2tp_session_priv(struct l2tp_session *session) in l2tp_session_priv() argument
214 return &session->priv[0]; in l2tp_session_priv()
259 void __l2tp_session_unhash(struct l2tp_session *session);
260 int l2tp_session_delete(struct l2tp_session *session);
[all …]
Dl2tp_ip.c124 struct l2tp_session *session; in l2tp_ip_recv() local
147 session = l2tp_session_get(net, NULL, session_id, true); in l2tp_ip_recv()
148 if (!session) in l2tp_ip_recv()
151 tunnel = session->tunnel; in l2tp_ip_recv()
168 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip_recv()
171 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len); in l2tp_ip_recv()
172 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
205 if (session->deref) in l2tp_ip_recv()
206 session->deref(session); in l2tp_ip_recv()
207 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
Dl2tp_ip6.c137 struct l2tp_session *session; in l2tp_ip6_recv() local
160 session = l2tp_session_get(net, NULL, session_id, true); in l2tp_ip6_recv()
161 if (!session) in l2tp_ip6_recv()
164 tunnel = session->tunnel; in l2tp_ip6_recv()
181 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip6_recv()
184 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len); in l2tp_ip6_recv()
185 l2tp_session_dec_refcount(session); in l2tp_ip6_recv()
218 if (session->deref) in l2tp_ip6_recv()
219 session->deref(session); in l2tp_ip6_recv()
220 l2tp_session_dec_refcount(session); in l2tp_ip6_recv()
DKconfig30 and session setup). One such daemon is OpenL2TP
/net/bluetooth/cmtp/
Dcore.c55 struct cmtp_session *session; in __cmtp_get_session() local
59 list_for_each_entry(session, &cmtp_session_list, list) in __cmtp_get_session()
60 if (!bacmp(bdaddr, &session->bdaddr)) in __cmtp_get_session()
61 return session; in __cmtp_get_session()
66 static void __cmtp_link_session(struct cmtp_session *session) in __cmtp_link_session() argument
68 list_add(&session->list, &cmtp_session_list); in __cmtp_link_session()
71 static void __cmtp_unlink_session(struct cmtp_session *session) in __cmtp_unlink_session() argument
73 list_del(&session->list); in __cmtp_unlink_session()
76 static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) in __cmtp_copy_session() argument
80 bacpy(&ci->bdaddr, &session->bdaddr); in __cmtp_copy_session()
[all …]
Dcapi.c73 static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl) in cmtp_application_add() argument
77 BT_DBG("session %p application %p appl %d", session, app, appl); in cmtp_application_add()
85 list_add_tail(&app->list, &session->applications); in cmtp_application_add()
90 static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app) in cmtp_application_del() argument
92 BT_DBG("session %p application %p", session, app); in cmtp_application_del()
100 static struct cmtp_application *cmtp_application_get(struct cmtp_session *session, int pattern, __u… in cmtp_application_get() argument
104 list_for_each_entry(app, &session->applications, list) { in cmtp_application_get()
124 static int cmtp_msgnum_get(struct cmtp_session *session) in cmtp_msgnum_get() argument
126 session->msgnum++; in cmtp_msgnum_get()
128 if ((session->msgnum & 0xff) > 200) in cmtp_msgnum_get()
[all …]
Dcmtp.h120 int cmtp_attach_device(struct cmtp_session *session);
121 void cmtp_detach_device(struct cmtp_session *session);
123 void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb);
/net/batman-adv/
Dtp_meter.c106 static u32 batadv_tp_session_cookie(const u8 session[2], u8 icmp_uid) in batadv_tp_session_cookie()
111 cookie |= session[0] << 8; in batadv_tp_session_cookie()
112 cookie |= session[1]; in batadv_tp_session_cookie()
310 const u8 *session) in batadv_tp_list_find_session() argument
319 if (memcmp(pos->session, session, sizeof(pos->session)) != 0) in batadv_tp_list_find_session()
424 session_cookie = batadv_tp_session_cookie(tp_vars->session, in batadv_tp_sender_end()
584 u32 seqno, size_t len, const u8 *session, in batadv_tp_send_msg() argument
610 memcpy(icmp->session, session, sizeof(icmp->session)); in batadv_tp_send_msg()
651 icmp->session); in batadv_tp_recv_ack()
693 icmp->session, icmp->uid, in batadv_tp_recv_ack()
[all …]
Dpacket.h330 u8 session[2]; member
/net/mac80211/
Dfils_aead.c225 const u8 *addr[5 + 1], *session; in fils_encrypt_assoc_req() local
237 session = cfg80211_find_ext_ie(WLAN_EID_EXT_FILS_SESSION, in fils_encrypt_assoc_req()
239 if (!session || session[1] != 1 + 8) in fils_encrypt_assoc_req()
242 encr = (u8 *)session + 2 + 1 + 8; in fils_encrypt_assoc_req()
276 const u8 *addr[5 + 1], *session; in fils_decrypt_assoc_resp() local
286 session = cfg80211_find_ext_ie(WLAN_EID_EXT_FILS_SESSION, in fils_decrypt_assoc_resp()
288 if (!session || session[1] != 1 + 8) { in fils_decrypt_assoc_resp()
295 encr = (u8 *)session + 2 + 1 + 8; in fils_decrypt_assoc_resp()
/net/atm/
Dsignaling.c87 session_vcc = vcc->session ? vcc->session : vcc; in sigd_send()
149 static unsigned int session = 0; in sigd_enq2() local
171 msg->session = ++session; in sigd_enq2()
/net/rxrpc/
DKconfig2 # RxRPC session sockets
6 tristate "RxRPC session sockets"
11 Say Y or M here to include support for RxRPC session sockets (just
Dkey.c196 rxrpc_free_krb5_tagged(&rxk5->session); in rxrpc_rxk5_free()
472 ret = rxrpc_krb5_decode_tagged_data(&rxk5->session, AFSTOKEN_DATA_MAX, in rxrpc_preparse_xdr_rxk5()
1096 toksize += 8 + RND(token->k5->session.data_len); in rxrpc_read()
1196 ENCODE(token->k5->session.tag); in rxrpc_read()
1197 ENCODE_DATA(token->k5->session.data_len, in rxrpc_read()
1198 token->k5->session.data); in rxrpc_read()
/net/bluetooth/rfcomm/
Dcore.c214 struct sock *sk = d->session->sock->sk; in rfcomm_check_security()
338 d->session = s; in rfcomm_dlc_link()
343 struct rfcomm_session *s = d->session; in rfcomm_dlc_unlink()
348 d->session = NULL; in rfcomm_dlc_unlink()
439 struct rfcomm_session *s = d->session; in __rfcomm_dlc_disconn()
453 struct rfcomm_session *s = d->session; in __rfcomm_dlc_close()
512 s = d->session; in rfcomm_dlc_close()
1284 struct sock *sk = d->session->sock->sk; in rfcomm_dlc_accept()
1289 rfcomm_send_ua(d->session, d->dlci); in rfcomm_dlc_accept()
1301 rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); in rfcomm_dlc_accept()
[all …]
Dsock.c91 rfcomm_session_getaddr(d->session, in rfcomm_sk_state_change()
812 l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk; in rfcomm_sock_getsockopt_old()
/net/decnet/
DTODO34 o Add session control message flow control
/net/tipc/
Dlink.h76 int window, u32 session, u32 ownnode, u32 peer,
Dlink.c131 u32 session; member
437 int window, u32 session, u32 ownnode, u32 peer, in tipc_link_create() argument
451 l->session = session; in tipc_link_create()
846 l->session++; in tipc_link_reset()
1339 msg_set_session(hdr, l->session); in tipc_link_build_proto_msg()
/net/bluetooth/bnep/
Dcore.c541 static struct device *bnep_get_device(struct bnep_session *session) in bnep_get_device() argument
543 struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn; in bnep_get_device()

12