diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c index c8eed0f..968a872 100644 --- a/sysdep/linux/netlink/netlink.c +++ b/sysdep/linux/netlink/netlink.c @@ -588,7 +588,7 @@ krt_capable(rte *e) switch (a->dest) { case RTD_ROUTER: - if (ipa_has_link_scope(a->gw) && (a->iface == NULL)) + if (a->iface == NULL) return 0; case RTD_DEVICE: case RTD_BLACKHOLE: @@ -660,8 +660,7 @@ nl_send_route(struct krt_proto *p, rte *e, struct ea_list *eattrs, int new) nl_add_attr_ipa(&r.h, sizeof(r), RTA_GATEWAY, a->gw); /* a->iface != NULL checked in krt_capable() */ - if (ipa_has_link_scope(a->gw)) - nl_add_attr_u32(&r.h, sizeof(r), RTA_OIF, a->iface->index); + nl_add_attr_u32(&r.h, sizeof(r), RTA_OIF, a->iface->index); break; case RTD_DEVICE: