Added source RTS_DUMMY for temporary routes. They should never appear
in the main table.
This commit is contained in:
parent
f39e4713c2
commit
618533af91
2 changed files with 2 additions and 1 deletions
|
@ -155,6 +155,7 @@ typedef struct rtattr {
|
||||||
} u;
|
} u;
|
||||||
} rta;
|
} rta;
|
||||||
|
|
||||||
|
#define RTS_DUMMY 0 /* Dummy route to be removed soon */
|
||||||
#define RTS_STATIC 1 /* Normal static route */
|
#define RTS_STATIC 1 /* Normal static route */
|
||||||
#define RTS_INHERIT 2 /* Route inherited from kernel */
|
#define RTS_INHERIT 2 /* Route inherited from kernel */
|
||||||
#define RTS_DEVICE 3 /* Device route */
|
#define RTS_DEVICE 3 /* Device route */
|
||||||
|
|
|
@ -130,7 +130,7 @@ _rta_free(rta *a)
|
||||||
void
|
void
|
||||||
rta_dump(rta *a)
|
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_STAT_DEV", "RTS_REDIR", "RTS_RIP", "RTS_RIP_EXT",
|
||||||
"RTS_OSPF", "RTS_OSPF_EXT", "RTS_OSPF_IA",
|
"RTS_OSPF", "RTS_OSPF_EXT", "RTS_OSPF_IA",
|
||||||
"RTS_OSPF_BOUNDARY", "RTS_BGP" };
|
"RTS_OSPF_BOUNDARY", "RTS_BGP" };
|
||||||
|
|
Loading…
Reference in a new issue