]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_attr.c
bgpd: Rollback some of the changes made for invalid AS_PATH segment fix
authorPaul Jakma <paul@quagga.net>
Sat, 27 Nov 2010 22:48:34 +0000 (22:48 +0000)
committerPaul Jakma <paul@quagga.net>
Mon, 21 Mar 2011 13:51:14 +0000 (13:51 +0000)
commitab005298526f4b14126cae1a6461ad3d700af29c
tree8b27b97dc351ae1c89c943750e8ad53d4781de44
parentc8f3fe3063cb9ff193b13011cfbda3e605395340
bgpd: Rollback some of the changes made for invalid AS_PATH segment fix

Some of the changes made in commit cddb8112b80fa9867156c637d63e6e79eeac67bb
don't work particularly well for other changes that need to be made to
address BGP attribute error handling problems. In particular, returning
a pointer from complex attribute data parsing functions will not suffice
to express the require range of return status conditions.

* bgp_aspath.c: (assegments_parse) Rollback to a more minimal set of
  changes to fix the original problem.
  (aspath_parse) Slightly needless pushing around of code, and taking
  2 parameters to say whether ot use 2 or 4 byte encoding seems unnecessary.
* bgp_attr.c: (bgp_attr_as{,4}path) Rollback, in preparation for BGP
  attribute error handling update.
bgpd/bgp_aspath.c
bgpd/bgp_aspath.h
bgpd/bgp_attr.c