Home
last modified time | relevance | path

Searched refs:nlmsg_len (Results 1 – 4 of 4) sorted by relevance

/include/uapi/linux/
Dnetlink.h45 __u32 nlmsg_len; /* Length of message including header */ member
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
99 (nlh)->nlmsg_len <= (len))
100 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
/include/net/
Dnetlink.h510 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() function
512 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
534 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
545 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
546 nlh->nlmsg_len <= remaining); in nlmsg_ok()
560 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
661 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) { in __nlmsg_parse()
805 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in nlmsg_validate_deprecated()
902 nlh->nlmsg_len = skb_tail_pointer(skb) - (unsigned char *)nlh; in nlmsg_end()
Drtnetlink.h25 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) in rtnl_msg_family()
Dgenetlink.h344 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()