Searched refs:NLMSG_HDRLEN (Results 1 – 20 of 20) sorted by relevance
100 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro101 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)103 #define NLMSG_DATA(nlh) ((void *)(((char *)nlh) + NLMSG_HDRLEN))
371 NLMSG_HDRLEN); in genlmsg_nlhdr()452 nlmsg_end(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_end()463 nlmsg_cancel(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_cancel()578 NLMSG_HDRLEN); in genlmsg_len()579 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
571 return NLMSG_HDRLEN + payload; in nlmsg_msg_size()598 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data()607 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
145 nlh->nlmsg_len = NLMSG_HDRLEN; in ynl_nlmsg_put_header()152 return nlh->nlmsg_len - NLMSG_HDRLEN; in ynl_nlmsg_data_len()157 return (unsigned char *)nlh + NLMSG_HDRLEN; in ynl_nlmsg_data()163 return (unsigned char *)nlh + NLMSG_HDRLEN + offset; in ynl_nlmsg_data_offset()204 NLMSG_HDRLEN + fixed_hdr_sz); attr; \
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
145 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback()203 if (skb->len >= NLMSG_HDRLEN) { in cn_rx_skb()
449 if (nlh->nlmsg_len < NLMSG_HDRLEN || in nfnetlink_rcv_batch()627 if (skb->len < NLMSG_HDRLEN + sizeof(struct nfgenmsg)) in nfnetlink_rcv_skb_batch()654 if (skb->len < NLMSG_HDRLEN || in nfnetlink_rcv()655 nlh->nlmsg_len < NLMSG_HDRLEN || in nfnetlink_rcv()
39 while (skb->len >= NLMSG_HDRLEN) { in scsi_nl_rcv_msg()
1412 + NLMSG_HDRLEN); in pmcraid_notify_aen()
4081 while (skb->len >= NLMSG_HDRLEN) { in iscsi_if_rx()
42 if (skb->len < NLMSG_HDRLEN) { in netlink_rcv_cb()
83 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
477 memcpy(dst, src, NLMSG_HDRLEN); in xfrm_xlate32()478 dst->nlmsg_len = NLMSG_HDRLEN + xfrm_msg_min[type]; in xfrm_xlate32()620 len += NLMSG_HDRLEN; in xfrm_user_rcv_msg_compat()
221 if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) in rdma_nl_rcv_skb()
276 #define NLMSG_DEFAULT_SIZE (NLMSG_GOODSIZE - NLMSG_HDRLEN)
726 skb_pull(skbc, NLMSG_HDRLEN); in uevent_net_broadcast()
2437 nlh->nlmsg_len = skb->len - NLMSG_HDRLEN; in audit_log_end()
462 return NLMSG_HDRLEN /* struct nlmsghdr */ in tcf_action_full_attrs_size()
2525 if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len) in netlink_rcv_skb()
5943 if (nlh->nlmsg_len < NLMSG_HDRLEN || nlh->nlmsg_len > data_len) in selinux_netlink_send()