summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index 41b8428fa1..d7acd7f3f7 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -125,13 +125,18 @@ struct route_map_rule_cmd {
};
/* Route map apply error. */
-enum { RMAP_COMPILE_SUCCESS,
+enum {
+ RMAP_COMPILE_SUCCESS,
- /* Route map rule is missing. */
- RMAP_RULE_MISSING,
+ /* Route map rule is missing. */
+ RMAP_RULE_MISSING,
- /* Route map rule can't compile */
- RMAP_COMPILE_ERROR };
+ /* Route map rule can't compile */
+ RMAP_COMPILE_ERROR,
+
+ /* Route map rule is duplicate */
+ RMAP_DUPLICATE_RULE
+};
/* Route map rule list. */
struct route_map_rule_list {
@@ -213,7 +218,8 @@ extern void route_map_finish(void);
/* Add match statement to route map. */
extern int route_map_add_match(struct route_map_index *index,
- const char *match_name, const char *match_arg);
+ const char *match_name, const char *match_arg,
+ route_map_event_t type);
/* Delete specified route match rule. */
extern int route_map_delete_match(struct route_map_index *index,