From 614827f88be0fb0928327368e669b8e646055063 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 7 May 2018 18:59:41 +0200 Subject: [PATCH] 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 --- pbrd/pbr_zebra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index bc7dd20832..cdacfad4b4 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) -- 2.39.5