summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2010-08-09 20:31:37 +0200
committerDenis Ovsienko <infrastation@yandex.ru>2010-08-09 20:31:37 +0200
commitcddb8112b80fa9867156c637d63e6e79eeac67bb (patch)
treec8d8b4cb9d0ba1c2a7681c6da580874cf5a2b48e /bgpd/bgp_aspath.h
parentbgpd: tighten bounds checking in RR ORF msg reader (diff)
downloadfrr-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 'bgpd/bgp_aspath.h')
-rw-r--r--bgpd/bgp_aspath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_aspath.h b/bgpd/bgp_aspath.h
index b8a5dfaba..d63b914c1 100644
--- a/bgpd/bgp_aspath.h
+++ b/bgpd/bgp_aspath.h
@@ -65,7 +65,7 @@ struct aspath
/* Prototypes. */
extern void aspath_init (void);
extern void aspath_finish (void);
-extern struct aspath *aspath_parse (struct stream *, size_t, int);
+extern struct aspath *aspath_parse (struct stream *, size_t, int, int);
extern struct aspath *aspath_dup (struct aspath *);
extern struct aspath *aspath_aggregate (struct aspath *, struct aspath *);
extern struct aspath *aspath_prepend (struct aspath *, struct aspath *);