Home
last modified time | relevance | path

Searched refs:NLMSG_HDRLEN (Results 1 – 19 of 19) sorted by relevance

/Linux-v6.1/include/net/
Dgenetlink.h220 NLMSG_HDRLEN); in genlmsg_nlhdr()
301 nlmsg_end(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_end()
312 nlmsg_cancel(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_cancel()
401 NLMSG_HDRLEN); in genlmsg_len()
402 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
Dnetlink.h558 return NLMSG_HDRLEN + payload; in nlmsg_msg_size()
585 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data()
594 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
/Linux-v6.1/include/uapi/linux/
Dnetlink.h100 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
101 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
103 #define NLMSG_DATA(nlh) ((void *)(((char *)nlh) + NLMSG_HDRLEN))
/Linux-v6.1/tools/include/uapi/linux/
Dnetlink.h91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
/Linux-v6.1/drivers/connector/
Dconnector.c142 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback()
175 if (skb->len >= NLMSG_HDRLEN) { in cn_rx_skb()
/Linux-v6.1/net/netfilter/
Dnfnetlink.c443 if (nlh->nlmsg_len < NLMSG_HDRLEN || in nfnetlink_rcv_batch()
619 if (skb->len < NLMSG_HDRLEN + sizeof(struct nfgenmsg)) in nfnetlink_rcv_skb_batch()
646 if (skb->len < NLMSG_HDRLEN || in nfnetlink_rcv()
647 nlh->nlmsg_len < NLMSG_HDRLEN || in nfnetlink_rcv()
/Linux-v6.1/drivers/scsi/
Dscsi_netlink.c39 while (skb->len >= NLMSG_HDRLEN) { in scsi_nl_rcv_msg()
Dpmcraid.c1409 + NLMSG_HDRLEN); in pmcraid_notify_aen()
Dscsi_transport_iscsi.c4033 while (skb->len >= NLMSG_HDRLEN) { in iscsi_if_rx()
/Linux-v6.1/drivers/staging/gdm724x/
Dnetlink_k.c42 if (skb->len < NLMSG_HDRLEN) { in netlink_rcv_cb()
/Linux-v6.1/tools/lib/bpf/
Dnlattr.c83 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
/Linux-v6.1/net/xfrm/
Dxfrm_compat.c470 memcpy(dst, src, NLMSG_HDRLEN); in xfrm_xlate32()
471 dst->nlmsg_len = NLMSG_HDRLEN + xfrm_msg_min[type]; in xfrm_xlate32()
613 len += NLMSG_HDRLEN; in xfrm_user_rcv_msg_compat()
/Linux-v6.1/drivers/infiniband/core/
Dnetlink.c221 if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) in rdma_nl_rcv_skb()
/Linux-v6.1/include/linux/
Dnetlink.h213 #define NLMSG_DEFAULT_SIZE (NLMSG_GOODSIZE - NLMSG_HDRLEN)
/Linux-v6.1/lib/
Dkobject_uevent.c711 skb_pull(skbc, NLMSG_HDRLEN); in uevent_net_broadcast()
/Linux-v6.1/kernel/
Daudit.c2423 nlh->nlmsg_len = skb->len - NLMSG_HDRLEN; in audit_log_end()
/Linux-v6.1/net/sched/
Dact_api.c468 return NLMSG_HDRLEN /* struct nlmsghdr */ in tcf_action_full_attrs_size()
/Linux-v6.1/net/netlink/
Daf_netlink.c2529 if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) in netlink_rcv_skb()
/Linux-v6.1/security/selinux/
Dhooks.c5922 if (nlh->nlmsg_len < NLMSG_HDRLEN || nlh->nlmsg_len > data_len) in selinux_netlink_send()