Home
last modified time | relevance | path

Searched refs:cookie_len (Results 1 – 17 of 17) sorted by relevance

/linux/net/ceph/
A Dcls_lock_client.c33 int cookie_len = strlen(cookie); in ceph_cls_lock() local
42 cookie_len + sizeof(__le32) + in ceph_cls_lock()
64 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock()
100 int cookie_len = strlen(cookie); in ceph_cls_unlock() local
106 cookie_len + sizeof(__le32) + in ceph_cls_unlock()
122 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_unlock()
152 int cookie_len = strlen(cookie); in ceph_cls_break_lock() local
158 cookie_len + sizeof(__le32) + in ceph_cls_break_lock()
176 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_break_lock()
394 int cookie_len = strlen(cookie); in ceph_cls_assert_locked() local
[all …]
/linux/include/linux/
A Dnetlink.h82 u8 cookie_len; member
135 extack->cookie_len = sizeof(cookie); in nl_set_extack_cookie_u64()
144 extack->cookie_len = sizeof(cookie); in nl_set_extack_cookie_u32()
/linux/net/sctp/
A Dsm_make_chunk.c61 int *cookie_len,
396 int cookie_len; in sctp_make_init_ack() local
571 int cookie_len; in sctp_make_cookie_echo() local
575 cookie_len = asoc->peer.cookie_len; in sctp_make_cookie_echo()
579 cookie_len, GFP_ATOMIC); in sctp_make_cookie_echo()
1657 int *cookie_len, const __u8 *raw_addrs, in sctp_pack_cookie() argument
1679 *cookie_len = headersize + bodysize; in sctp_pack_cookie()
1684 retval = kzalloc(*cookie_len, GFP_ATOMIC); in sctp_pack_cookie()
1692 retval->p.length = htons(*cookie_len); in sctp_pack_cookie()
1735 *cookie_len = 0; in sctp_pack_cookie()
[all …]
/linux/net/l2tp/
A Dl2tp_core.h57 int cookie_len; /* 0, 4 or 8 bytes */ member
78 int cookie_len; member
A Dl2tp_core.c976 if (session->cookie_len) { in l2tp_build_l2tpv3_header()
977 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
978 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
1572 session->hdr_len = 4 + session->cookie_len; in l2tp_session_set_header_len()
1618 session->cookie_len = cfg->cookie_len; in l2tp_session_create()
1619 memcpy(&session->cookie[0], &cfg->cookie[0], cfg->cookie_len); in l2tp_session_create()
A Dl2tp_debugfs.c199 if (session->cookie_len) { in l2tp_dfs_seq_session_show()
203 if (session->cookie_len == 8) in l2tp_dfs_seq_session_show()
A Dl2tp_netlink.c591 cfg.cookie_len = len; in l2tp_nl_cmd_session_create()
733 (session->cookie_len && in l2tp_nl_session_send()
734 nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len, session->cookie)) || in l2tp_nl_session_send()
/linux/samples/bpf/
A Dcookie_uid_helper_example.c223 socklen_t cookie_len = sizeof(cookie); in udp_client() local
238 res = getsockopt(s_send, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len); in udp_client()
/linux/drivers/net/netdevsim/
A Ddev.c153 buf_len = fa_cookie->cookie_len * 2; in nsim_dev_trap_fa_cookie_read()
159 bin2hex(buf, fa_cookie->cookie, fa_cookie->cookie_len); in nsim_dev_trap_fa_cookie_read()
178 size_t cookie_len; in nsim_dev_trap_fa_cookie_write() local
184 cookie_len = (count - 1) / 2; in nsim_dev_trap_fa_cookie_write()
195 fa_cookie = kmalloc(sizeof(*fa_cookie) + cookie_len, in nsim_dev_trap_fa_cookie_write()
202 fa_cookie->cookie_len = cookie_len; in nsim_dev_trap_fa_cookie_write()
203 ret = hex2bin(fa_cookie->cookie, buf, cookie_len); in nsim_dev_trap_fa_cookie_write()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_acl_flex_actions.c145 fa_cookie->cookie_len / sizeof(u32), seed); in mlxsw_afa_cookie_hash()
168 if (cookie->fa_cookie.cookie_len == fa_cookie->cookie_len) in mlxsw_afa_cookie_obj_cmpfn()
170 fa_cookie->cookie_len); in mlxsw_afa_cookie_obj_cmpfn()
736 cookie = kzalloc(sizeof(*cookie) + fa_cookie->cookie_len, GFP_KERNEL); in mlxsw_afa_cookie_create()
741 sizeof(*fa_cookie) + fa_cookie->cookie_len); in mlxsw_afa_cookie_create()
/linux/net/core/
A Ddrop_monitor.c717 nla_total_size(hw_metadata->fa_cookie->cookie_len) : 0; in net_dm_flow_action_cookie_size()
786 hw_metadata->fa_cookie->cookie_len, in net_dm_hw_packet_report_fill()
843 metadata->fa_cookie->cookie_len; in net_dm_hw_metadata_copy()
A Dflow_offload.c186 cookie->cookie_len = len; in flow_action_cookie_create()
/linux/net/sched/
A Dact_api.c203 u32 cookie_len = 0; in tcf_action_shared_attrs_size() local
209 cookie_len = nla_total_size(act_cookie->len); in tcf_action_shared_attrs_size()
214 + cookie_len /* TCA_ACT_COOKIE */ in tcf_action_shared_attrs_size()
/linux/include/net/
A Dflow_offload.h189 u32 cookie_len; member
/linux/net/netlink/
A Daf_netlink.c2423 if (nlk_has_extack && extack && extack->cookie_len) in netlink_ack()
2424 tlvlen += nla_total_size(extack->cookie_len); in netlink_ack()
2456 if (extack->cookie_len) in netlink_ack()
2458 extack->cookie_len, extack->cookie)); in netlink_ack()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsk_lookup.c247 socklen_t cookie_len = sizeof(cookie); in socket_cookie() local
249 if (CHECK(getsockopt(fd, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len) < 0, in socket_cookie()
/linux/include/net/sctp/
A Dstructs.h1730 int cookie_len; member

Completed in 50 milliseconds