summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-06-04 20:25:14 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-07-08 17:12:47 +0200
commitf56697eff3890c21b434f84f34304320462c8d37 (patch)
treef6e871e281b61449a76b1fd90e82b48bb1d4f93e /pbrd
parentlib, zebra: add ip_proto to the filter data structure (diff)
downloadfrr-f56697eff3890c21b434f84f34304320462c8d37.tar.xz
frr-f56697eff3890c21b434f84f34304320462c8d37.zip
bgpd, pbrd, zebra: Encode/decode the ip proto from daemons to zebra
Ensure that we properly encode/decode the ip protocol from daemons to zebra. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_zebra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index 8e21d24d0..cf7fc16b3 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -534,6 +534,7 @@ static void pbr_encode_pbr_map_sequence(struct stream *s,
stream_putl(s, pbrms->seqno);
stream_putl(s, pbrms->ruleno);
stream_putl(s, pbrms->unique);
+ stream_putc(s, 0); /* The ip_proto */
pbr_encode_pbr_map_sequence_prefix(s, pbrms->src, family);
stream_putw(s, pbrms->src_prt);
pbr_encode_pbr_map_sequence_prefix(s, pbrms->dst, family);