Searched refs:nlh (Results 1 – 2 of 2) sorted by relevance
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0))) argument54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument56 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \59 (int) (nlh)->nlmsg_len <= (len))60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
329 struct nlmsghdr *nlh = (struct nlmsghdr *) err - 1; in error_handler() local330 int len = nlh->nlmsg_len; in error_handler()334 int ack_len = sizeof(*nlh) + sizeof(int) + sizeof(*nlh); in error_handler()338 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) in error_handler()341 if (!(nlh->nlmsg_flags & NLM_F_CAPPED)) in error_handler()342 ack_len += err->msg.nlmsg_len - sizeof(*nlh); in error_handler()347 attrs = (void *) ((unsigned char *) nlh + ack_len); in error_handler()