netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/3] vlan followup fixes
@ 2022-09-29 13:01 Florian Westphal
  2022-09-29 13:01 ` [PATCH nft 1/3] doc: mention vlan matching in ip/ip6/inet families Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Westphal @ 2022-09-29 13:01 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

vlan header matching in ip/ip6/inet families may not work, because
default behaviour is to remove the vlan header/tag information.

Update documentation to mention this.
Furthermore, dependency generation was broken so that even if the
vlan striping is disabled matching did not work, as the offset was
not computed correctly.

Add test cases for this too.

Florian Westphal (3):
  doc: mention vlan matching in ip/ip6/inet families
  evaluate: add ethernet header size offset for implicit vlan dependency
  tests: py: add vlan test case for ip/inet family

 doc/payload-expression.txt           |  8 +++++++
 src/evaluate.c                       | 20 ++++++++++++++++-
 tests/py/inet/ether.t                |  6 ++++++
 tests/py/inet/ether.t.json           | 32 ++++++++++++++++++++++++++++
 tests/py/inet/ether.t.payload        | 20 +++++++++++++++++
 tests/py/inet/ether.t.payload.bridge | 16 ++++++++++++++
 tests/py/inet/ether.t.payload.ip     | 20 +++++++++++++++++
 7 files changed, 121 insertions(+), 1 deletion(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-30 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 13:01 [PATCH nft 0/3] vlan followup fixes Florian Westphal
2022-09-29 13:01 ` [PATCH nft 1/3] doc: mention vlan matching in ip/ip6/inet families Florian Westphal
2022-09-29 13:01 ` [PATCH nft 2/3] evaluate: add ethernet header size offset for implicit vlan dependency Florian Westphal
2022-09-29 13:01 ` [PATCH nft 3/3] tests: py: add vlan test case for ip/inet family Florian Westphal
2022-09-30 13:09 ` [PATCH nft 0/3] vlan followup fixes Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).