aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_police.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/act_police.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/act_police.c')
-rw-r--r--net/sched/act_police.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sched/act_police.c b/net/sched/act_police.c
index ee2f1b64dd70..79db6bb8a5fd 100644
--- a/net/sched/act_police.c
+++ b/net/sched/act_police.c
@@ -339,10 +339,9 @@ tcf_act_police_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
339 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); 339 memset(&opt.peakrate, 0, sizeof(opt.peakrate));
340 NLA_PUT(skb, TCA_POLICE_TBF, sizeof(opt), &opt); 340 NLA_PUT(skb, TCA_POLICE_TBF, sizeof(opt), &opt);
341 if (police->tcfp_result) 341 if (police->tcfp_result)
342 NLA_PUT(skb, TCA_POLICE_RESULT, sizeof(int), 342 NLA_PUT_U32(skb, TCA_POLICE_RESULT, police->tcfp_result);
343 &police->tcfp_result);
344 if (police->tcfp_ewma_rate) 343 if (police->tcfp_ewma_rate)
345 NLA_PUT(skb, TCA_POLICE_AVRATE, 4, &police->tcfp_ewma_rate); 344 NLA_PUT_U32(skb, TCA_POLICE_AVRATE, police->tcfp_ewma_rate);
346 return skb->len; 345 return skb->len;
347 346
348nla_put_failure: 347nla_put_failure: