Home | History | Annotate | Download | only in linux

Lines Matching full:len

78 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
80 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
81 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
83 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
85 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
87 (nlh)->nlmsg_len <= (len))
88 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
151 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
242 __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags)
245 int size = NLMSG_LENGTH(len);
254 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size);
258 #define NLMSG_NEW(skb, pid, seq, type, len, flags) \
259 ({ if (unlikely(skb_tailroom(skb) < (int)NLMSG_SPACE(len))) \
261 __nlmsg_put(skb, pid, seq, type, len, flags); })
263 #define NLMSG_PUT(skb, pid, seq, type, len) \
264 NLMSG_NEW(skb, pid, seq, type, len, 0)