]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Squash spurious "unknown afi" log messages
authorPaul Jakma <paul.jakma@hpe.com>
Fri, 22 Apr 2016 11:48:49 +0000 (12:48 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Oct 2016 13:36:09 +0000 (09:36 -0400)
commit8628876f661045722f3db18e367379445bfecdb3
tree5c21840733ff291d9007ddc40d5a1ce6dcece230
parentebd12e62a9e8e49ffdc2211f330aec4d004a15e8
bgpd: Squash spurious "unknown afi" log messages

* bgp_packet.c: (bgp_update_receive) doesn't differentiate between NLRIs that
  are 0 AFI/SAFI cause they weren't set, and those because a peer sent a
  bogus AFI/SAFI, before sending sending what may be a misleading, spurious
  log message.  Check the .nlri pointer is set and avoid this.

Incorporating a suggestion from: G. Paul Ziemba <unp@ziemba.us>
bgpd/bgp_packet.c