]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fixes for recent well-known-attr check patch.
authorPaul Jakma <paul@opensourcerouting.org>
Tue, 21 Oct 2014 15:59:01 +0000 (16:59 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 20:30:30 +0000 (20:30 +0000)
commit67495ddb2e5b1ed267966dcae938c4a30081a75d
tree1fa296f942484ed224e132ada18a4976f9f785d9
parentbb7bef1490138c464ffe5f065a5f3755fc6e1b6f
bgpd: Fixes for recent well-known-attr check patch.

* bgp_attr.c: Recent patch to tighten well-known attr checks and apply that
  to all AFIs has some breakage with MP-extensions and GR, which needs to be
  fixed.
  (bgp_attr_check) Graceful Restart EoR can be an empty UPDATE for IPv4/uni.
  MP-Ext allow UPDATE with just MP_UNREACH_NLRI. Check for these and return
  proceed.
  NEXT_HOP becomes optional, if MP_REACH_NLRI is present and there's no
  v4 NLTI, update NEXT_HOP check accordingly.
  Print the missing attr in string form in the log message.
  (bgp_attr_parse) AS_PATH need not be there, so
  bgp_attr_munge_as4_attrs call needs to be conditional on that.

(cherry picked from commit aed1b556cf2f55680ae09d7ad1a1f22729dea8c5)

Conflicts:
bgpd/bgp_attr.c
bgpd/bgp_attr.c