]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_attr.c
bgpd: fix handling of AS path data
authorChris Hall <chris.hall@highwayman.com>
Mon, 9 Aug 2010 18:31:37 +0000 (22:31 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 9 Aug 2010 18:31:37 +0000 (22:31 +0400)
commitcddb8112b80fa9867156c637d63e6e79eeac67bb
treec8d8b4cb9d0ba1c2a7681c6da580874cf5a2b48e
parentd64379e8f3c0636df53ed08d5b2f1946cfedd0e3
bgpd: fix handling of AS path data

* bgpd/bgp_aspath.c
  * assegments_parse(): add handling of AS4_PATH input, update bounds
    checks, add check for AS segment type
  * aspath_parse(): add handling of AS4_PATH input, expect
    assegments_parse() to do length checking
  * aspath_empty(): update for the new function prototype
* bgpd/bgp_aspath.h: ditto
* tests/aspath_test.c: ditto
* bgpd/bgp_attr.c
  * bgp_attr_aspath(): add handling of AS4_PATH input, update flags
    checks, change returned type
  * bgp_attr_as4_path(): discard, superseded by bgp_attr_aspath()
  * bgp_attr_parse(): update respectively
bgpd/bgp_aspath.c
bgpd/bgp_aspath.h
bgpd/bgp_attr.c
tests/aspath_test.c