summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-10 14:39:29 +0200
committerMartin Mares <mj@ucw.cz>2000-04-10 14:39:29 +0200
commit6f57dcc07cdf54133bd57aeaec7446f59f2c91cd (patch)
tree9a93b0fe0bac05d2423e6284983477f6d9024870
parentf2cb1d708dc5de4167a3dc12b50001391d01f5f0 (diff)
downloadbird-6f57dcc07cdf54133bd57aeaec7446f59f2c91cd.tar
bird-6f57dcc07cdf54133bd57aeaec7446f59f2c91cd.zip
Export ea_same() and ea_hash().
-rw-r--r--nest/route.h5
-rw-r--r--nest/rt-attr.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h
index aec0465..2f293c0 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -320,8 +320,11 @@ typedef struct ea_list {
eattr *ea_find(ea_list *, unsigned ea);
void ea_dump(ea_list *);
void ea_sort(ea_list *); /* Sort entries in all sub-lists */
-unsigned ea_scan(ea_list *); /* How many bytes do we need for merged ea_list (0=merge not needed) */
+unsigned ea_scan(ea_list *); /* How many bytes do we need for merged ea_list */
void ea_merge(ea_list *from, ea_list *to); /* Merge sub-lists to allocated buffer */
+int ea_same(ea_list *x, ea_list *y); /* Test whether two ea_lists are identical */
+unsigned int ea_hash(ea_list *e); /* Calculate 16-bit hash value */
+void ea_format(eattr *e, byte *buf);
void rta_init(void);
rta *rta_lookup(rta *); /* Get rta equivalent to this one, uc++ */
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 57c98b2..97cd70b 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -183,7 +183,7 @@ ea_merge(ea_list *e, ea_list *t)
}
}
-static inline int
+int
ea_same(ea_list *x, ea_list *y)
{
int c;
@@ -327,7 +327,7 @@ ea_dump(ea_list *e)
}
}
-static inline unsigned int
+inline unsigned int
ea_hash(ea_list *e)
{
u32 h = 0;