0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Comparison of kernel reject routes fixed.

This commit is contained in:
Martin Mares 1998-12-07 10:16:15 +00:00
parent 12df4d909b
commit cdc6bfa70f

View File

@ -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;
}