]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_encap.c
bgpd: make bgp_nlri_parse_encap conform with other nlri_parse funcs
authorPaul Jakma <paul.jakma@hpe.com>
Fri, 5 Feb 2016 14:57:17 +0000 (14:57 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Oct 2016 13:36:08 +0000 (09:36 -0400)
commit423a9d64977f11e0c348731eeded1e4b85c3891a
tree373d2ad89b8f99889ff2eaae1850330f819010fe
parent59768a630d7cc40e245d69c9c601b6902659c1ef
bgpd: make bgp_nlri_parse_encap conform with other nlri_parse funcs

* bgp_encap.{c,h} (bgp_nlri_parse_encap) afi is already in the NLRI argument.
  update or withdraw is signalled by attr being non-NULL or NULL.

* bgp_packet.c: (update_receive) fixup to match, and also make the attr
  argument conform with NLRI_ATTR_ARG for correct error handling on
  optional, transitive, partial, attributes.
bgpd/bgp_encap.c
bgpd/bgp_encap.h
bgpd/bgp_packet.c