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: case RTD_DEVICE:
#ifdef CONFIG_AUTO_ROUTES #ifdef CONFIG_AUTO_ROUTES
ok = 1; ok = 1;
/* FIXME: What about static interface routes? */
#else #else
ok = !(flags & RTF_GATEWAY) && !strcmp(iface, a->iface->name); ok = !(flags & RTF_GATEWAY) && !strcmp(iface, a->iface->name);
#endif #endif
break; break;
case RTD_UNREACHABLE: case RTD_UNREACHABLE:
ok = flags & RTF_REJECT; ok = flags & RTF_REJECT;
break;
default: default:
ok = 0; ok = 0;
} }