Netfilter fixes for net
Subsystems (3)
Pablo Neira Ayuso
maintainercover Netfilter fixes for net
Hi David,
The following patchset contains two netfilter fixes:
1) Oneliner from Florian to dump missing NFT_CT_L3PROTOCOL netlink attribute, from Florian Westphal.
2) Another oneliner for nf_tables to use skb->protocol from the new netdev family, we can't assume ethernet there.
You can pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git
Thanks!
----------------------------------------------------------------
The following changes since commit 73796d8bf27372e26c2b79881947304c14c2d353:
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2015-12-17 14:05:22 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git HEAD
for you to fetch changes up to d5f79b6e4d169039903cc869e16e59ad861dd479:
netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key (2015-12-18 14:45:45 +0100)
----------------------------------------------------------------
Florian Westphal (1):
netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key
Pablo Neira Ayuso (1):
netfilter: nf_tables: use skb->protocol instead of assuming ethernet header
net/netfilter/nf_tables_netdev.c | 2 +- net/netfilter/nft_ct.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
Pablo Neira Ayuso
maintainerPATCH 1/2 netfilter: nf_tables: use skb->protocol instead of assuming ethernet header
Otherwise we may end up with incorrect network and transport header for other protocols.
--- net/netfilter/nf_tables_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_tables_netdev.c +1 -1
@@ -94,7 +94,7 @@ nft_do_chain_netdev(void *priv, struct sk_buff *skb, {struct nft_pktinfo pkt; -switch (eth_hdr (skb)->h_proto) { +switch (skb->protocol) {case htons (ETH_P_IP ):nft_netdev_set_pktinfo_ipv4 (&pkt, skb, state);break ;
Signature · 1 line
2.1.4
Pablo Neira Ayuso
maintainerPATCH 2/2 netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key
In reply to Pablo Neira AyusoFrom: Florian Westphal <[email protected]>
one nft userspace test case fails with
'ct l3proto original ipv4' mismatches 'ct l3proto ipv4'
... because NFTA_CT_DIRECTION attr is missing.
--- net/netfilter/nft_ct.c | 1 + 1 file changed, 1 insertion(+)
net/netfilter/nft_ct.c +1 -0
@@ -366,6 +366,7 @@ static int nft_ct_get_dump(struct sk_buff *skb, const struct nft_expr *expr) goto nla_put_failure;switch (priv->key) { +case NFT_CT_L3PROTOCOL :case NFT_CT_PROTOCOL :case NFT_CT_SRC :case NFT_CT_DST :
Signature · 1 line
2.1.4
David Miller
maintainerFrom: Pablo Neira Ayuso <[email protected]>
Date: Tue, 22 Dec 2015 18:53:15 +0100
Quoted 11 lines
The following patchset contains two netfilter fixes:
1) Oneliner from Florian to dump missing
NFT_CT_L3PROTOCOLnetlink attribute, from Florian Westphal.2) Another oneliner for
nf_tablesto useskb->protocolfrom the new netdev family, we can't assume ethernet there.You can pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git
Pulled, thanks Pablo.