]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: use flags to indicate active fields
authorG. Paul Ziemba <paulz@labn.net>
Mon, 31 Jul 2023 04:33:10 +0000 (21:33 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Wed, 9 Aug 2023 19:11:35 +0000 (12:11 -0700)
commit887367a01c0e978e992935ae93f3df4e3c1bd86c
tree533826535f9359febf6b935fb6ee44b63121c63a
parentc47fd378f33b721cc32b788c6ce89353b1076416
pbrd: use flags to indicate active fields

    Before now, PBRD used non-zero values to imply that a rule's
    match or action field was active. This approach was getting
    cumbersome for fields where 0 is a valid active value and
    various field-specific magic values had to be used.

    This commit changes PBRD to use a flag bit per field to
    indicate that the field is active.

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