netfilter: nf_tables: nft_payload: fix transport header base
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 11 Oct 2013 08:00:22 +0000 (10:00 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Oct 2013 16:00:56 +0000 (18:00 +0200)
commitc54032e05bfcbb261f47aaadf8476e864e8712f4
tree60d0012f8d4bd92c1a0e3ccc7f330174625506a8
parent0ca743a5599199152a31a7146b83213c786c2eb2
netfilter: nf_tables: nft_payload: fix transport header base

We cannot use skb->transport_header since it's unset, use
pkt->xt.thoff instead.

Now possible using information made available through the x_tables
compatibility layer.

Reported-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c
net/netfilter/nft_payload.c