summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-08 19:30:35 +0100
committerMartin Mares <mj@ucw.cz>1998-12-08 19:30:35 +0100
commit618533af91051b7b26ac19816e89cd81352b0f13 (patch)
treed7872747c1f5ea27a3a5fb53fb1d23e1bbccbe8d
parentf39e4713c270752d7bbfcc8115a7ea7f589c3997 (diff)
downloadbird-618533af91051b7b26ac19816e89cd81352b0f13.tar
bird-618533af91051b7b26ac19816e89cd81352b0f13.zip
Added source RTS_DUMMY for temporary routes. They should never appear
in the main table.
-rw-r--r--nest/route.h1
-rw-r--r--nest/rt-attr.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/nest/route.h b/nest/route.h
index a5cc2f7..d21a32c 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -155,6 +155,7 @@ typedef struct rtattr {
} u;
} rta;
+#define RTS_DUMMY 0 /* Dummy route to be removed soon */
#define RTS_STATIC 1 /* Normal static route */
#define RTS_INHERIT 2 /* Route inherited from kernel */
#define RTS_DEVICE 3 /* Device route */
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index afce7f8..aa4a59a 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -130,7 +130,7 @@ _rta_free(rta *a)
void
rta_dump(rta *a)
{
- static char *rts[] = { "?", "RTS_STATIC", "RTS_INHERIT", "RTS_DEVICE",
+ static char *rts[] = { "RTS_DUMMY", "RTS_STATIC", "RTS_INHERIT", "RTS_DEVICE",
"RTS_STAT_DEV", "RTS_REDIR", "RTS_RIP", "RTS_RIP_EXT",
"RTS_OSPF", "RTS_OSPF_EXT", "RTS_OSPF_IA",
"RTS_OSPF_BOUNDARY", "RTS_BGP" };