}
done:
- logerrx("plumb %d %d %d", mux_fd, fd, arp_fd);
retval = 0;
out:
* This sucks, so we need to call RTM_GET to
* work out the interface. */
if (if_route_get(ctx, &rt) == NULL) {
- logerr(__func__);
- continue;
+ rt.rt_ifp = if_loopback(ctx);
+ if (rt.rt_ifp == NULL) {
+ logerr(__func__);
+ continue;
+ }
}
if_finishrt(ctx, &rt);
}
* This sucks, so we need to call RTM_GET to
* work out the interface. */
if (if_route_get(ctx, &rt) == NULL) {
- logerr(__func__);
- continue;
+ rt.rt_ifp = if_loopback(ctx);
+ if (rt.rt_ifp == NULL) {
+ logerr(__func__);
+ continue;
+ }
}
if_finishrt(ctx, &rt);
}