diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-23 23:34:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:20 -0500 |
commit | 24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (patch) | |
tree | eb1be7e7d8b3f0f3375bf0d12fd26851e518d9ca /net/sched/cls_u32.c | |
parent | 57e1c487a4f5754cb77abeb00adb21faa88c484f (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_u32.c')
-rw-r--r-- | net/sched/cls_u32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 7a1502553b30..326711eb593c 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c | |||
@@ -708,19 +708,19 @@ static int u32_dump(struct tcf_proto *tp, unsigned long fh, | |||
708 | if (TC_U32_KEY(n->handle) == 0) { | 708 | if (TC_U32_KEY(n->handle) == 0) { |
709 | struct tc_u_hnode *ht = (struct tc_u_hnode*)fh; | 709 | struct tc_u_hnode *ht = (struct tc_u_hnode*)fh; |
710 | u32 divisor = ht->divisor+1; | 710 | u32 divisor = ht->divisor+1; |
711 | NLA_PUT(skb, TCA_U32_DIVISOR, 4, &divisor); | 711 | NLA_PUT_U32(skb, TCA_U32_DIVISOR, divisor); |
712 | } else { | 712 | } else { |
713 | NLA_PUT(skb, TCA_U32_SEL, | 713 | NLA_PUT(skb, TCA_U32_SEL, |
714 | sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key), | 714 | sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key), |
715 | &n->sel); | 715 | &n->sel); |
716 | if (n->ht_up) { | 716 | if (n->ht_up) { |
717 | u32 htid = n->handle & 0xFFFFF000; | 717 | u32 htid = n->handle & 0xFFFFF000; |
718 | NLA_PUT(skb, TCA_U32_HASH, 4, &htid); | 718 | NLA_PUT_U32(skb, TCA_U32_HASH, htid); |
719 | } | 719 | } |
720 | if (n->res.classid) | 720 | if (n->res.classid) |
721 | NLA_PUT(skb, TCA_U32_CLASSID, 4, &n->res.classid); | 721 | NLA_PUT_U32(skb, TCA_U32_CLASSID, n->res.classid); |
722 | if (n->ht_down) | 722 | if (n->ht_down) |
723 | NLA_PUT(skb, TCA_U32_LINK, 4, &n->ht_down->handle); | 723 | NLA_PUT_U32(skb, TCA_U32_LINK, n->ht_down->handle); |
724 | 724 | ||
725 | #ifdef CONFIG_CLS_U32_MARK | 725 | #ifdef CONFIG_CLS_U32_MARK |
726 | if (n->mark.val || n->mark.mask) | 726 | if (n->mark.val || n->mark.mask) |