summaryrefslogtreecommitdiff
path: root/nest/route.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-07-16 14:44:45 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2012-07-16 14:44:45 +0200
commitabced4a91495e27fe86b142bc1967cec53bab3dc (patch)
treef6aead6b370caf7515855726e4e54ca7ee95224c /nest/route.h
parentfc06fb62443c135773ee4c05ed83925cc47b046d (diff)
parent761702644397886bd3c1be10fd55c01485b7c454 (diff)
Merge branch 'rt-accepted'
Conflicts: nest/config.Y nest/rt-table.c proto/bgp/bgp.c
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h
index 34536609..524e69b3 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -121,6 +121,7 @@ struct rtable_config {
struct proto_config *krt_attached; /* Kernel syncer attached to this table */
int gc_max_ops; /* Maximum number of operations before GC is run */
int gc_min_time; /* Minimum time between two consecutive GC runs */
+ byte sorted; /* Routes of network are sorted according to rte_better() */
};
typedef struct rtable {
@@ -219,11 +220,12 @@ typedef struct rte {
} u;
} rte;
-#define REF_COW 1 /* Copy this rte on write */
+#define REF_COW 1 /* Copy this rte on write */
/* Types of route announcement, also used as flags */
-#define RA_OPTIMAL 1 /* Announcement of optimal route change */
-#define RA_ANY 2 /* Announcement of any route change */
+#define RA_OPTIMAL 1 /* Announcement of optimal route change */
+#define RA_ACCEPTED 2 /* Announcement of first accepted route */
+#define RA_ANY 3 /* Announcement of any route change */
struct config;