[Bug 259553] add host 127.0.0.1: gateway lo0 fib 0: route already in table

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Feb 2022 12:22:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259553

Nick Hibma <nick@van-laarhoven.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |melifaro@FreeBSD.org,
                   |                            |nick@van-laarhoven.org

--- Comment #2 from Nick Hibma <nick@van-laarhoven.org> ---
I find these errors annoying as well.

If I am not mistaken this addition of the route to the interface's net is done
already in netinet/in.c:1581 (12.3) :


        /*
         * Add route for the network.
         */
        if (vhid == 0) {
                int flags = RTF_UP;

                if (ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT))
                        flags |= RTF_HOST;

                error = in_addprefix(ia, flags);
                if (error)
                        goto fail1;
        }

So, the addition of _loopback for the inet and inet6 case can be removed IMHO.

Adding melifaro to CC:. He made changes in in.c related to this
(https://reviews.freebsd.org/D28246) handling PR #252883

-- 
You are receiving this mail because:
You are the assignee for the bug.