diff options
Diffstat (limited to 'net/sched/cls_route.c')
-rw-r--r-- | net/sched/cls_route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index 1ce1f3623d65..7752586e918d 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c | |||
@@ -565,17 +565,17 @@ static int route4_dump(struct tcf_proto *tp, unsigned long fh, | |||
565 | 565 | ||
566 | if (!(f->handle&0x8000)) { | 566 | if (!(f->handle&0x8000)) { |
567 | id = f->id&0xFF; | 567 | id = f->id&0xFF; |
568 | NLA_PUT(skb, TCA_ROUTE4_TO, sizeof(id), &id); | 568 | NLA_PUT_U32(skb, TCA_ROUTE4_TO, id); |
569 | } | 569 | } |
570 | if (f->handle&0x80000000) { | 570 | if (f->handle&0x80000000) { |
571 | if ((f->handle>>16) != 0xFFFF) | 571 | if ((f->handle>>16) != 0xFFFF) |
572 | NLA_PUT(skb, TCA_ROUTE4_IIF, sizeof(f->iif), &f->iif); | 572 | NLA_PUT_U32(skb, TCA_ROUTE4_IIF, f->iif); |
573 | } else { | 573 | } else { |
574 | id = f->id>>16; | 574 | id = f->id>>16; |
575 | NLA_PUT(skb, TCA_ROUTE4_FROM, sizeof(id), &id); | 575 | NLA_PUT_U32(skb, TCA_ROUTE4_FROM, id); |
576 | } | 576 | } |
577 | if (f->res.classid) | 577 | if (f->res.classid) |
578 | NLA_PUT(skb, TCA_ROUTE4_CLASSID, 4, &f->res.classid); | 578 | NLA_PUT_U32(skb, TCA_ROUTE4_CLASSID, f->res.classid); |
579 | 579 | ||
580 | if (tcf_exts_dump(skb, &f->exts, &route_ext_map) < 0) | 580 | if (tcf_exts_dump(skb, &f->exts, &route_ext_map) < 0) |
581 | goto nla_put_failure; | 581 | goto nla_put_failure; |