mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Removed RTS_RIP_EXT.
This commit is contained in:
parent
9a220cabbc
commit
beaf86e13c
@ -24,7 +24,7 @@ CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILT
|
|||||||
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES)
|
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES)
|
||||||
|
|
||||||
CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT,
|
CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT,
|
||||||
RIP, RIP_EXT, OSPF, OSPF_EXT, OSPF_IA, OSPF_BOUNDARY, BGP, PIPE)
|
RIP, OSPF, OSPF_EXT, OSPF_IA, OSPF_BOUNDARY, BGP, PIPE)
|
||||||
|
|
||||||
%type <i32> idval
|
%type <i32> idval
|
||||||
%type <f> imexport
|
%type <f> imexport
|
||||||
|
16
nest/route.h
16
nest/route.h
@ -241,13 +241,12 @@ typedef struct rta {
|
|||||||
#define RTS_STATIC_DEVICE 4 /* Static device route */
|
#define RTS_STATIC_DEVICE 4 /* Static device route */
|
||||||
#define RTS_REDIRECT 5 /* Learned via redirect */
|
#define RTS_REDIRECT 5 /* Learned via redirect */
|
||||||
#define RTS_RIP 6 /* RIP route */
|
#define RTS_RIP 6 /* RIP route */
|
||||||
#define RTS_RIP_EXT 7 /* RIP external route */
|
#define RTS_OSPF 7 /* OSPF route */
|
||||||
#define RTS_OSPF 8 /* OSPF route */
|
#define RTS_OSPF_EXT 8 /* OSPF external route */
|
||||||
#define RTS_OSPF_EXT 9 /* OSPF external route */
|
#define RTS_OSPF_IA 9 /* OSPF inter-area route */
|
||||||
#define RTS_OSPF_IA 10 /* OSPF inter-area route */
|
#define RTS_OSPF_BOUNDARY 10 /* OSPF route to boundary router */
|
||||||
#define RTS_OSPF_BOUNDARY 11 /* OSPF route to boundary router (???) */
|
#define RTS_BGP 11 /* BGP route */
|
||||||
#define RTS_BGP 12 /* BGP route */
|
#define RTS_PIPE 12 /* Inter-table wormhole */
|
||||||
#define RTS_PIPE 13 /* Inter-table wormhole */
|
|
||||||
|
|
||||||
#define RTC_UNICAST 0
|
#define RTC_UNICAST 0
|
||||||
#define RTC_BROADCAST 1
|
#define RTC_BROADCAST 1
|
||||||
@ -350,7 +349,6 @@ extern struct protocol *attr_class_to_protocol[EAP_MAX];
|
|||||||
#define DEF_PREF_RIP 120 /* RIP */
|
#define DEF_PREF_RIP 120 /* RIP */
|
||||||
#define DEF_PREF_BGP 100 /* BGP */
|
#define DEF_PREF_BGP 100 /* BGP */
|
||||||
#define DEF_PREF_OSPF_EXTERNAL 80 /* OSPF external routes */
|
#define DEF_PREF_OSPF_EXTERNAL 80 /* OSPF external routes */
|
||||||
#define DEF_PREF_RIP_EXTERNAL 70 /* RIP external routes */
|
#define DEF_PREF_PIPE 70 /* Routes piped from other tables */
|
||||||
#define DEF_PREF_PIPE 60 /* Routes piped from other tables */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -510,7 +510,7 @@ void
|
|||||||
rta_dump(rta *a)
|
rta_dump(rta *a)
|
||||||
{
|
{
|
||||||
static char *rts[] = { "RTS_DUMMY", "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_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" };
|
||||||
static char *rtc[] = { "", " BC", " MC", " AC" };
|
static char *rtc[] = { "", " BC", " MC", " AC" };
|
||||||
|
@ -561,7 +561,7 @@ bgp_create_attrs(struct bgp_proto *p, rte *e, ea_list **attrs, struct linpool *p
|
|||||||
ea->count = 4;
|
ea->count = 4;
|
||||||
|
|
||||||
bgp_set_attr(ea->attrs, pool, BA_ORIGIN,
|
bgp_set_attr(ea->attrs, pool, BA_ORIGIN,
|
||||||
(rta->source == RTS_RIP_EXT || rta->source == RTS_OSPF_EXT) ? ORIGIN_INCOMPLETE : ORIGIN_IGP);
|
(rta->source == RTS_OSPF_EXT) ? ORIGIN_INCOMPLETE : ORIGIN_IGP);
|
||||||
|
|
||||||
if (p->is_internal)
|
if (p->is_internal)
|
||||||
bgp_set_attr(ea->attrs+1, pool, BA_AS_PATH, 0);
|
bgp_set_attr(ea->attrs+1, pool, BA_AS_PATH, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user