Home
last modified time | relevance | path

Searched refs:nlmsg_len (Results 1 – 22 of 22) sorted by relevance

/linux-2.4.37.9/include/linux/
Dnetlink.h28 __u32 nlmsg_len; /* Length of message including header */ member
68 #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()
/linux-2.4.37.9/net/core/
Drtnetlink.c197 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()
Dwireless.c901 nlh->nlmsg_len = skb->tail - b; in rtnetlink_fill_iwinfo()
Dneighbour.c1501 nlh->nlmsg_len = skb->tail - b; in neigh_fill_info()
/linux-2.4.37.9/net/ipv4/
Dtcp_diag.c99 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()
Dipmr.c301 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()
Dfib_semantics.c704 nlh->nlmsg_len = skb->tail - b; in fib_dump_info()
751 nl->nlmsg_len = NLMSG_LENGTH(sizeof(*rtm)); in fib_convert_rtentry()
Dfib_rules.c436 nlh->nlmsg_len = skb->tail - b; in inet_fill_rule()
Dfib_frontend.c437 req.nlh.nlmsg_len = sizeof(req); in fib_magic()
Ddevinet.c998 nlh->nlmsg_len = skb->tail - b; in inet_fill_ifaddr()
Droute.c2190 nlh->nlmsg_len = skb->tail - b; in rt_fill_info()
/linux-2.4.37.9/net/sched/
Dcls_api.c307 nlh->nlmsg_len = skb->tail - b; in tcf_fill_node()
361 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm))) in tc_dump_tfilter()
Dsch_api.c761 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()
/linux-2.4.37.9/net/ipv4/netfilter/
Dip_queue.c260 nlh->nlmsg_len = skb->tail - old_tail; in ipq_build_packet_message()
485 nlmsglen = nlh->nlmsg_len; in ipq_rcv_skb()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6_queue.c266 nlh->nlmsg_len = skb->tail - old_tail; in ipq_build_packet_message()
489 nlmsglen = nlh->nlmsg_len; in ipq_rcv_skb()
/linux-2.4.37.9/net/decnet/
Ddn_rules.c333 nlh->nlmsg_len = skb->tail - b; in dn_fib_fill_rule()
Ddn_table.c321 nlh->nlmsg_len = skb->tail - b; in dn_fib_dump_info()
Ddn_dev.c588 nlh->nlmsg_len = skb->tail - b; in dn_dev_fill_ifaddr()
Ddn_route.c1057 nlh->nlmsg_len = skb->tail - b; in dn_rt_fill_info()
/linux-2.4.37.9/net/netlink/
Daf_netlink.c1060 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()
/linux-2.4.37.9/net/ipv6/
Droute.c1659 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()
Daddrconf.c1922 nlh->nlmsg_len = skb->tail - b; in inet6_fill_ifaddr()
2049 nlh->nlmsg_len = skb->tail - b; in inet6_fill_ifinfo()