Lines Matching refs:nlh
78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
186 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err);
223 const struct nlmsghdr *nlh;
240 struct nlmsghdr *nlh;
243 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size));
244 nlh->nlmsg_type = type;
245 nlh->nlmsg_len = size;
246 nlh->nlmsg_flags = flags;
247 nlh->nlmsg_pid = pid;
248 nlh->nlmsg_seq = seq;
250 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size);
251 return nlh;
263 const struct nlmsghdr *nlh,