netfilter: nfnetlink_queue: fix missing HW protocol
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jun 2013 16:42:00 +0000 (18:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jun 2013 16:55:20 +0000 (18:55 +0200)
commit7b8dfe289fdde0066be343a3e0271ad6d7b6dbcf
treecefeec4325e9020b28e5e076b072e15f9ed9ed45
parent409b545ac10d9548929557a75ad86540f59a2c83
netfilter: nfnetlink_queue: fix missing HW protocol

Locally generated IPv4 and IPv6 traffic gets skb->protocol unset,
thus passing zero.

ip6tables -I OUTPUT -j NFQUEUE
libmnl/examples/netfilter# ./nf-queue 0 &
ping6 ::1
packet received (id=1 hw=0x0000 hook=3)
                         ^^^^^^

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