]> git.puffer.fish Git - mirror/frr.git/commit
sharpd: fix set ZAPI_MESSAGE_NEXTHOP in nhg only when nexthops used 16346/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 18 Jun 2024 15:40:08 +0000 (17:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 4 Jul 2024 11:56:35 +0000 (13:56 +0200)
commit7f2a9114af2584c420f8c98072693b9ce2cad859
treed4232e93ecf8901f00534bf9a96ce7d13fc2197e
parentd4758b3ccc76c77d0b8ba255089f79e67379bb30
sharpd: fix set ZAPI_MESSAGE_NEXTHOP in nhg only when nexthops used

The ZAPI_MESSAGE_NEXTHOP flag is systematically set, even if the
route message does not include any nexthops. Limit the usage of this
value only when nexthops are present.

Fixes: 8a71d93d85a6 ("sharpd: Add Super Happy Advanced Routing Protocol")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
sharpd/sharp_zebra.c