aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/config/command_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/config/command_route.c')
-rw-r--r--hicn-light/src/hicn/config/command_route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/config/command_route.c b/hicn-light/src/hicn/config/command_route.c
index b357cb036..2c20ad193 100644
--- a/hicn-light/src/hicn/config/command_route.c
+++ b/hicn-light/src/hicn/config/command_route.c
@@ -1,3 +1,4 @@
+#include <math.h>
#include "command.h"
/* Parameters */
@@ -5,7 +6,7 @@
static const command_parameter_t symbolic_or_id = {
.name = "symbolic_or_id",
.help = "The symbolic name for an egress, or the egress route id (see 'help list routes')",
- .type = TYPE_SYMBOLIC_OR_ID,
+ .type = TYPE_INT(1, pow(2, 16) - 1),
.offset = offsetof(hc_route_t, face_id),
};