]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: mp_unreach_nlri fs sent with no nexthop
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 14 Mar 2018 09:33:40 +0000 (10:33 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Mar 2018 12:01:06 +0000 (14:01 +0200)
FS UNREACH message with 0 NLRI inside is sent after each peer
establishment. FS can send NLRI messages with no nexthop.
The commit fixes a message that is triggered by mistake
if FS was about to be sent, then that message is not output.
Also it fixes a typo.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_attr.c

index 639365588c7c32583e6fe42d50b7932adc904b30..ef839dba6af4aa217fe63dedb2e45c12d424eb68 100644 (file)
@@ -2736,9 +2736,10 @@ size_t bgp_packet_mpattr_start(struct stream *s, struct peer *peer, afi_t afi,
                }
                break;
        default:
-               zlog_err(
-                       "Bad nexthop when sening to %s, AFI %u SAFI %u nhlen %d",
-                       peer->host, afi, safi, attr->mp_nexthop_len);
+               if (safi != SAFI_FLOWSPEC)
+                       zlog_err(
+                                "Bad nexthop when sending to %s, AFI %u SAFI %u nhlen %d",
+                                peer->host, afi, safi, attr->mp_nexthop_len);
                break;
        }