summaryrefslogtreecommitdiff
path: root/nest/rt-attr.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-31 19:09:38 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:37:41 +0200
commitef6a903e6f44b467f9606018446095521ad01ef1 (patch)
treee255b556324da5da263695b77373b49f3fce6896 /nest/rt-attr.c
parent0e1e632f70b74cf111f08175ab3634db2f962579 (diff)
Splitting route data structures out to lib
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r--nest/rt-attr.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index de45dfa1..8f4319c5 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -45,7 +45,7 @@
*/
#include "nest/bird.h"
-#include "nest/route.h"
+#include "nest/rt.h"
#include "nest/protocol.h"
#include "nest/iface.h"
#include "nest/cli.h"
@@ -529,25 +529,6 @@ ea_walk(struct ea_walk_state *s, uint id, uint max)
return NULL;
}
-/**
- * ea_get_int - fetch an integer attribute
- * @e: attribute list
- * @id: attribute ID
- * @def: default value
- *
- * This function is a shortcut for retrieving a value of an integer attribute
- * by calling ea_find() to find the attribute, extracting its value or returning
- * a provided default if no such attribute is present.
- */
-u32
-ea_get_int(ea_list *e, unsigned id, u32 def)
-{
- eattr *a = ea_find(e, id);
- if (!a)
- return def;
- return a->u.data;
-}
-
static inline void
ea_do_sort(ea_list *e)
{