Home
last modified time | relevance | path

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

123

/net/sctp/
A DKconfig53 prompt "Default SCTP cookie HMAC encoding"
56 This option sets the default sctp cookie hmac algorithm
60 bool "Enable optional MD5 hmac cookie generation"
62 Enable optional MD5 hmac based SCTP cookie generation
66 bool "Enable optional SHA1 hmac cookie generation"
68 Enable optional SHA1 hmac based SCTP cookie generation
72 bool "Use no hmac alg in SCTP cookie generation"
74 Use no hmac algorithm in SCTP cookie generation
79 bool "Enable optional MD5 hmac cookie generation"
81 Enable optional MD5 hmac based SCTP cookie generation
[all …]
A Dsm_make_chunk.c405 if (!cookie) in sctp_make_init_ack()
519 kfree(cookie); in sctp_make_init_ack()
564 void *cookie; in sctp_make_cookie_echo() local
566 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
1687 cookie->c = asoc->c; in sctp_pack_cookie()
1706 memcpy((__u8 *)(cookie + 1) + in sctp_pack_cookie()
1717 cookie->signature); in sctp_pack_cookie()
1771 bear_cookie = &cookie->c; in sctp_unpack_cookie()
2624 kfree(asoc->peer.cookie); in sctp_process_param()
2625 asoc->peer.cookie = kmemdup(param.cookie->body, asoc->peer.cookie_len, gfp); in sctp_process_param()
[all …]
/net/ceph/
A Dcls_lock_client.c28 char *lock_name, u8 type, char *cookie, in ceph_cls_lock() argument
33 int cookie_len = strlen(cookie); in ceph_cls_lock()
64 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
96 char *lock_name, char *cookie) in ceph_cls_unlock() argument
100 int cookie_len = strlen(cookie); in ceph_cls_unlock()
147 char *lock_name, char *cookie, in ceph_cls_break_lock() argument
152 int cookie_len = strlen(cookie); in ceph_cls_break_lock()
179 cookie, ENTITY_NAME(*locker)); in ceph_cls_break_lock()
246 kfree(lockers[i].id.cookie); in ceph_free_lockers()
267 locker->id.cookie = s; in decode_locker()
[all …]
/net/mac80211/
A Doffchannel.c183 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
564 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument
611 *cookie = roc->cookie; in ieee80211_start_roc_work()
613 roc->mgmt_tx_cookie = *cookie; in ieee80211_start_roc_work()
709 unsigned int duration, u64 *cookie) in ieee80211_remain_on_channel() argument
717 duration, cookie, NULL, in ieee80211_remain_on_channel()
722 u64 cookie, bool mgmt_tx) in ieee80211_cancel_roc() argument
729 if (!cookie) in ieee80211_cancel_roc()
735 if (!mgmt_tx && roc->cookie != cookie) in ieee80211_cancel_roc()
1022 *cookie = 0xffffffff; in ieee80211_mgmt_tx()
[all …]
/net/sched/
A Dcls_matchall.c70 unsigned long cookie, in mall_destroy_hw_filter() argument
78 cls_mall.cookie = cookie; in mall_destroy_hw_filter()
86 unsigned long cookie, in mall_replace_hw_filter() argument
100 cls_mall.cookie = cookie; in mall_replace_hw_filter()
106 mall_destroy_hw_filter(tp, head, cookie, NULL); in mall_replace_hw_filter()
117 mall_destroy_hw_filter(tp, head, cookie, NULL); in mall_replace_hw_filter()
293 cls_mall.cookie = (unsigned long)head; in mall_reoffload()
314 unsigned long cookie) in mall_stats_hw_filter() argument
321 cls_mall.cookie = cookie; in mall_stats_hw_filter()
/net/wireless/
A Dtrace.h492 __entry->cookie = cookie;
1488 __entry->cookie = cookie;
2149 __entry->cookie = cookie;
2166 __entry->cookie = cookie;
2369 __entry->cookie = cookie;
3295 __entry->cookie = cookie;
3315 __entry->cookie = cookie;
3333 __entry->cookie = cookie;
3390 __entry->cookie = cookie;
3407 __entry->cookie = cookie;
[all …]
A Drdev-ops.h96 void *cookie, in rdev_get_key() argument
103 pairwise, mac_addr, cookie, callback); in rdev_get_key()
739 unsigned int duration, u64 *cookie) in rdev_remain_on_channel() argument
744 duration, cookie); in rdev_remain_on_channel()
763 u64 *cookie) in rdev_mgmt_tx() argument
777 u64 *cookie) in rdev_tx_control_port() argument
783 dest, proto, noencrypt, link, cookie); in rdev_tx_control_port()
784 if (cookie) in rdev_tx_control_port()
793 struct wireless_dev *wdev, u64 cookie) in rdev_mgmt_tx_cancel_wait() argument
952 u64 *cookie) in rdev_probe_client() argument
[all …]
A Dpmsr.c333 req->cookie = cfg80211_assign_cookie(rdev); in nl80211_pmsr_start()
342 nl_set_extack_cookie_u64(info->extack, req->cookie); in nl80211_pmsr_start()
358 trace_cfg80211_pmsr_complete(wdev->wiphy, wdev, req->cookie); in cfg80211_pmsr_complete()
374 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_complete()
566 trace_cfg80211_pmsr_report(wdev->wiphy, wdev, req->cookie, in cfg80211_pmsr_report()
587 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_report()
/net/core/
A Dsock_diag.c42 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie() argument
46 if (cookie[0] == INET_DIAG_NOCOOKIE && cookie[1] == INET_DIAG_NOCOOKIE) in sock_diag_check_cookie()
50 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie()
57 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie() argument
61 cookie[0] = (u32)res; in sock_diag_save_cookie()
62 cookie[1] = (u32)(res >> 32); in sock_diag_save_cookie()
A Ddst_cache.c21 u32 cookie; member
29 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
36 dst_cache->cookie = cookie; in dst_cache_per_cpu_dst_set()
55 (READ_ONCE(dst->obsolete) && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get()
205 idst->cookie = 0; in dst_cache_reset_now()
A Dflow_offload.c223 struct flow_action_cookie *cookie; in flow_action_cookie_create() local
225 cookie = kmalloc(sizeof(*cookie) + len, gfp); in flow_action_cookie_create()
226 if (!cookie) in flow_action_cookie_create()
228 cookie->cookie_len = len; in flow_action_cookie_create()
229 memcpy(cookie->cookie, data, len); in flow_action_cookie_create()
230 return cookie; in flow_action_cookie_create()
234 void flow_action_cookie_destroy(struct flow_action_cookie *cookie) in flow_action_cookie_destroy() argument
236 kfree(cookie); in flow_action_cookie_destroy()
/net/l2tp/
A Dl2tp_debugfs.c198 session->cookie[0], session->cookie[1], in l2tp_dfs_seq_session_show()
199 session->cookie[2], session->cookie[3]); in l2tp_dfs_seq_session_show()
202 session->cookie[4], session->cookie[5], in l2tp_dfs_seq_session_show()
203 session->cookie[6], session->cookie[7]); in l2tp_dfs_seq_session_show()
A Dl2tp_core.h47 u8 cookie[8]; /* optional cookie */ member
74 u8 cookie[8]; member
/net/ipv4/
A Dtcp_metrics.c33 struct tcp_fastopen_cookie cookie; member
137 tm->tcpm_fastopen.cookie.exp = false; in tcpm_suck_dst()
138 tm->tcpm_fastopen.cookie.len = 0; in tcpm_suck_dst()
562 struct tcp_fastopen_cookie *cookie) in tcp_fastopen_cache_get() argument
576 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
578 cookie->exp = true; in tcp_fastopen_cache_get()
601 if (cookie && cookie->len > 0) in tcp_fastopen_cache_set()
602 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
604 tfom->cookie.len <= 0 && !tfom->cookie.exp) in tcp_fastopen_cache_set()
732 if (tfom->cookie.len > 0 && in tcp_metrics_fill_info()
[all …]
A Dtcp_fastopen.c420 struct tcp_fastopen_cookie *cookie) in tcp_fastopen_cookie_check() argument
424 tcp_fastopen_cache_get(sk, mss, cookie); in tcp_fastopen_cookie_check()
428 cookie->len = -1; in tcp_fastopen_cookie_check()
435 cookie->len = -1; in tcp_fastopen_cookie_check()
438 if (cookie->len > 0) in tcp_fastopen_cookie_check()
453 struct tcp_fastopen_cookie cookie = { .len = 0 }; in tcp_fastopen_defer_connect() local
458 if (tcp_fastopen_cookie_check(sk, &mss, &cookie)) { in tcp_fastopen_defer_connect()
469 tp->fastopen_req->cookie = cookie; in tcp_fastopen_defer_connect()
A Dsyncookies.c113 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument
119 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
122 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
126 return (cookie - in check_tcp_syn_cookie()
185 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v4_check() local
189 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr, in __cookie_v4_check()
/net/ipv6/
A Dsyncookies.c75 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, in check_tcp_syn_cookie() argument
81 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
83 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
87 return (cookie - in check_tcp_syn_cookie()
119 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v6_check() local
123 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr, in __cookie_v6_check()
A Dinet6_connection_sock.c59 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check() argument
61 return __sk_dst_check(sk, cookie); in __inet6_csk_dst_check()
/net/rds/
A Drdma.c182 rds_rdma_cookie_t cookie; in __rds_rdma_map() local
320 cookie = rds_rdma_make_cookie(mr->r_key, 0); in __rds_rdma_map()
322 cookie = rds_rdma_make_cookie(mr->r_key, in __rds_rdma_map()
325 *cookie_ret = cookie; in __rds_rdma_map()
328 put_user(cookie, (u64 __user *)(unsigned long)args->cookie_addr)) { in __rds_rdma_map()
412 if (args.cookie == 0) { in rds_free_mr()
424 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL); in rds_free_mr()
700 op->op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_rdma_args()
701 op->op_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_rdma_args()
950 rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_atomic()
[all …]
A Dmessage.c58 static inline bool rds_zcookie_add(struct rds_msg_zcopy_info *info, u32 cookie) in rds_zcookie_add() argument
65 ck->cookies[ncookies] = cookie; in rds_zcookie_add()
97 u32 cookie = znotif->z_cookie; in rds_rm_zerocopy_callback() local
109 if (rds_zcookie_add(info, cookie)) { in rds_rm_zerocopy_callback()
120 WARN_ON(!rds_zcookie_add(info, cookie)); in rds_rm_zerocopy_callback()
/net/batman-adv/
A Dtp_meter.c99 u32 cookie; in batadv_tp_session_cookie() local
101 cookie = icmp_uid << 16; in batadv_tp_session_cookie()
102 cookie |= session[0] << 8; in batadv_tp_session_cookie()
103 cookie |= session[1]; in batadv_tp_session_cookie()
105 return cookie; in batadv_tp_session_cookie()
217 u32 cookie) in batadv_tp_batctl_notify() argument
234 total_bytes, cookie); in batadv_tp_batctl_notify()
247 u32 cookie) in batadv_tp_batctl_error_notify() argument
249 batadv_tp_batctl_notify(reason, dst, bat_priv, 0, 0, cookie); in batadv_tp_batctl_error_notify()
936 u32 test_length, u32 *cookie) in batadv_tp_start() argument
[all …]
A Dnetlink.c625 batadv_netlink_tp_meter_put(struct sk_buff *msg, u32 cookie) in batadv_netlink_tp_meter_put() argument
627 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tp_meter_put()
646 u32 cookie) in batadv_netlink_tpmeter_notify() argument
663 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tpmeter_notify()
710 u32 cookie; in batadv_netlink_tp_meter_start() local
738 batadv_tp_start(bat_priv, dst, test_length, &cookie); in batadv_netlink_tp_meter_start()
740 ret = batadv_netlink_tp_meter_put(msg, cookie); in batadv_netlink_tp_meter_start()
A Dtp_meter.h17 u32 test_length, u32 *cookie);
/net/netfilter/
A Dnft_inner.c235 tun_ctx->cookie = (unsigned long)pkt->skb; in nft_inner_parse()
249 if (this_cpu_tun_ctx->cookie != (unsigned long)pkt->skb) { in nft_inner_restore_tun_ctx()
269 if (this_cpu_tun_ctx->cookie != tun_ctx->cookie) in nft_inner_save_tun_ctx()
/net/bluetooth/
A Dhci_sock.c58 __u32 cookie; member
96 return hci_pi(sk)->cookie; in hci_sock_get_cookie()
101 int id = hci_pi(sk)->cookie; in hci_sock_gen_cookie()
108 hci_pi(sk)->cookie = id; in hci_sock_gen_cookie()
118 int id = hci_pi(sk)->cookie; in hci_sock_free_cookie()
121 hci_pi(sk)->cookie = 0; in hci_sock_free_cookie()
568 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_open()
599 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in create_monitor_ctrl_open()
625 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_close()
644 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in create_monitor_ctrl_close()
[all …]

Completed in 77 milliseconds

123