diff options
author | Maria Matejka <mq@ucw.cz> | 2022-06-16 23:24:53 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-06-17 10:55:23 +0200 |
commit | 8c92f47ac77f267368b6d6bd161689a0c0bc5e5a (patch) | |
tree | 55d600dc9035380a1ddb853541609faf09325361 /lib/route.h | |
parent | 54d94f4b1a5b9d8f2943236323d789290bb7bb2f (diff) |
Route attribute storage keeps the previous layers
Diffstat (limited to 'lib/route.h')
-rw-r--r-- | lib/route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route.h b/lib/route.h index 1b2f4de6..7e28b91e 100644 --- a/lib/route.h +++ b/lib/route.h @@ -237,7 +237,7 @@ ea_list *ea_append(ea_list *to, ea_list *what); void ea_format_bitfield(const struct eattr *a, byte *buf, int bufsize, const char **names, int min, int max); /* Normalize ea_list; allocates the result from tmp_linpool */ -ea_list *ea_normalize(const ea_list *e); +ea_list *ea_normalize(ea_list *e, int overlay); uint ea_list_size(ea_list *); void ea_list_copy(ea_list *dest, ea_list *src, uint size); @@ -414,7 +414,7 @@ static inline int rte_dest(const rte *r) void rta_init(void); ea_list *ea_lookup(ea_list *); /* Get a cached (and normalized) variant of this attribute list */ -static inline int ea_is_cached(ea_list *r) { return r->flags & EALF_CACHED; } +static inline int ea_is_cached(const ea_list *r) { return r->flags & EALF_CACHED; } static inline ea_list *ea_clone(ea_list *r) { r->uc++; return r; } void ea__free(ea_list *r); static inline void ea_free(ea_list *r) { if (r && !--r->uc) ea__free(r); } |