24.02.2018 3:12, Andreas Longwitz wrote:

> Also the loopback route can not be deleted manually:
> 
> route delete 10.0.0.100 -->
> route: writing to routing socket: Address already in use
> delete host 10.0.0.100 fib 0: gateway uses the same route

Please test the follwoind patch for the kernel:

--- sys/net/if.c.orig   2018-02-24 08:00:34.578670000 +0700
+++ sys/net/if.c        2018-02-24 11:07:57.014318000 +0700
@@ -1699,7 +1699,7 @@ ifa_del_loopback_route(struct ifaddr *if
        null_sdl.sdl_type = ifa->ifa_ifp->if_type;
        null_sdl.sdl_index = ifa->ifa_ifp->if_index;
        bzero(&info, sizeof(info));
-       info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC;
+       info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC | RTF_PINNED;
        info.rti_info[RTAX_DST] = ia;
        info.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&null_sdl;
        error = rtrequest1_fib(RTM_DELETE, &info, NULL, ifa->ifa_ifp->if_fib);

_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to