aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_route.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-23 23:34:48 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:11:20 -0500
commit24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (patch)
treeeb1be7e7d8b3f0f3375bf0d12fd26851e518d9ca /net/sched/cls_route.c
parent57e1c487a4f5754cb77abeb00adb21faa88c484f (diff)
[NET_SCHED]: Use typeful attribute construction helpers
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_route.c')
-rw-r--r--net/sched/cls_route.c8
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;