netfilter: nf_tables: use skb->protocol instead of assuming ethernet header
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2015 20:29:16 +0000 (21:29 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 18 Dec 2015 13:45:45 +0000 (14:45 +0100)
commitaa47e42c60dfa31f81a3fe357451acfe1a12ca1e
treefcb1deb5a05a5b414695d7a6c4b888c4bade48c6
parent73796d8bf27372e26c2b79881947304c14c2d353
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.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_netdev.c