mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Comparison of kernel reject routes fixed.
This commit is contained in:
parent
12df4d909b
commit
cdc6bfa70f
@ -113,12 +113,14 @@ krt_parse_entry(byte *e, struct krt_proto *p)
|
||||
case RTD_DEVICE:
|
||||
#ifdef CONFIG_AUTO_ROUTES
|
||||
ok = 1;
|
||||
/* FIXME: What about static interface routes? */
|
||||
#else
|
||||
ok = !(flags & RTF_GATEWAY) && !strcmp(iface, a->iface->name);
|
||||
#endif
|
||||
break;
|
||||
case RTD_UNREACHABLE:
|
||||
ok = flags & RTF_REJECT;
|
||||
break;
|
||||
default:
|
||||
ok = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user