Searched refs:nlmsg_len (Results 1 – 22 of 22) sorted by relevance
28 __u32 nlmsg_len; /* Length of message including header */ member68 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \69 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))71 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \72 (nlh)->nlmsg_len <= (len))73 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))149 nlh->nlmsg_len = size; in __nlmsg_put()
197 nlh->nlmsg_len = skb->tail - b; in rtnetlink_fill_ifinfo()304 if (nlh->nlmsg_len < NLMSG_LENGTH(sizeof(struct rtgenmsg))) in rtnetlink_rcv_msg()340 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in rtnetlink_rcv_msg()358 if (nlh->nlmsg_len < min_len) in rtnetlink_rcv_msg()361 if (nlh->nlmsg_len > min_len) { in rtnetlink_rcv_msg()362 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); in rtnetlink_rcv_msg()408 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) in rtnetlink_rcv_skb()410 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in rtnetlink_rcv_skb()
901 nlh->nlmsg_len = skb->tail - b; in rtnetlink_fill_iwinfo()
1501 nlh->nlmsg_len = skb->tail - b; in neigh_fill_info()
99 nlh->nlmsg_len = skb->tail - b; in tcpdiag_fill()208 nlh->nlmsg_len = skb->tail - b; in tcpdiag_fill()454 if (cb->nlh->nlmsg_len > 4+NLMSG_SPACE(sizeof(struct tcpdiagreq))) in tcpdiag_dump()579 if (nlh->nlmsg_len > 4 + NLMSG_SPACE(sizeof(struct tcpdiagreq))) { in tcpdiag_rcv_msg()583 rta->rta_len > nlh->nlmsg_len - NLMSG_SPACE(sizeof(struct tcpdiagreq))) in tcpdiag_rcv_msg()607 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) in tcpdiag_rcv_skb()
301 nlh->nlmsg_len = NLMSG_LENGTH(sizeof(struct nlmsgerr)); in ipmr_destroy_unres()302 skb_trim(skb, nlh->nlmsg_len); in ipmr_destroy_unres()511 nlh->nlmsg_len = skb->tail - (u8*)nlh; in ipmr_cache_resolve()514 nlh->nlmsg_len = NLMSG_LENGTH(sizeof(struct nlmsgerr)); in ipmr_cache_resolve()515 skb_trim(skb, nlh->nlmsg_len); in ipmr_cache_resolve()
704 nlh->nlmsg_len = skb->tail - b; in fib_dump_info()751 nl->nlmsg_len = NLMSG_LENGTH(sizeof(*rtm)); in fib_convert_rtentry()
436 nlh->nlmsg_len = skb->tail - b; in inet_fill_rule()
437 req.nlh.nlmsg_len = sizeof(req); in fib_magic()
998 nlh->nlmsg_len = skb->tail - b; in inet_fill_ifaddr()
2190 nlh->nlmsg_len = skb->tail - b; in rt_fill_info()
307 nlh->nlmsg_len = skb->tail - b; in tcf_fill_node()361 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm))) in tc_dump_tfilter()
761 nlh->nlmsg_len = skb->tail - b; in tc_fill_qdisc()980 nlh->nlmsg_len = skb->tail - b; in tc_fill_tclass()1031 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm))) in tc_dump_tclass()
260 nlh->nlmsg_len = skb->tail - old_tail; in ipq_build_packet_message()485 nlmsglen = nlh->nlmsg_len; in ipq_rcv_skb()
266 nlh->nlmsg_len = skb->tail - old_tail; in ipq_build_packet_message()489 nlmsglen = nlh->nlmsg_len; in ipq_rcv_skb()
333 nlh->nlmsg_len = skb->tail - b; in dn_fib_fill_rule()
321 nlh->nlmsg_len = skb->tail - b; in dn_fib_dump_info()
588 nlh->nlmsg_len = skb->tail - b; in dn_dev_fill_ifaddr()
1057 nlh->nlmsg_len = skb->tail - b; in dn_rt_fill_info()
1060 size = NLMSG_SPACE(4 + NLMSG_ALIGN(nlh->nlmsg_len)); in netlink_ack()1079 memcpy(&errmsg->msg, nlh, err ? nlh->nlmsg_len : sizeof(struct nlmsghdr)); in netlink_ack()
1659 nlh->nlmsg_len = skb->tail - b; in rt6_fill_node()1673 if (arg->cb->nlh->nlmsg_len >= NLMSG_LENGTH(sizeof(struct rtmsg))) { in rt6_dump_route()
1922 nlh->nlmsg_len = skb->tail - b; in inet6_fill_ifaddr()2049 nlh->nlmsg_len = skb->tail - b; in inet6_fill_ifinfo()