Searched refs:rta_len (Results 1 – 25 of 28) sorted by relevance
12
59 unsigned short rta_len; member68 (rta)->rta_len >= sizeof(struct rtattr) && \69 (rta)->rta_len <= (len))70 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \71 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))75 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))572 return len > rta->rta_len || memcmp(RTA_DATA(rta), str, len); in rtattr_strcmp()
701 mp_head->rta_len = skb->tail - (u8*)mp_head; in fib_dump_info()829 mx->rta_len = RTA_LENGTH(0); in fib_convert_rtentry()831 rec = (void*)((char*)mx + RTA_ALIGN(mx->rta_len)); in fib_convert_rtentry()833 rec->rta_len = RTA_LENGTH(4); in fib_convert_rtentry()834 mx->rta_len += RTA_LENGTH(4); in fib_convert_rtentry()838 rec = (void*)((char*)mx + RTA_ALIGN(mx->rta_len)); in fib_convert_rtentry()840 rec->rta_len = RTA_LENGTH(4); in fib_convert_rtentry()841 mx->rta_len += RTA_LENGTH(4); in fib_convert_rtentry()845 rec = (void*)((char*)mx + RTA_ALIGN(mx->rta_len)); in fib_convert_rtentry()847 rec->rta_len = RTA_LENGTH(4); in fib_convert_rtentry()[all …]
41 rta->rta_len = rtalen; \582 rta->rta_len < 8 || in tcpdiag_rcv_msg()583 rta->rta_len > nlh->nlmsg_len - NLMSG_SPACE(sizeof(struct tcpdiagreq))) in tcpdiag_rcv_msg()
114 rta->rta_len = size; in __rta_fill()142 mx->rta_len = skb->tail - (u8*)mx; in rtnetlink_put_metrics()143 if (mx->rta_len == RTA_LENGTH(0)) in rtnetlink_put_metrics()
1367 nda[NDA_DST-1]->rta_len != RTA_LENGTH(tbl->key_len)) in neigh_delete()1420 nda[NDA_DST-1]->rta_len != RTA_LENGTH(tbl->key_len)) in neigh_add()1432 nda[NDA_LLADDR-1]->rta_len != RTA_LENGTH(dev->addr_len)) in neigh_add()
335 p_rta->rta_len = skb->tail - (u8*)p_rta; in fw_dump()339 rta->rta_len = skb->tail - b; in fw_dump()
151 if (opt->rta_len < RTA_LENGTH(sizeof(*ctl))) in fifo_init()
285 rta->rta_len = RTA_LENGTH(sizeof(struct tc_fifo_qopt)); in tbf_create_dflt_qdisc()426 rta->rta_len = skb->tail - b; in tbf_dump()
407 rta->rta_len = skb->tail-b; in dsmark_dump_class()431 rta->rta_len = skb->tail-b; in dsmark_dump()
477 p_rta->rta_len = skb->tail-(u8 *) p_rta; in tcindex_dump()481 rta->rta_len = skb->tail-b; in tcindex_dump()
315 rta->rta_len = RTA_LENGTH(sizeof(struct tc_fifo_qopt)); in set_fifo_limit()479 rta->rta_len = skb->tail - b; in netem_dump()
591 p_rta->rta_len = skb->tail - (u8*)p_rta; in route4_dump()595 rta->rta_len = skb->tail - b; in route4_dump()
329 rta->rta_len = skb->tail - b; in ingress_dump()
656 p_rta->rta_len = skb->tail - (u8*)p_rta; in rsvp_dump()660 rta->rta_len = skb->tail - b; in rsvp_dump()
677 p_rta->rta_len = skb->tail - (u8*)p_rta; in u32_dump()682 rta->rta_len = skb->tail - b; in u32_dump()
432 rta->rta_len = skb->tail - b; in red_dump()
817 rta->rta_len = skb->tail - b; in csz_dump()974 rta->rta_len = skb->tail - b; in csz_dump_class()
181 if (opt->rta_len < RTA_LENGTH(sizeof(*qopt))) in prio_tune()
388 if (opt->rta_len < RTA_LENGTH(sizeof(*ctl))) in sfq_change()
655 rta->rta_len = skb->tail-b; in atm_tc_dump_class()
581 rta->rta_len = skb->tail - b; in gred_dump()
1289 rta->rta_len = skb->tail - b; in htb_dump()1329 rta->rta_len = skb->tail - b; in htb_dump_class()
1603 rta->rta_len = skb->tail - b; in cbq_dump()1638 rta->rta_len = skb->tail - b; in cbq_dump_class()
1525 if (rta[RTA_GATEWAY-1]->rta_len != RTA_LENGTH(16)) in inet6_rtm_to_rtmsg()1541 if (rta[RTA_OIF-1]->rta_len != RTA_LENGTH(sizeof(int))) in inet6_rtm_to_rtmsg()1546 if (rta[RTA_PRIORITY-1]->rta_len != RTA_LENGTH(4)) in inet6_rtm_to_rtmsg()
318 mp_head->rta_len = skb->tail - (u8*)mp_head; in dn_fib_dump_info()