summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-05-07 18:59:41 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-05-07 18:59:41 +0200
commit614827f88be0fb0928327368e669b8e646055063 (patch)
tree4cefc6d4c633a357ab0b89f98cd173c8d5a58d9e /pbrd
parentMerge pull request #2156 from donaldsharp/zebra_doc (diff)
downloadfrr-614827f88be0fb0928327368e669b8e646055063.tar.xz
frr-614827f88be0fb0928327368e669b8e646055063.zip
pbrd: encode null fwmark to be consistent with zebra decode rule
A null 4-byte long fwmark is encoded in pbr rule. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.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 bc7dd2083..cdacfad4b 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -479,6 +479,7 @@ static void pbr_encode_pbr_map_sequence(struct stream *s,
stream_putw(s, 0); /* src port */
pbr_encode_pbr_map_sequence_prefix(s, pbrms->dst, family);
stream_putw(s, 0); /* dst port */
+ stream_putl(s, 0); /* fwmark */
if (pbrms->nhgrp_name)
stream_putl(s, pbr_nht_get_table(pbrms->nhgrp_name));
else if (pbrms->nhg)