diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-10 00:55:34 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-10 00:55:34 +0100 |
commit | 7fc55925beb06059759294e0e9b7bae45465395f (patch) | |
tree | 9f1ee1b354094aab25f64892f0f5dd1afeafdd26 /nest/rt-table.c | |
parent | ed1d853e5147376086e25f5edae9804cf242d6e0 (diff) |
Several minor fixes
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index c42d3a97..b0dd6d3f 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -897,7 +897,9 @@ rte_validate(rte *e) return 0; } - c = net_classify(n->n.addr); + /* FIXME: better handling different nettypes */ + c = !net_is_flow(n->n.addr) ? + net_classify(n->n.addr): (IADDR_HOST | SCOPE_UNIVERSE); if ((c < 0) || !(c & IADDR_HOST) || ((c & IADDR_SCOPE_MASK) <= SCOPE_LINK)) { log(L_WARN "Ignoring bogus route %N received via %s", |