Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 46) sorted by relevance

12

/net/ceph/
Dcls_lock_client.c24 char *lock_name, u8 type, char *cookie, in ceph_cls_lock() argument
29 int cookie_len = strlen(cookie); in ceph_cls_lock()
60 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
70 __func__, lock_name, type, cookie, tag, desc, flags); in ceph_cls_lock()
90 char *lock_name, char *cookie) in ceph_cls_unlock() argument
94 int cookie_len = strlen(cookie); in ceph_cls_unlock()
116 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock()
118 dout("%s lock_name %s cookie %s\n", __func__, lock_name, cookie); in ceph_cls_unlock()
139 char *lock_name, char *cookie, in ceph_cls_break_lock() argument
144 int cookie_len = strlen(cookie); in ceph_cls_break_lock()
[all …]
/net/sctp/
DKconfig63 prompt "Default SCTP cookie HMAC encoding"
66 This option sets the default sctp cookie hmac algorithm
70 bool "Enable optional MD5 hmac cookie generation"
72 Enable optional MD5 hmac based SCTP cookie generation
76 bool "Enable optional SHA1 hmac cookie generation"
78 Enable optional SHA1 hmac based SCTP cookie generation
82 bool "Use no hmac alg in SCTP cookie generation"
84 Use no hmac algorithm in SCTP cookie generation
89 bool "Enable optional MD5 hmac cookie generation"
91 Enable optional MD5 hmac based SCTP cookie generation
[all …]
Dsm_make_chunk.c388 sctp_cookie_param_t *cookie; in sctp_make_init_ack() local
413 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
415 if (!cookie) in sctp_make_init_ack()
483 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
519 kfree(cookie); in sctp_make_init_ack()
563 void *cookie; in sctp_make_cookie_echo() local
566 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
575 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
1613 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local
1640 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
[all …]
/net/mac80211/
Doffchannel.c203 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
269 cfg80211_ready_on_channel(&roc->sdata->wdev, roc->cookie, in ieee80211_handle_roc_started()
548 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument
589 roc->cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_start_roc_work()
590 *cookie = roc->cookie; in ieee80211_start_roc_work()
592 roc->mgmt_tx_cookie = *cookie; in ieee80211_start_roc_work()
686 unsigned int duration, u64 *cookie) in ieee80211_remain_on_channel() argument
694 duration, cookie, NULL, in ieee80211_remain_on_channel()
702 u64 cookie, bool mgmt_tx) in ieee80211_cancel_roc() argument
707 if (!cookie) in ieee80211_cancel_roc()
[all …]
Dcfg.c261 u64 cookie) in ieee80211_find_nan_func_by_cookie() argument
269 if (func->cookie == cookie) in ieee80211_find_nan_func_by_cookie()
277 struct wireless_dev *wdev, u64 cookie) in ieee80211_del_nan_func() argument
289 func = ieee80211_find_nan_func_by_cookie(sdata, cookie); in ieee80211_del_nan_func()
469 void *cookie, in ieee80211_get_key() argument
470 void (*callback)(void *cookie, in ieee80211_get_key() argument
575 callback(cookie, &params); in ieee80211_get_key()
3224 u64 *cookie, gfp_t gfp) in ieee80211_attach_ack_skb() argument
3246 *cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_attach_ack_skb()
3247 IEEE80211_SKB_CB(ack_skb)->ack.cookie = *cookie; in ieee80211_attach_ack_skb()
[all …]
/net/ipv6/
Dsyncookies.c82 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, in check_tcp_syn_cookie() argument
88 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
90 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
94 return (cookie - in check_tcp_syn_cookie()
125 __u32 cookie) in __cookie_v6_check() argument
128 __u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr, in __cookie_v6_check()
143 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check() local
156 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
211 treq->snt_isn = cookie; in cookie_v6_check()
Dinet6_connection_sock.c117 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check() argument
119 return __sk_dst_check(sk, cookie); in __inet6_csk_dst_check()
/net/ipv4/
Dtcp_fastopen.c331 struct tcp_fastopen_cookie *cookie) in tcp_fastopen_cookie_check() argument
336 tcp_fastopen_cache_get(sk, mss, cookie, &syn_loss, &last_syn_loss); in tcp_fastopen_cookie_check()
341 cookie->len = -1; in tcp_fastopen_cookie_check()
345 cookie->len = -1; in tcp_fastopen_cookie_check()
348 return cookie->len > 0; in tcp_fastopen_cookie_check()
360 struct tcp_fastopen_cookie cookie = { .len = 0 }; in tcp_fastopen_defer_connect() local
365 if (tcp_fastopen_cookie_check(sk, &mss, &cookie)) { in tcp_fastopen_defer_connect()
376 tp->fastopen_req->cookie = cookie; in tcp_fastopen_defer_connect()
Dsyncookies.c134 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument
140 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
143 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
147 return (cookie - in check_tcp_syn_cookie()
205 u32 cookie) in __cookie_v4_check() argument
208 __u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr, in __cookie_v4_check()
299 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check() local
313 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
336 treq->snt_isn = cookie; in cookie_v4_check()
Dtcp_metrics.c34 struct tcp_fastopen_cookie cookie; member
132 tm->tcpm_fastopen.cookie.exp = false; in tcpm_suck_dst()
133 tm->tcpm_fastopen.cookie.len = 0; in tcpm_suck_dst()
688 struct tcp_fastopen_cookie *cookie, in tcp_fastopen_cache_get() argument
703 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
704 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get()
705 cookie->exp = true; in tcp_fastopen_cache_get()
714 struct tcp_fastopen_cookie *cookie, bool syn_lost, in tcp_fastopen_cache_set() argument
730 if (cookie && cookie->len > 0) in tcp_fastopen_cache_set()
731 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
[all …]
/net/l2tp/
Dl2tp_debugfs.c188 session->cookie[0], session->cookie[1], in l2tp_dfs_seq_session_show()
189 session->cookie[2], session->cookie[3]); in l2tp_dfs_seq_session_show()
192 session->cookie[4], session->cookie[5], in l2tp_dfs_seq_session_show()
193 session->cookie[6], session->cookie[7]); in l2tp_dfs_seq_session_show()
/net/core/
Dsock_diag.c34 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie() argument
38 if (cookie[0] == INET_DIAG_NOCOOKIE && cookie[1] == INET_DIAG_NOCOOKIE) in sock_diag_check_cookie()
42 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie()
49 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie() argument
53 cookie[0] = (u32)res; in sock_diag_save_cookie()
54 cookie[1] = (u32)(res >> 32); in sock_diag_save_cookie()
Ddst_cache.c24 u32 cookie; member
32 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
38 dst_cache->cookie = cookie; in dst_cache_per_cpu_dst_set()
55 (dst->obsolete && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get()
/net/sched/
Dcls_matchall.c55 unsigned long cookie) in mall_replace_hw_filter() argument
65 offload.cls_mall->cookie = cookie; in mall_replace_hw_filter()
73 unsigned long cookie) in mall_destroy_hw_filter() argument
83 offload.cls_mall->cookie = cookie; in mall_destroy_hw_filter()
Dcls_flower.c209 static void fl_hw_destroy_filter(struct tcf_proto *tp, unsigned long cookie) in fl_hw_destroy_filter() argument
219 offload.cookie = cookie; in fl_hw_destroy_filter()
232 unsigned long cookie, u32 flags) in fl_hw_replace_filter() argument
243 offload.cookie = cookie; in fl_hw_replace_filter()
271 offload.cookie = (unsigned long)f; in fl_hw_update_stats()
/net/wireless/
Dtrace.h1212 struct wireless_dev *wdev, u64 cookie),
1213 TP_ARGS(wiphy, wdev, cookie),
1217 __field(u64, cookie)
1222 __entry->cookie = cookie;
1225 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1775 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
1776 TP_ARGS(wiphy, ret, cookie),
1780 __field(u64, cookie)
1785 __entry->cookie = cookie;
1788 WIPHY_PR_ARG, __entry->ret, __entry->cookie)
[all …]
Drdev-ops.h89 u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie, in rdev_get_key() argument
90 void (*callback)(void *cookie, struct key_params*)) in rdev_get_key() argument
95 mac_addr, cookie, callback); in rdev_get_key()
660 unsigned int duration, u64 *cookie) in rdev_remain_on_channel() argument
665 duration, cookie); in rdev_remain_on_channel()
666 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel()
672 struct wireless_dev *wdev, u64 cookie) in rdev_cancel_remain_on_channel() argument
675 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
676 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
684 u64 *cookie) in rdev_mgmt_tx() argument
[all …]
/net/batman-adv/
Dnetlink.c244 batadv_netlink_tp_meter_put(struct sk_buff *msg, u32 cookie) in batadv_netlink_tp_meter_put() argument
246 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tp_meter_put()
265 u32 cookie) in batadv_netlink_tpmeter_notify() argument
282 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tpmeter_notify()
332 u32 cookie; in batadv_netlink_tp_meter_start() local
374 batadv_tp_start(bat_priv, dst, test_length, &cookie); in batadv_netlink_tp_meter_start()
376 ret = batadv_netlink_tp_meter_put(msg, cookie); in batadv_netlink_tp_meter_start()
Dtp_meter.c107 u32 cookie; in batadv_tp_session_cookie() local
109 cookie = icmp_uid << 16; in batadv_tp_session_cookie()
110 cookie |= session[0] << 8; in batadv_tp_session_cookie()
111 cookie |= session[1]; in batadv_tp_session_cookie()
113 return cookie; in batadv_tp_session_cookie()
225 u32 cookie) in batadv_tp_batctl_notify() argument
242 total_bytes, cookie); in batadv_tp_batctl_notify()
255 u32 cookie) in batadv_tp_batctl_error_notify() argument
257 batadv_tp_batctl_notify(reason, dst, bat_priv, 0, 0, cookie); in batadv_tp_batctl_error_notify()
947 u32 test_length, u32 *cookie) in batadv_tp_start() argument
[all …]
Dnetlink.h34 u32 cookie);
Dtp_meter.h29 u32 test_length, u32 *cookie);
/net/rds/
Drdma.c181 rds_rdma_cookie_t cookie; in __rds_rdma_map() local
291 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
293 *cookie_ret = cookie; in __rds_rdma_map()
295 if (args->cookie_addr && put_user(cookie, (u64 __user *)(unsigned long) args->cookie_addr)) { in __rds_rdma_map()
377 if (args.cookie == 0) { in rds_free_mr()
389 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL); in rds_free_mr()
658 op->op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_rdma_args()
659 op->op_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_rdma_args()
872 rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_atomic()
873 rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_atomic()
Drds.h294 static inline u32 rds_rdma_cookie_key(rds_rdma_cookie_t cookie) in rds_rdma_cookie_key() argument
296 return cookie; in rds_rdma_cookie_key()
299 static inline u32 rds_rdma_cookie_offset(rds_rdma_cookie_t cookie) in rds_rdma_cookie_offset() argument
301 return cookie >> 32; in rds_rdma_cookie_offset()
/net/bluetooth/
Dhci_sock.c58 __u32 cookie; member
84 return hci_pi(sk)->cookie; in hci_sock_get_cookie()
89 int id = hci_pi(sk)->cookie; in hci_sock_gen_cookie()
96 hci_pi(sk)->cookie = id; in hci_sock_gen_cookie()
106 int id = hci_pi(sk)->cookie; in hci_sock_free_cookie()
109 hci_pi(sk)->cookie = 0xffffffff; in hci_sock_free_cookie()
378 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in hci_send_monitor_ctrl_event()
487 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_open()
516 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in create_monitor_ctrl_open()
542 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_close()
[all …]
Dmgmt_util.c33 static struct sk_buff *create_monitor_ctrl_event(__le16 index, u32 cookie, in create_monitor_ctrl_event() argument
43 put_unaligned_le32(cookie, skb_put(skb, 4)); in create_monitor_ctrl_event()

12