mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Export ea_same() and ea_hash().
This commit is contained in:
parent
f2cb1d708d
commit
6f57dcc07c
@ -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++ */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user