Home
last modified time | relevance | path

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

/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.c226 struct l2tp_session *session; in l2tp_session_get() local
234 hlist_for_each_entry_rcu(session, session_list, global_hlist) { in l2tp_session_get()
235 if (session->session_id == session_id) { in l2tp_session_get()
236 l2tp_session_inc_refcount(session); in l2tp_session_get()
237 if (do_ref && session->ref) in l2tp_session_get()
238 session->ref(session); in l2tp_session_get()
241 return session; in l2tp_session_get()
251 hlist_for_each_entry(session, session_list, hlist) { in l2tp_session_get()
252 if (session->session_id == session_id) { in l2tp_session_get()
253 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()
165 struct l2tp_session *session = v; in l2tp_dfs_seq_session_show() local
167 seq_printf(m, " SESSION %u, peer %u, %s\n", session->session_id, in l2tp_dfs_seq_session_show()
168 session->peer_session_id, in l2tp_dfs_seq_session_show()
[all …]
Dl2tp_ppp.c148 static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session) in pppol2tp_session_get_sock() argument
150 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_session_get_sock()
166 struct l2tp_session *session; in pppol2tp_sock_to_session() local
172 session = (struct l2tp_session *)(sk->sk_user_data); in pppol2tp_sock_to_session()
173 if (session == NULL) { in pppol2tp_sock_to_session()
178 BUG_ON(session->magic != L2TP_SESSION_MAGIC); in pppol2tp_sock_to_session()
181 return session; in pppol2tp_sock_to_session()
240 static void pppol2tp_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in pppol2tp_recv() argument
242 struct pppol2tp_session *ps = l2tp_session_priv(session); in pppol2tp_recv()
255 l2tp_dbg(session, L2TP_MSG_DATA, in pppol2tp_recv()
[all …]
Dl2tp_eth.c46 struct l2tp_session *session; member
78 spriv = l2tp_session_priv(priv->session); in l2tp_eth_dev_uninit()
88 struct l2tp_session *session = priv->session; in l2tp_eth_dev_xmit() local
90 int ret = l2tp_xmit_skb(session, skb, session->hdr_len); in l2tp_eth_dev_xmit()
133 static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) in l2tp_eth_dev_recv() argument
135 struct l2tp_eth_sess *spriv = l2tp_session_priv(session); in l2tp_eth_dev_recv()
139 if (session->debug & L2TP_MSG_DATA) { in l2tp_eth_dev_recv()
146 pr_debug("%s: eth recv\n", session->name); in l2tp_eth_dev_recv()
183 static void l2tp_eth_delete(struct l2tp_session *session) in l2tp_eth_delete() argument
188 if (session) { in l2tp_eth_delete()
[all …]
Dl2tp_netlink.c52 int flags, struct l2tp_session *session,
65 struct l2tp_session *session = NULL; in l2tp_nl_session_get() local
70 session = l2tp_session_get_by_ifname(net, ifname, do_ref); in l2tp_nl_session_get()
77 session = l2tp_session_get(net, tunnel, session_id, in l2tp_nl_session_get()
83 return session; in l2tp_nl_session_get()
146 struct l2tp_session *session, in l2tp_session_notify() argument
157 NLM_F_ACK, session, cmd); in l2tp_session_notify()
497 struct l2tp_session *session; in l2tp_nl_cmd_session_create() local
636 session = l2tp_session_get(net, tunnel, session_id, false); in l2tp_nl_cmd_session_create()
637 if (session) { in l2tp_nl_cmd_session_create()
[all …]
Dl2tp_core.h128 int (*build_header)(struct l2tp_session *session, void *buf);
129 void (*recv_skb)(struct l2tp_session *session, struct sk_buff *skb, int data_len);
130 void (*session_close)(struct l2tp_session *session);
131 void (*ref)(struct l2tp_session *session);
132 void (*deref)(struct l2tp_session *session);
210 int (*session_delete)(struct l2tp_session *session);
218 static inline void *l2tp_session_priv(struct l2tp_session *session) in l2tp_session_priv() argument
220 return &session->priv[0]; in l2tp_session_priv()
265 int l2tp_session_register(struct l2tp_session *session,
268 void __l2tp_session_unhash(struct l2tp_session *session);
[all …]
Dl2tp_ip.c122 struct l2tp_session *session; in l2tp_ip_recv() local
145 session = l2tp_session_get(net, NULL, session_id, true); in l2tp_ip_recv()
146 if (!session) in l2tp_ip_recv()
149 tunnel = session->tunnel; in l2tp_ip_recv()
166 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip_recv()
169 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len, tunnel->recv_payload_hook); in l2tp_ip_recv()
170 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
202 if (session->deref) in l2tp_ip_recv()
203 session->deref(session); in l2tp_ip_recv()
204 l2tp_session_dec_refcount(session); in l2tp_ip_recv()
Dl2tp_ip6.c134 struct l2tp_session *session; in l2tp_ip6_recv() local
157 session = l2tp_session_get(net, NULL, session_id, true); in l2tp_ip6_recv()
158 if (!session) in l2tp_ip6_recv()
161 tunnel = session->tunnel; in l2tp_ip6_recv()
178 if (l2tp_v3_ensure_opt_in_linear(session, skb, &ptr, &optr)) in l2tp_ip6_recv()
181 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len, in l2tp_ip6_recv()
183 l2tp_session_dec_refcount(session); in l2tp_ip6_recv()
215 if (session->deref) in l2tp_ip6_recv()
216 session->deref(session); in l2tp_ip6_recv()
217 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
105 list_for_each(p, &session->applications) { in cmtp_application_get()
126 static int cmtp_msgnum_get(struct cmtp_session *session) in cmtp_msgnum_get() argument
128 session->msgnum++; in cmtp_msgnum_get()
130 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/rxrpc/
DKconfig2 # RxRPC session sockets
6 tristate "RxRPC session sockets"
11 Say Y or M here to include support for RxRPC session sockets (just
Dar-key.c192 rxrpc_free_krb5_tagged(&rxk5->session); in rxrpc_rxk5_free()
467 ret = rxrpc_krb5_decode_tagged_data(&rxk5->session, AFSTOKEN_DATA_MAX, in rxrpc_preparse_xdr_rxk5()
1100 toksize += 8 + RND(token->k5->session.data_len); in rxrpc_read()
1209 ENCODE(token->k5->session.tag); in rxrpc_read()
1210 ENCODE_DATA(token->k5->session.data_len, in rxrpc_read()
1211 token->k5->session.data); in rxrpc_read()
/net/atm/
Dsignaling.c86 session_vcc = vcc->session ? vcc->session : vcc; in sigd_send()
148 static unsigned int session = 0; in sigd_enq2() local
171 msg->session = ++session; in sigd_enq2()
/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()
1288 struct sock *sk = d->session->sock->sk; in rfcomm_dlc_accept()
1293 rfcomm_send_ua(d->session, d->dlci); in rfcomm_dlc_accept()
1305 rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); in rfcomm_dlc_accept()
[all …]
Dsock.c90 rfcomm_session_getaddr(d->session, in rfcomm_sk_state_change()
809 l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk; in rfcomm_sock_getsockopt_old()
Dtty.c881 if (!dev || !dev->dlc || !dev->dlc->session) in rfcomm_tty_set_termios()
1002 rfcomm_send_rpn(dev->dlc->session, 1, dev->dlc->dlci, baud, in rfcomm_tty_set_termios()
/net/decnet/
DTODO34 o Add session control message flow control
/net/tipc/
Dlink.h224 int window, u32 session, u32 ownnode, u32 peer,
Dlink.c259 int window, u32 session, u32 ownnode, u32 peer, in tipc_link_create() argument
278 msg_set_session(hdr, session); in tipc_link_create()
/net/bluetooth/bnep/
Dcore.c544 static struct device *bnep_get_device(struct bnep_session *session) in bnep_get_device() argument
546 struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn; in bnep_get_device()
/net/netfilter/
DKconfig68 of packets, but this mark value is kept in the conntrack session
294 - Only supports a single call within each session