}
/* Convert aspath structure to string expression. */
-char *
+static char *
aspath_make_str_count (struct aspath *as)
{
int space;
return new;
}
-void *
+static void *
aspath_hash_alloc (struct aspath *arg)
{
struct aspath *aspath;
#define ASSEGMENT_SIZE(N) (AS_HEADER_SIZE + ((N) * AS_VALUE_SIZE))
-struct aspath *
+static struct aspath *
aspath_aggregate_segment_copy (struct aspath *aspath, struct assegment *seg,
int i)
{
return aspath;
}
-struct assegment *
+static struct assegment *
aspath_aggregate_as_set_add (struct aspath *aspath, struct assegment *asset,
as_t as)
{
}
/* Merge as1 to as2. as2 should be uninterned aspath. */
-struct aspath *
+static struct aspath *
aspath_merge (struct aspath *as1, struct aspath *as2)
{
caddr_t data;
}
/* Add new as value to as path structure. */
-void
+static void
aspath_as_add (struct aspath *as, as_t asno)
{
caddr_t pnt;
}
/* Add new as segment to the as path. */
-void
+static void
aspath_segment_add (struct aspath *as, int type)
{
struct assegment *assegment;
}
struct aspath *
-aspath_empty ()
+aspath_empty (void)
{
return aspath_parse (NULL, 0);
}
struct aspath *
-aspath_empty_get ()
+aspath_empty_get (void)
{
struct aspath *aspath;
};
/* Return next token and point for string parse. */
-const char *
+static const char *
aspath_gettoken (const char *buf, enum as_token *token, u_short *asno)
{
const char *p = buf;
}
/* If two aspath have same value then return 1 else return 0 */
-int
+static int
aspath_cmp (struct aspath *as1, struct aspath *as2)
{
if (as1->length == as2->length
/* AS path hash initialize. */
void
-aspath_init ()
+aspath_init (void)
{
ashash = hash_create_size (32767, aspath_key_make, aspath_cmp);
}
vty_out (vty, "%s", as->str);
}
-void
+static void
aspath_show_all_iterator (struct hash_backet *backet, struct vty *vty)
{
struct aspath *as;