netfilter: ctnetlink: Make some parameters integer to avoid enum mismatch
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 19 Apr 2017 18:39:20 +0000 (11:39 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:43 +0000 (21:13 +0000)
commit6c2c994fbbaceaa267d80a9c9dbfca92f41881c3
tree74ebef4c1d9947d323cad3f2feea1b465fa17a72
parent7b286b3d551b858be31b94e520d98b0728de634d
netfilter: ctnetlink: Make some parameters integer to avoid enum mismatch

commit a2b7cbdd2559aff06cebc28a7150f81c307a90d3 upstream.

Not all parameters passed to ctnetlink_parse_tuple() and
ctnetlink_exp_dump_tuple() match the enum type in the signatures of these
functions. Since this is intended change the argument type of to be an
unsigned integer value.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[natechancellor: ctnetlink_exp_dump_tuple is still inline]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_conntrack_netlink.c