diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-24 16:28:31 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-24 16:28:31 +0200 | 
| commit | 82f191a213917c5d36329aff660262846e4c09f1 (patch) | |
| tree | da24a8a7925fd940103dd14d2b7d3e2b18dc4999 /lib/routemap.c | |
| parent | cce442b5c59dc744907a455a3dbdf8484bb72a54 (diff) | |
bgpd: Add an ability to match ipv6 next-hop by prefix-list
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index c4651f39a4..7f733c8114 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -282,6 +282,22 @@ void route_map_no_match_ipv6_next_hop_type_hook(int (*func)(  	rmap_match_set_hook.no_match_ipv6_next_hop_type = func;  } +/* match ipv6 next-hop prefix-list */ +void route_map_match_ipv6_next_hop_prefix_list_hook(int (*func)( +	struct route_map_index *index, const char *command, const char *arg, +	route_map_event_t type, char *errmsg, size_t errmsg_len)) +{ +	rmap_match_set_hook.match_ipv6_next_hop_prefix_list = func; +} + +/* no match ipv6 next-hop prefix-list */ +void route_map_no_match_ipv6_next_hop_prefix_list_hook(int (*func)( +	struct route_map_index *index, const char *command, const char *arg, +	route_map_event_t type, char *errmsg, size_t errmsg_len)) +{ +	rmap_match_set_hook.no_match_ipv6_next_hop_prefix_list = func; +} +  /* match metric */  void route_map_match_metric_hook(int (*func)(  	struct route_map_index *index, const char *command,  | 
