diff options
author | Pavel Tvrdík <pawel.tvrdik@gmail.com> | 2016-01-07 18:17:16 +0100 |
---|---|---|
committer | Pavel Tvrdík <pawel.tvrdik@gmail.com> | 2016-01-07 18:21:31 +0100 |
commit | de9b87f55863f29eb7965d8a772f8a34f195f4ac (patch) | |
tree | 727486aa3727b3ef6ecff2fa589fa6e910caeb38 /filter | |
parent | e691d16a63ce40bc56ecbc970e8118686d4b0148 (diff) |
Add NET ROA4/6 structures
Diffstat (limited to 'filter')
-rw-r--r-- | filter/trie.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/trie.c b/filter/trie.c index 6e234af4..dad87339 100644 --- a/filter/trie.c +++ b/filter/trie.c @@ -269,7 +269,9 @@ trie_match_net(struct f_trie *t, const net_addr *n) int add = 0; switch (n->type) { case NET_IP4: - case NET_VPN4: add = IP6_MAX_PREFIX_LENGTH - IP4_MAX_PREFIX_LENGTH; + case NET_VPN4: + case NET_ROA4: + add = IP6_MAX_PREFIX_LENGTH - IP4_MAX_PREFIX_LENGTH; } return trie_match_prefix(t, net_prefix(n), net_pxlen(n) + add); |