Jan Engelhardt wrote:
On Friday 2008-06-13 12:59, Henrik Nordstrom wrote:
On fre, 2008-06-13 at 11:14 +0200, Jan Engelhardt wrote:
`iptables -nvL --lin`, starting with bb34082de, gives a wrong count:
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source
destination
2 0 0 LOG all -- * * 0.0.0.0/0
0.0.0.0/0 LOG flags 0 level 4
Sorry about that. Never tested --line-numbers.
I think the best fix is to drop the +1 from print_firewall(). Patch attached.
Indeed, that is the right thing to do, since with my patch,
iptables -nvL INPUT 1 would still show the 2nd rule.
Thanks, I applied Henrik's patch with your description.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html