]> git.baikalelectronics.ru Git - 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)
commit4c2abc37d8be0e72b858d0d83e1571384b169f5c
tree82923297355fccb70a03c5d2108bc5a6030212a2
parent60e8cef8fd7ccdd70101643f4a4403fc19cc4445
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