summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_routemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index f9def03693..dbffecee30 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -3024,11 +3024,11 @@ static void *route_set_origin_compile(const char *arg)
origin = XMALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(uint8_t));
if (strcmp(arg, "igp") == 0)
- *origin = 0;
+ *origin = BGP_ORIGIN_IGP;
else if (strcmp(arg, "egp") == 0)
- *origin = 1;
+ *origin = BGP_ORIGIN_EGP;
else
- *origin = 2;
+ *origin = BGP_ORIGIN_INCOMPLETE;
return origin;
}