1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00

fix ipv6 prefix-ranges.

This commit is contained in:
Alexandre Snarskii
2018-08-14 12:42:18 +03:00
parent d879f21686
commit f199f1a7c7
3 changed files with 17 additions and 3 deletions

View File

@@ -305,7 +305,11 @@ int
bgpq_expanded_v6prefix(char* prefix, struct bgpq_expander* ex,
struct bgpq_request* req)
{
bgpq_expander_add_prefix(ex,prefix);
char* d = strchr(prefix, '^');
if (!d)
bgpq_expander_add_prefix(ex,prefix);
else
bgpq_expander_add_prefix_range(ex,prefix);
return 1;
};