Comparison of kernel reject routes fixed.
This commit is contained in:
parent
12df4d909b
commit
cdc6bfa70f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue