]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
netfilter: remove forward module param confusion.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Mar 2012 12:27:06 +0000 (12:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2012 02:36:17 +0000 (22:36 -0400)
commit523f610e1be2a4afca605962e137064378883c5f
tree82923297355fccb70a03c5d2108bc5a6030212a2
parent5d5440a835710d09f0ef18da5000541ec98b537a
netfilter: remove forward module param confusion.

It used to be an int, and it got changed to a bool parameter at least
7 years ago.  It happens that NF_ACCEPT and NF_DROP are 0 and 1, so
this works, but it's unclear, and the check that it's in range is not
required.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/iptable_filter.c
net/ipv6/netfilter/ip6table_filter.c