/net/sctp/ |
D | Kconfig | 52 prompt "Default SCTP cookie HMAC encoding" 55 This option sets the default sctp cookie hmac algorithm 59 bool "Enable optional MD5 hmac cookie generation" 61 Enable optional MD5 hmac based SCTP cookie generation 65 bool "Enable optional SHA1 hmac cookie generation" 67 Enable optional SHA1 hmac based SCTP cookie generation 71 bool "Use no hmac alg in SCTP cookie generation" 73 Use no hmac algorithm in SCTP cookie generation 78 bool "Enable optional MD5 hmac cookie generation" 80 Enable optional MD5 hmac based SCTP cookie generation [all …]
|
D | sm_make_chunk.c | 389 struct sctp_cookie_param *cookie; in sctp_make_init_ack() local 411 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len, in sctp_make_init_ack() 413 if (!cookie) in sctp_make_init_ack() 493 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack() 527 kfree(cookie); in sctp_make_init_ack() 572 void *cookie; in sctp_make_cookie_echo() local 574 cookie = asoc->peer.cookie; in sctp_make_cookie_echo() 583 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo() 1615 struct sctp_signed_cookie *cookie; in sctp_pack_cookie() local 1643 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie() [all …]
|
/net/ceph/ |
D | cls_lock_client.c | 26 char *lock_name, u8 type, char *cookie, in ceph_cls_lock() argument 31 int cookie_len = strlen(cookie); in ceph_cls_lock() 62 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock() 72 __func__, lock_name, type, cookie, tag, desc, flags); in ceph_cls_lock() 92 char *lock_name, char *cookie) in ceph_cls_unlock() argument 96 int cookie_len = strlen(cookie); in ceph_cls_unlock() 118 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock() 120 dout("%s lock_name %s cookie %s\n", __func__, lock_name, cookie); in ceph_cls_unlock() 141 char *lock_name, char *cookie, in ceph_cls_break_lock() argument 146 int cookie_len = strlen(cookie); in ceph_cls_break_lock() [all …]
|
/net/mac80211/ |
D | offchannel.c | 201 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy() 271 cfg80211_ready_on_channel(&roc->sdata->wdev, roc->cookie, in ieee80211_handle_roc_started() 550 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument 591 roc->cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_start_roc_work() 592 *cookie = roc->cookie; in ieee80211_start_roc_work() 594 roc->mgmt_tx_cookie = *cookie; in ieee80211_start_roc_work() 688 unsigned int duration, u64 *cookie) in ieee80211_remain_on_channel() argument 696 duration, cookie, NULL, in ieee80211_remain_on_channel() 704 u64 cookie, bool mgmt_tx) in ieee80211_cancel_roc() argument 709 if (!cookie) in ieee80211_cancel_roc() [all …]
|
D | cfg.c | 304 u64 cookie) in ieee80211_find_nan_func_by_cookie() argument 312 if (func->cookie == cookie) in ieee80211_find_nan_func_by_cookie() 320 struct wireless_dev *wdev, u64 cookie) in ieee80211_del_nan_func() argument 332 func = ieee80211_find_nan_func_by_cookie(sdata, cookie); in ieee80211_del_nan_func() 544 void *cookie, in ieee80211_get_key() argument 545 void (*callback)(void *cookie, in ieee80211_get_key() argument 652 callback(cookie, ¶ms); in ieee80211_get_key() 3442 u64 *cookie, gfp_t gfp) in ieee80211_attach_ack_skb() argument 3464 *cookie = ieee80211_mgmt_tx_cookie(local); in ieee80211_attach_ack_skb() 3465 IEEE80211_SKB_CB(ack_skb)->ack.cookie = *cookie; in ieee80211_attach_ack_skb() [all …]
|
/net/sched/ |
D | cls_matchall.c | 68 unsigned long cookie, in mall_destroy_hw_filter() argument 76 cls_mall.cookie = cookie; in mall_destroy_hw_filter() 84 unsigned long cookie, in mall_replace_hw_filter() argument 98 cls_mall.cookie = cookie; in mall_replace_hw_filter() 103 mall_destroy_hw_filter(tp, head, cookie, NULL); in mall_replace_hw_filter() 118 mall_destroy_hw_filter(tp, head, cookie, NULL); in mall_replace_hw_filter() 303 cls_mall.cookie = (unsigned long)head; in mall_reoffload() 329 unsigned long cookie) in mall_stats_hw_filter() argument 336 cls_mall.cookie = cookie; in mall_stats_hw_filter()
|
D | act_api.c | 35 struct tc_cookie *cookie = container_of(p, struct tc_cookie, rcu); in tcf_free_cookie_rcu() local 37 kfree(cookie->data); in tcf_free_cookie_rcu() 38 kfree(cookie); in tcf_free_cookie_rcu() 761 struct tc_cookie *cookie; in tcf_action_dump_1() local 769 cookie = rcu_dereference(a->act_cookie); in tcf_action_dump_1() 770 if (cookie) { in tcf_action_dump_1() 771 if (nla_put(skb, TCA_ACT_COOKIE, cookie->len, cookie->data)) { in tcf_action_dump_1() 872 struct tc_cookie *cookie = NULL; in tcf_action_init_1() local 894 cookie = nla_memdup_cookie(tb); in tcf_action_init_1() 895 if (!cookie) { in tcf_action_init_1() [all …]
|
/net/wireless/ |
D | trace.h | 376 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie), 377 TP_ARGS(wiphy, wdev, cookie), 381 __field(u64, cookie) 386 __entry->cookie = cookie; 390 (unsigned long long)__entry->cookie) 1280 struct wireless_dev *wdev, u64 cookie), 1281 TP_ARGS(wiphy, wdev, cookie), 1285 __field(u64, cookie) 1290 __entry->cookie = cookie; 1293 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) [all …]
|
D | rdev-ops.h | 90 u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie, in rdev_get_key() argument 91 void (*callback)(void *cookie, struct key_params*)) in rdev_get_key() argument 96 mac_addr, cookie, callback); in rdev_get_key() 714 unsigned int duration, u64 *cookie) in rdev_remain_on_channel() argument 719 duration, cookie); in rdev_remain_on_channel() 720 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel() 726 struct wireless_dev *wdev, u64 cookie) in rdev_cancel_remain_on_channel() argument 729 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel() 730 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel() 738 u64 *cookie) in rdev_mgmt_tx() argument [all …]
|
D | pmsr.c | 275 req->cookie = cfg80211_assign_cookie(rdev); in nl80211_pmsr_start() 284 nl_set_extack_cookie_u64(info->extack, req->cookie); in nl80211_pmsr_start() 300 trace_cfg80211_pmsr_complete(wdev->wiphy, wdev, req->cookie); in cfg80211_pmsr_complete() 316 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_complete() 508 trace_cfg80211_pmsr_report(wdev->wiphy, wdev, req->cookie, in cfg80211_pmsr_report() 529 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_report()
|
/net/ipv6/ |
D | syncookies.c | 75 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() 118 __u32 cookie) in __cookie_v6_check() argument 121 __u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr, in __cookie_v6_check() 136 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check() local 151 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check() 215 treq->snt_isn = cookie; in cookie_v6_check()
|
D | inet6_connection_sock.c | 74 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check() argument 76 return __sk_dst_check(sk, cookie); in __inet6_csk_dst_check()
|
/net/core/ |
D | sock_diag.c | 36 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie() argument 40 if (cookie[0] == INET_DIAG_NOCOOKIE && cookie[1] == INET_DIAG_NOCOOKIE) in sock_diag_check_cookie() 44 if ((u32)res != cookie[0] || (u32)(res >> 32) != cookie[1]) in sock_diag_check_cookie() 51 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie() argument 55 cookie[0] = (u32)res; in sock_diag_save_cookie() 56 cookie[1] = (u32)(res >> 32); in sock_diag_save_cookie()
|
D | dst_cache.c | 20 u32 cookie; member 28 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument 34 dst_cache->cookie = cookie; in dst_cache_per_cpu_dst_set() 51 (dst->obsolete && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get()
|
/net/l2tp/ |
D | l2tp_debugfs.c | 199 session->cookie[0], session->cookie[1], in l2tp_dfs_seq_session_show() 200 session->cookie[2], session->cookie[3]); in l2tp_dfs_seq_session_show() 203 session->cookie[4], session->cookie[5], in l2tp_dfs_seq_session_show() 204 session->cookie[6], session->cookie[7]); in l2tp_dfs_seq_session_show()
|
/net/ipv4/ |
D | syncookies.c | 114 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument 120 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie() 123 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS); in check_tcp_syn_cookie() 127 return (cookie - in check_tcp_syn_cookie() 185 u32 cookie) in __cookie_v4_check() argument 188 __u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr, in __cookie_v4_check() 285 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check() local 301 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check() 332 treq->snt_isn = cookie; in cookie_v4_check()
|
D | tcp_metrics.c | 33 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() 557 struct tcp_fastopen_cookie *cookie) in tcp_fastopen_cache_get() argument 571 *cookie = tfom->cookie; in tcp_fastopen_cache_get() 572 if (cookie->len <= 0 && tfom->try_exp == 1) in tcp_fastopen_cache_get() 573 cookie->exp = true; in tcp_fastopen_cache_get() 580 struct tcp_fastopen_cookie *cookie, bool syn_lost, in tcp_fastopen_cache_set() argument 596 if (cookie && cookie->len > 0) in tcp_fastopen_cache_set() 597 tfom->cookie = *cookie; in tcp_fastopen_cache_set() [all …]
|
D | tcp_fastopen.c | 431 struct tcp_fastopen_cookie *cookie) in tcp_fastopen_cookie_check() argument 435 tcp_fastopen_cache_get(sk, mss, cookie); in tcp_fastopen_cookie_check() 439 cookie->len = -1; in tcp_fastopen_cookie_check() 446 cookie->len = -1; in tcp_fastopen_cookie_check() 449 return cookie->len > 0; in tcp_fastopen_cookie_check() 461 struct tcp_fastopen_cookie cookie = { .len = 0 }; in tcp_fastopen_defer_connect() local 466 if (tcp_fastopen_cookie_check(sk, &mss, &cookie)) { in tcp_fastopen_defer_connect() 477 tp->fastopen_req->cookie = cookie; in tcp_fastopen_defer_connect()
|
/net/rds/ |
D | rdma.c | 183 rds_rdma_cookie_t cookie; in __rds_rdma_map() local 297 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map() 299 *cookie_ret = cookie; in __rds_rdma_map() 301 if (args->cookie_addr && put_user(cookie, (u64 __user *)(unsigned long) args->cookie_addr)) { in __rds_rdma_map() 383 if (args.cookie == 0) { in rds_free_mr() 395 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL); in rds_free_mr() 661 op->op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_rdma_args() 662 op->op_remote_addr = args->remote_vec.addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_rdma_args() 874 rm->atomic.op_rkey = rds_rdma_cookie_key(args->cookie); in rds_cmsg_atomic() 875 rm->atomic.op_remote_addr = args->remote_addr + rds_rdma_cookie_offset(args->cookie); in rds_cmsg_atomic()
|
D | message.c | 58 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/ |
D | tp_meter.c | 98 u32 cookie; in batadv_tp_session_cookie() local 100 cookie = icmp_uid << 16; in batadv_tp_session_cookie() 101 cookie |= session[0] << 8; in batadv_tp_session_cookie() 102 cookie |= session[1]; in batadv_tp_session_cookie() 104 return cookie; in batadv_tp_session_cookie() 216 u32 cookie) in batadv_tp_batctl_notify() argument 233 total_bytes, cookie); in batadv_tp_batctl_notify() 246 u32 cookie) in batadv_tp_batctl_error_notify() argument 248 batadv_tp_batctl_notify(reason, dst, bat_priv, 0, 0, cookie); in batadv_tp_batctl_error_notify() 937 u32 test_length, u32 *cookie) in batadv_tp_start() argument [all …]
|
D | netlink.c | 633 batadv_netlink_tp_meter_put(struct sk_buff *msg, u32 cookie) in batadv_netlink_tp_meter_put() argument 635 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tp_meter_put() 654 u32 cookie) in batadv_netlink_tpmeter_notify() argument 671 if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) in batadv_netlink_tpmeter_notify() 718 u32 cookie; in batadv_netlink_tp_meter_start() local 746 batadv_tp_start(bat_priv, dst, test_length, &cookie); in batadv_netlink_tp_meter_start() 748 ret = batadv_netlink_tp_meter_put(msg, cookie); in batadv_netlink_tp_meter_start()
|
D | tp_meter.h | 17 u32 test_length, u32 *cookie);
|
D | netlink.h | 22 u32 cookie);
|
/net/bluetooth/ |
D | hci_sock.c | 58 __u32 cookie; member 95 return hci_pi(sk)->cookie; in hci_sock_get_cookie() 100 int id = hci_pi(sk)->cookie; in hci_sock_gen_cookie() 107 hci_pi(sk)->cookie = id; in hci_sock_gen_cookie() 117 int id = hci_pi(sk)->cookie; in hci_sock_free_cookie() 120 hci_pi(sk)->cookie = 0xffffffff; in hci_sock_free_cookie() 394 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in hci_send_monitor_ctrl_event() 504 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_open() 533 put_unaligned_le32(hci_pi(sk)->cookie, skb_put(skb, 4)); in create_monitor_ctrl_open() 559 if (!hci_pi(sk)->cookie) in create_monitor_ctrl_close() [all …]
|