Commit 3927ce88 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_payload: access ipip payload for inner offset

ipip is an special case, transport and inner header offset are set to
the same offset to use the upcoming inner expression for matching on
inner tunnel headers.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c247897d
...@@ -132,6 +132,9 @@ static int __nft_payload_inner_offset(struct nft_pktinfo *pkt) ...@@ -132,6 +132,9 @@ static int __nft_payload_inner_offset(struct nft_pktinfo *pkt)
pkt->inneroff = thoff + offset; pkt->inneroff = thoff + offset;
} }
break; break;
case IPPROTO_IPIP:
pkt->inneroff = thoff;
break;
default: default:
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment