]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: add vlan filters pcp/vlan-id/vlan-flags; ip-protocol any (pbr feature)
authorG. Paul Ziemba <paulz@labn.net>
Wed, 19 Jul 2023 14:58:02 +0000 (07:58 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Wed, 19 Jul 2023 15:14:09 +0000 (08:14 -0700)
commitbfd3e8e012f22c62f628f836532e9805b10ae493
tree193ca20fd87068f0278d34ce63a991aed40c37c5
parentff10abcc89581c1ed94a45f92fc76daf863c512e
pbrd: add vlan filters pcp/vlan-id/vlan-flags; ip-protocol any (pbr feature)

    Subset: feature in PBR

    New PBR rule fields:

    match ip-protocol (was only tcp|udp, now any value in /etc/protocols)
    match pcp (0-7)
    match vlan (1-4094)
    match vlan (tagged|untagged|untagged-or-zero)

    Filter flags
Add filter_bm (flags) field internally to indicate which
filter fields should be considered active. Bit definitions
as in lib/pbr.h.

This commit uses only the PBR_FILTER_PCP bit, but other
fields will be added in future commits. (Fixes bug related
to determining set/not-set state of pcp filter)

Shift vlan filter flags to lib/pbr.h

    Changes by:
Josh Werner <joshuawerner@mitre.org>
Eli Baum <ebaum@mitre.org>
G. Paul Ziemba <paulz@labn.net>

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
lib/pbr.h
pbrd/pbr_map.c
pbrd/pbr_map.h
pbrd/pbr_vty.c