diff options
-rw-r--r-- | bgpd/bgp_aspath.c | 6 | ||||
-rw-r--r-- | bgpd/bgp_aspath.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index d6fa6af5..e703941d 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -86,7 +86,7 @@ struct assegment_header }; /* Hash for aspath. This is the top level structure of AS path. */ -struct hash *ashash; +static struct hash *ashash; /* Stream for SNMP. See aspath_snmp_pathseg */ static struct stream *snmp_stream; @@ -482,6 +482,7 @@ aspath_has_as4 (struct aspath *aspath) return 0; } +#ifdef unused /* Return number of as numbers in in path */ unsigned int aspath_count_numas (struct aspath *aspath) @@ -497,6 +498,7 @@ aspath_count_numas (struct aspath *aspath) } return num; } +#endif /* Expand aspath string */ static char * @@ -1769,6 +1771,7 @@ aspath_init (void) ashash = hash_create_size (32767, aspath_key_make, aspath_cmp); } +#ifdef unused void aspath_finish (void) { @@ -1777,6 +1780,7 @@ aspath_finish (void) if (snmp_stream) stream_free (snmp_stream); } +#endif /* return and as path value */ const char * diff --git a/bgpd/bgp_aspath.h b/bgpd/bgp_aspath.h index 2b4625c8..8f8db9a6 100644 --- a/bgpd/bgp_aspath.h +++ b/bgpd/bgp_aspath.h @@ -64,7 +64,6 @@ 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_dup (struct aspath *); extern struct aspath *aspath_aggregate (struct aspath *, struct aspath *); @@ -97,7 +96,6 @@ extern size_t aspath_put (struct stream *, struct aspath *, int); extern struct aspath *aspath_reconcile_as4 (struct aspath *, struct aspath *); extern unsigned int aspath_has_as4 (struct aspath *); -extern unsigned int aspath_count_numas (struct aspath *); /* For SNMP BGP4PATHATTRASPATHSEGMENT, might be useful for debug */ extern u_char *aspath_snmp_pathseg (struct aspath *, size_t *); |