]> git.puffer.fish Git - mirror/frr.git/commit
pbrd, zebra: fix zapi and netlink rule encoding 13791/head
authorMark Stapp <mjs@labn.net>
Tue, 23 May 2023 19:31:31 +0000 (15:31 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 13 Jun 2023 15:11:21 +0000 (15:11 +0000)
commit3326a17cfdcac430f9de54d322b971ab56690138
tree09394e1847dbab5d9c5c5b76cd8eb60baec9bb47
parent5dc6972e134995888b3cc0a0f88156a00e62605b
pbrd, zebra: fix zapi and netlink rule encoding

In pbrd, don't encode a rule without a table. There are cases
where the zapi encoding was incorrect because the 4-octet
table id was missing. In zebra, mask off the ECN bits in the
TOS byte when encoding an iprule to match netlink's
expectation.

Signed-off-by: Mark Stapp <mjs@labn.net>
(cherry picked from commit 4112baec9f7ec235c66e2c5992ba2288ca1557e7)
pbrd/pbr_zebra.c
zebra/rule_netlink.c