Lines Matching refs:nlh
80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
85 (nlh)->nlmsg_len <= (len))
86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
184 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err);
221 const struct nlmsghdr *nlh; member
238 struct nlmsghdr *nlh; in __nlmsg_put() local
241 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put()
242 nlh->nlmsg_type = type; in __nlmsg_put()
243 nlh->nlmsg_len = size; in __nlmsg_put()
244 nlh->nlmsg_flags = flags; in __nlmsg_put()
245 nlh->nlmsg_pid = pid; in __nlmsg_put()
246 nlh->nlmsg_seq = seq; in __nlmsg_put()
248 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put()
249 return nlh; in __nlmsg_put()
261 const struct nlmsghdr *nlh,