netfilter: nft_tproxy: restrict support to TCP and UDP transport protocols
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 11 Jun 2021 17:26:56 +0000 (19:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 Jun 2021 18:51:51 +0000 (20:51 +0200)
commit52f0f4e178c757b3d356087376aad8bd77271828
tree43b36c5472c17a632f0aa80e3c916b64ece32d03
parent8f518d43f89ae00b9cf5460e10b91694944ca1a8
netfilter: nft_tproxy: restrict support to TCP and UDP transport protocols

Add unfront check for TCP and UDP packets before performing further
processing.

Fixes: 4ed8eb6570a4 ("netfilter: nf_tables: Add native tproxy support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tproxy.c