]> git.puffer.fish Git - mirror/frr.git/commit
pbrd, zebra: fix zapi and netlink rule encoding 13589/head
authorMark Stapp <mjs@labn.net>
Tue, 23 May 2023 19:31:31 +0000 (15:31 -0400)
committerMark Stapp <mjs@labn.net>
Mon, 12 Jun 2023 20:39:26 +0000 (16:39 -0400)
commit4112baec9f7ec235c66e2c5992ba2288ca1557e7
tree2e6fa5d3a6f3bb5ed48d7e3408c401311b307794
parent3895ea777b05c05d8b20d7eb8e3b3033c02c991e
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>
pbrd/pbr_zebra.c
zebra/rule_netlink.c