diff options
author | Chris Hall <chris.hall@highwayman.com> | 2010-08-09 20:31:37 +0200 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2010-08-09 20:31:37 +0200 |
commit | cddb8112b80fa9867156c637d63e6e79eeac67bb (patch) | |
tree | c8d8b4cb9d0ba1c2a7681c6da580874cf5a2b48e /tests | |
parent | bgpd: tighten bounds checking in RR ORF msg reader (diff) | |
download | frr-cddb8112b80fa9867156c637d63e6e79eeac67bb.tar.xz frr-cddb8112b80fa9867156c637d63e6e79eeac67bb.zip |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/aspath_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aspath_test.c b/tests/aspath_test.c index fb504f317..9e51e8dd8 100644 --- a/tests/aspath_test.c +++ b/tests/aspath_test.c @@ -649,7 +649,7 @@ make_aspath (const u_char *data, size_t len, int use32bit) s = stream_new (len); stream_put (s, data, len); } - as = aspath_parse (s, len, use32bit); + as = aspath_parse (s, len, use32bit, 0); if (s) stream_free (s); |