diff options
-rw-r--r-- | net/netfilter/Kconfig | 2 | ||||
-rw-r--r-- | net/netfilter/nf_tables_api.c | 2 | ||||
-rw-r--r-- | net/netfilter/nft_ct.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index afe50c0f526f..c37467562fd0 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig | |||
@@ -429,7 +429,7 @@ config NF_TABLES | |||
429 | To compile it as a module, choose M here. | 429 | To compile it as a module, choose M here. |
430 | 430 | ||
431 | config NF_TABLES_INET | 431 | config NF_TABLES_INET |
432 | depends on NF_TABLES | 432 | depends on NF_TABLES && IPV6 |
433 | select NF_TABLES_IPV4 | 433 | select NF_TABLES_IPV4 |
434 | select NF_TABLES_IPV6 | 434 | select NF_TABLES_IPV6 |
435 | tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support" | 435 | tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support" |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 36add31e08e7..117bbaaddde6 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c | |||
@@ -859,7 +859,7 @@ static int nf_tables_newchain(struct sock *nlsk, struct sk_buff *skb, | |||
859 | nla[NFTA_CHAIN_HOOK] == NULL) | 859 | nla[NFTA_CHAIN_HOOK] == NULL) |
860 | return -EOPNOTSUPP; | 860 | return -EOPNOTSUPP; |
861 | 861 | ||
862 | policy = nla_get_be32(nla[NFTA_CHAIN_POLICY]); | 862 | policy = ntohl(nla_get_be32(nla[NFTA_CHAIN_POLICY])); |
863 | switch (policy) { | 863 | switch (policy) { |
864 | case NF_DROP: | 864 | case NF_DROP: |
865 | case NF_ACCEPT: | 865 | case NF_ACCEPT: |
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index c7c12858e113..917052e20602 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c | |||
@@ -133,7 +133,9 @@ static void nft_ct_set_eval(const struct nft_expr *expr, | |||
133 | { | 133 | { |
134 | const struct nft_ct *priv = nft_expr_priv(expr); | 134 | const struct nft_ct *priv = nft_expr_priv(expr); |
135 | struct sk_buff *skb = pkt->skb; | 135 | struct sk_buff *skb = pkt->skb; |
136 | #ifdef CONFIG_NF_CONNTRACK_MARK | ||
136 | u32 value = data[priv->sreg].data[0]; | 137 | u32 value = data[priv->sreg].data[0]; |
138 | #endif | ||
137 | enum ip_conntrack_info ctinfo; | 139 | enum ip_conntrack_info ctinfo; |
138 | struct nf_conn *ct; | 140 | struct nf_conn *ct; |
139 | 141 | ||