diff --git a/kernel_netlink.c b/kernel_netlink.c index 507f779d03dab16f291519750140105e858151b8..b0f616fb238e157d69a829dccb7dcdb986490d2c 100644 --- a/kernel_netlink.c +++ b/kernel_netlink.c @@ -614,7 +614,6 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen, int len = sizeof(buf.raw); int rc, ipv4; - if(!nl_setup) { fprintf(stderr,"kernel_route: netlink not initialized.\n"); errno = EIO; @@ -693,6 +692,7 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen, else rtm->rtm_type = RTN_UNREACHABLE; rtm->rtm_protocol = RTPROT_BABEL; + rtm->rtm_flags |= RTNH_F_ONLINK; rta = RTM_RTA(rtm);