Netfilter updates for net-next
Subsystems (3)
Pablo Neira Ayuso
maintainercover Netfilter updates for net-next
Hi David,
This small batch contains several Netfilter fixes for your net-next tree, more specifically:
* Fix compilation warning in nft_ct in NF_CONNTRACK_MARK is not set, from Kristian Evensen.
* Add dependency to IPV6 for NF_TABLES_INET. This one has been reported by the several robots that are testing .config combinations, from Paul Gortmaker.
* Fix default base chain policy setting in nf_tables, from myself.
You can pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
Thanks!
----------------------------------------------------------------
The following changes since commit 11b57f90257c1d6a91cee720151b69e0c2020cf6:
xen-netback: stop vif thread spinning if frontend is unresponsive (2014-01-09 23:05:46 -0500)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
for you to fetch changes up to 847c8e2959f7f8f1462e33c0a720c6267b984ed8:
netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set (2014-01-15 11:00:14 +0100)
----------------------------------------------------------------
Kristian Evensen (1):
netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set
Pablo Neira Ayuso (1):
netfilter: nf_tables: fix missing byteorder conversion in policy
Paul Gortmaker (1):
netfilter: Add dependency on IPV6 for NF_TABLES_INET
net/netfilter/Kconfig | 2 +- net/netfilter/nf_tables_api.c | 2 +- net/netfilter/nft_ct.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-)
Pablo Neira Ayuso
maintainerPATCH 1/3 netfilter: nf_tables: fix missing byteorder conversion in policy
When fetching the policy attribute, the byteorder conversion was missing, breaking the chain policy setting.
--- net/netfilter/nf_tables_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_tables_api.c +1 -1
@@ -859,7 +859,7 @@ static int nf_tables_newchain(struct sock *nlsk, struct sk_buff *skb, nla[NFTA_CHAIN_HOOK] == NULL)return -EOPNOTSUPP ; - policy =nla_get_be32 (nla[NFTA_CHAIN_POLICY ]); + policy =ntohl (nla_get_be32 (nla[NFTA_CHAIN_POLICY ]));switch (policy) {case NF_DROP :case NF_ACCEPT :
Signature · 1 line
1.7.10.4
Pablo Neira Ayuso
maintainerPATCH 2/3 netfilter: Add dependency on IPV6 for NF_TABLES_INET
In reply to Pablo Neira AyusoFrom: Paul Gortmaker <[email protected]>
Commit 1d49144c0aa ("netfilter: nf_tables: add "inet" table for IPv4/IPv6") allows creation of non-IPV6 enabled .config files that will fail to configure/link as follows:
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES) net/built-in.o: In function `nft_reject_eval':
nft_reject.c:(.text+0x651e8): undefined reference to `nf_ip6_checksum'
nft_reject.c:(.text+0x65270): undefined reference to `ip6_route_output'
nft_reject.c:(.text+0x656c4): undefined reference to `ip6_dst_hoplimit'
make: *** [vmlinux] Error 1
Since the feature is to allow for a mixed IPV4 and IPV6 table, it seems sensible to make it depend on IPV6.
--- net/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/Kconfig +1 -1
@@ -429,7 +429,7 @@ config NF_TABLES To compile it as a module, choose M here. config NF_TABLES_INET - depends on NF_TABLES + depends on NF_TABLES && IPV6 select NF_TABLES_IPV4 select NF_TABLES_IPV6 tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
Signature · 1 line
1.7.10.4
Pablo Neira Ayuso
maintainerPATCH 3/3 netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set
In reply to Pablo Neira AyusoFrom: Kristian Evensen <[email protected]>
net/netfilter/nft_ct.c: In function 'nft_ct_set_eval':net/netfilter/nft_ct.c:136:6: warning: unused variable 'value' [-Wunused-variable]
--- net/netfilter/nft_ct.c | 2 ++ 1 file changed, 2 insertions(+)
net/netfilter/nft_ct.c +2 -0
@@ -133,7 +133,9 @@ static void nft_ct_set_eval(const struct nft_expr *expr, {const struct nft_ct *priv =nft_expr_priv (expr);struct sk_buff *skb = pkt->skb; +#ifdef CONFIG_NF_CONNTRACK_MARK u32 value = data[priv->sreg].data[0 ]; +#endif enum ip_conntrack_info ctinfo;struct nf_conn *ct;
Signature · 1 line
1.7.10.4
David Miller
maintainerFrom: Pablo Neira Ayuso <[email protected]>
Date: Thu, 16 Jan 2014 10:04:50 +0100
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
I think you didn't push your changes there:
git pull --no-ff git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
Quoted 1 line
From
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
* branch HEAD -> FETCH_HEAD
Already up-to-date.