* [PATCH 2.6 4/4]: ipt: convert jiffie values to USER_HZ when dumping
@ 2004-11-04 23:25 Patrick McHardy
2004-11-06 0:57 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2004-11-04 23:25 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, jamal
[-- Attachment #1: Type: text/plain, Size: 50 bytes --]
Convert jiffie values to USER_HZ in ipt action.
[-- Attachment #2: 4.diff --]
[-- Type: text/x-patch, Size: 1111 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/11/05 00:17:18+01:00 kaber@coreworks.de
# [PKT_SCHED]: ipt: convert jiffie values to USER_HZ when dumping
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/sched/ipt.c
# 2004/11/05 00:17:10+01:00 kaber@coreworks.de +3 -3
# [PKT_SCHED]: ipt: convert jiffie values to USER_HZ when dumping
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/sched/ipt.c b/net/sched/ipt.c
--- a/net/sched/ipt.c 2004-11-05 00:19:01 +01:00
+++ b/net/sched/ipt.c 2004-11-05 00:19:01 +01:00
@@ -334,9 +334,9 @@
RTA_PUT(skb, TCA_IPT_HOOK, 4, &p->hook);
RTA_PUT(skb, TCA_IPT_CNT, sizeof(struct tc_cnt), &c);
RTA_PUT(skb, TCA_IPT_TABLE, IFNAMSIZ, p->tname);
- tm.install = jiffies - p->tm.install;
- tm.lastuse = jiffies - p->tm.lastuse;
- tm.expires = p->tm.expires;
+ tm.install = jiffies_to_clock_t(jiffies - p->tm.install);
+ tm.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
+ tm.expires = jiffies_to_clock_t(p->tm.expires);
RTA_PUT(skb, TCA_IPT_TM, sizeof (tm), &tm);
return skb->len;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-06 0:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-04 23:25 [PATCH 2.6 4/4]: ipt: convert jiffie values to USER_HZ when dumping Patrick McHardy
2004-11-06 0:57 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).