diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-23 23:34:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:19 -0500 |
commit | 57e1c487a4f5754cb77abeb00adb21faa88c484f (patch) | |
tree | e9fdf7529f3992b761648a850d68ad76b5856eab /net/sched/act_ipt.c | |
parent | 4b3550ef530cfc153fa91f0b37cbda448bad11c6 (diff) |
[NET_SCHED]: Use NLA_PUT_STRING for string dumping
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ipt.c')
-rw-r--r-- | net/sched/act_ipt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 12693347d56a..ecda51da9c14 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
@@ -257,7 +257,7 @@ static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, int | |||
257 | NLA_PUT(skb, TCA_IPT_INDEX, 4, &ipt->tcf_index); | 257 | NLA_PUT(skb, TCA_IPT_INDEX, 4, &ipt->tcf_index); |
258 | NLA_PUT(skb, TCA_IPT_HOOK, 4, &ipt->tcfi_hook); | 258 | NLA_PUT(skb, TCA_IPT_HOOK, 4, &ipt->tcfi_hook); |
259 | NLA_PUT(skb, TCA_IPT_CNT, sizeof(struct tc_cnt), &c); | 259 | NLA_PUT(skb, TCA_IPT_CNT, sizeof(struct tc_cnt), &c); |
260 | NLA_PUT(skb, TCA_IPT_TABLE, IFNAMSIZ, ipt->tcfi_tname); | 260 | NLA_PUT_STRING(skb, TCA_IPT_TABLE, ipt->tcfi_tname); |
261 | tm.install = jiffies_to_clock_t(jiffies - ipt->tcf_tm.install); | 261 | tm.install = jiffies_to_clock_t(jiffies - ipt->tcf_tm.install); |
262 | tm.lastuse = jiffies_to_clock_t(jiffies - ipt->tcf_tm.lastuse); | 262 | tm.lastuse = jiffies_to_clock_t(jiffies - ipt->tcf_tm.lastuse); |
263 | tm.expires = jiffies_to_clock_t(ipt->tcf_tm.expires); | 263 | tm.expires = jiffies_to_clock_t(ipt->tcf_tm.expires); |