Home
last modified time | relevance | path

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

12

/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.c391 sctp_cookie_param_t *cookie; in sctp_make_init_ack() local
416 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack()
418 if (!cookie) in sctp_make_init_ack()
486 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
522 kfree(cookie); in sctp_make_init_ack()
566 void *cookie; in sctp_make_cookie_echo() local
569 cookie = asoc->peer.cookie; in sctp_make_cookie_echo()
577 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
1616 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local
1644 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
[all …]
Dassociola.c377 kfree(asoc->peer.cookie); in sctp_association_free()
1600 struct sctp_cookie *cookie, in sctp_assoc_set_bind_addr_from_cookie() argument
1603 int var_size2 = ntohs(cookie->peer_init->chunk_hdr.length); in sctp_assoc_set_bind_addr_from_cookie()
1604 int var_size3 = cookie->raw_addr_list_len; in sctp_assoc_set_bind_addr_from_cookie()
1605 __u8 *raw = (__u8 *)cookie->peer_init + var_size2; in sctp_assoc_set_bind_addr_from_cookie()
/net/ipv6/
Dsyncookies.c83 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, in check_tcp_syn_cookie() argument
89 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
91 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
95 return (cookie - in check_tcp_syn_cookie()
126 __u32 cookie) in __cookie_v6_check() argument
129 __u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr, in __cookie_v6_check()
144 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check() local
157 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
212 treq->snt_isn = cookie; in cookie_v6_check()
Dinet6_connection_sock.c115 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check() argument
117 return __sk_dst_check(sk, cookie); in __inet6_csk_dst_check()
Droute.c80 static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie);
1249 static struct dst_entry *rt6_check(struct rt6_info *rt, u32 cookie) in rt6_check() argument
1253 if (!rt6_get_cookie_safe(rt, &rt_cookie) || rt_cookie != cookie) in rt6_check()
1262 static struct dst_entry *rt6_dst_from_check(struct rt6_info *rt, u32 cookie) in rt6_dst_from_check() argument
1266 rt6_check((struct rt6_info *)(rt->dst.from), cookie)) in rt6_dst_from_check()
1272 static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie) in ip6_dst_check() argument
1287 return rt6_dst_from_check(rt, cookie); in ip6_dst_check()
1289 return rt6_check(rt, cookie); in ip6_dst_check()
/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/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()
Dl2tp_core.h64 u8 cookie[8]; /* optional cookie */ member
84 u8 cookie[8]; member
/net/ipv4/
Dsyncookies.c137 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument
143 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
146 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie()
150 return (cookie - in check_tcp_syn_cookie()
208 u32 cookie) in __cookie_v4_check() argument
211 __u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr, in __cookie_v4_check()
307 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check() local
321 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
344 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()
687 struct tcp_fastopen_cookie *cookie, in tcp_fastopen_cache_get() argument
702 *cookie = tfom->cookie; in tcp_fastopen_cache_get()
703 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get()
704 cookie->exp = true; in tcp_fastopen_cache_get()
713 struct tcp_fastopen_cookie *cookie, bool syn_lost, in tcp_fastopen_cache_set() argument
729 if (cookie && cookie->len > 0) in tcp_fastopen_cache_set()
730 tfom->cookie = *cookie; in tcp_fastopen_cache_set()
[all …]
Dtcp_output.c598 if (fastopen && fastopen->cookie.len >= 0) { in tcp_syn_options()
599 u32 need = fastopen->cookie.len; in tcp_syn_options()
601 need += fastopen->cookie.exp ? TCPOLEN_EXP_FASTOPEN_BASE : in tcp_syn_options()
606 opts->fastopen_cookie = &fastopen->cookie; in tcp_syn_options()
609 tp->syn_fastopen_exp = fastopen->cookie.exp ? 1 : 0; in tcp_syn_options()
3215 tcp_fastopen_cache_get(sk, &tp->rx_opt.mss_clamp, &fo->cookie, in tcp_send_syn_data()
3220 fo->cookie.len = -1; in tcp_send_syn_data()
3225 fo->cookie.len = -1; in tcp_send_syn_data()
3226 else if (fo->cookie.len <= 0) in tcp_send_syn_data()
3286 if (fo->cookie.len > 0) in tcp_send_syn_data()
[all …]
/net/wireless/
Dtrace.h1174 struct wireless_dev *wdev, u64 cookie),
1175 TP_ARGS(wiphy, wdev, cookie),
1179 __field(u64, cookie)
1184 __entry->cookie = cookie;
1187 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
1735 TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
1736 TP_ARGS(wiphy, ret, cookie),
1740 __field(u64, cookie)
1745 __entry->cookie = cookie;
1748 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()
656 unsigned int duration, u64 *cookie) in rdev_remain_on_channel() argument
661 duration, cookie); in rdev_remain_on_channel()
662 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel()
668 struct wireless_dev *wdev, u64 cookie) in rdev_cancel_remain_on_channel() argument
671 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
672 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
680 u64 *cookie) in rdev_mgmt_tx() argument
[all …]
Dnl80211.c2861 struct get_key_cookie *cookie = c; in get_key_callback() local
2864 nla_put(cookie->msg, NL80211_ATTR_KEY_DATA, in get_key_callback()
2867 nla_put(cookie->msg, NL80211_ATTR_KEY_SEQ, in get_key_callback()
2870 nla_put_u32(cookie->msg, NL80211_ATTR_KEY_CIPHER, in get_key_callback()
2874 key = nla_nest_start(cookie->msg, NL80211_ATTR_KEY); in get_key_callback()
2879 nla_put(cookie->msg, NL80211_KEY_DATA, in get_key_callback()
2882 nla_put(cookie->msg, NL80211_KEY_SEQ, in get_key_callback()
2885 nla_put_u32(cookie->msg, NL80211_KEY_CIPHER, in get_key_callback()
2889 if (nla_put_u8(cookie->msg, NL80211_KEY_IDX, cookie->idx)) in get_key_callback()
2892 nla_nest_end(cookie->msg, key); in get_key_callback()
[all …]
Dmlme.c570 struct cfg80211_mgmt_tx_params *params, u64 *cookie) in cfg80211_mlme_mgmt_tx() argument
663 return rdev_mgmt_tx(rdev, wdev, params, cookie); in cfg80211_mlme_mgmt_tx()
/net/rds/
Drdma.c182 rds_rdma_cookie_t cookie; in __rds_rdma_map() local
284 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
286 *cookie_ret = cookie; in __rds_rdma_map()
288 if (args->cookie_addr && put_user(cookie, (u64 __user *)(unsigned long) args->cookie_addr)) { in __rds_rdma_map()
370 if (args.cookie == 0) { in rds_free_mr()
382 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL); in rds_free_mr()
651 op->op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_rdma_args()
652 op->op_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_rdma_args()
865 rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_atomic()
866 rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_atomic()
Drds.h255 static inline u32 rds_rdma_cookie_key(rds_rdma_cookie_t cookie) in rds_rdma_cookie_key() argument
257 return cookie; in rds_rdma_cookie_key()
260 static inline u32 rds_rdma_cookie_offset(rds_rdma_cookie_t cookie) in rds_rdma_cookie_offset() argument
262 return cookie >> 32; in rds_rdma_cookie_offset()
/net/mac80211/
Dcfg.c301 void *cookie, in ieee80211_get_key() argument
302 void (*callback)(void *cookie, in ieee80211_get_key() argument
406 callback(cookie, &params); in ieee80211_get_key()
2507 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument
2550 roc->cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_start_roc_work()
2551 *cookie = roc->cookie; in ieee80211_start_roc_work()
2553 roc->mgmt_tx_cookie = *cookie; in ieee80211_start_roc_work()
2655 u64 *cookie) in ieee80211_remain_on_channel() argument
2663 duration, cookie, NULL, in ieee80211_remain_on_channel()
2671 u64 cookie, bool mgmt_tx) in ieee80211_cancel_roc() argument
[all …]
Dstatus.c470 u64 cookie = IEEE80211_SKB_CB(skb)->ack.cookie; in ieee80211_report_ack_skb() local
479 cookie, acked, in ieee80211_report_ack_skb()
482 cfg80211_mgmt_tx_status(&sdata->wdev, cookie, in ieee80211_report_ack_skb()
Doffchannel.c202 cfg80211_ready_on_channel(&roc->sdata->wdev, roc->cookie, in ieee80211_handle_roc_started()
319 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
/net/ceph/
Dosd_client.c597 u64 cookie, u64 version, int flag) in osd_req_op_watch_init() argument
604 op->watch.cookie = cookie; in osd_req_op_watch_init()
720 dst->watch.cookie = cpu_to_le64(src->watch.cookie); in osd_req_encode_op()
2240 if (new->cookie < event->cookie) in __insert_event()
2242 else if (new->cookie > event->cookie) in __insert_event()
2253 u64 cookie) in __find_event() argument
2262 if (cookie < event->cookie) in __find_event()
2264 else if (cookie > event->cookie) in __find_event()
2306 event->cookie = ++osdc->event_count; in ceph_osdc_create_event()
2353 u64 cookie, ver, notify_id; in handle_watch_notify() local
[all …]
/net/sunrpc/
Dxprt.c663 void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie) in xprt_conditional_disconnect() argument
667 if (cookie != xprt->connect_cookie) in xprt_conditional_disconnect()
699 void *cookie) in xprt_lock_connect() argument
709 xprt->snd_task = cookie; in xprt_lock_connect()
716 void xprt_unlock_connect(struct rpc_xprt *xprt, void *cookie) in xprt_unlock_connect() argument
719 if (xprt->snd_task != cookie) in xprt_unlock_connect()
/net/netfilter/ipvs/
Dip_vs_xmit.c423 u32 cookie; in __ip_vs_get_out_rt_v6() local
442 cookie = rt6_get_cookie(rt); in __ip_vs_get_out_rt_v6()
443 __ip_vs_dst_set(dest, dest_dst, &rt->dst, cookie); in __ip_vs_get_out_rt_v6()

12