mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 13:40:56 +00:00
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: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
c247897d7c
commit
3927ce8850
|
@ -132,6 +132,9 @@ static int __nft_payload_inner_offset(struct nft_pktinfo *pkt)
|
|||
pkt->inneroff = thoff + offset;
|
||||
}
|
||||
break;
|
||||
case IPPROTO_IPIP:
|
||||
pkt->inneroff = thoff;
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user