[NETFILTER]: packet counter of conntrack is 32bits
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Wed, 9 Nov 2005 20:58:05 +0000 (12:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2005 20:58:05 +0000 (12:58 -0800)
The packet counter variable of conntrack was changed to 32bits from 64bits.
This follows that change.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_netlink.c

index 82a65043a8ef6a0c1b900a2ef5f282a12e7428ee..431a446994f6bcd6a10b01a61271f3cc0a484c2b 100644 (file)
@@ -175,7 +175,7 @@ ctnetlink_dump_counters(struct sk_buff *skb, const struct ip_conntrack *ct,
 {
        enum ctattr_type type = dir ? CTA_COUNTERS_REPLY: CTA_COUNTERS_ORIG;
        struct nfattr *nest_count = NFA_NEST(skb, type);
-       u_int64_t tmp;
+       u_int32_t tmp;
 
        tmp = htonl(ct->counters[dir].packets);
        NFA_PUT(skb, CTA_COUNTERS32_PACKETS, sizeof(u_int32_t), &tmp);