Skip to content

Add support for 8021.AD frame matching

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4src: vlan: allow matching vlan id insider 802.1ad framesrc/proto.c+3 -00 replies
2/4proto: add 8021ad as mnemonic for IEEE 802.1AD (0x88a8) ether typesrc/proto.c src/scanner.l+2 -00 replies
3/4payload: be careful on vlan dependency removalsrc/payload.c+26 -30 replies
4/4tests: add 8021.AD vlan test casestests/py/bridge/vlan.t tests/py/bridge/vlan.t.json tests/py/bridge/vlan.t.json.output +2 more+450 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/4] Add support for 8021.AD frame matching

This allows to match vlan frames with 8021.AD ("QinQ") type.

Plan 'vlan id 1' will imply 8021Q, just as before, so explicit type specification is needed.
This in turn makes it necessary to extend dependency removal so that it will not auto-remove 8021ad check.

Add test case to make sure depdenencies are generated correctly, this includes checks for 'vlan id 2' in a 'vlan id 1' vlan tag stack.

Florian Westphal (4):
src: vlan: allow matching vlan id insider 802.1ad frame
proto: add 8021ad as mnemonic for IEEE 802.1AD (0x88a8) ether type
payload: be careful on vlan dependency removal
tests: add 8021.AD vlan test cases

 src/payload.c                         |  29 ++++-
 src/proto.c                           |   4 +
 src/scanner.l                         |   1 +
 tests/py/bridge/vlan.t                |   5 +
 tests/py/bridge/vlan.t.json           | 176 ++++++++++++++++++++++++++
 tests/py/bridge/vlan.t.json.output    | 173 +++++++++++++++++++++++++
 tests/py/bridge/vlan.t.payload        |  45 +++++++
 tests/py/bridge/vlan.t.payload.netdev |  51 ++++++++
 8 files changed, 481 insertions(+), 3 deletions(-)
Signature · 1 line
2.26.3