Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2018 07:50:26 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd@pdx.rh.CN85.dnsmgr.net>
To:        =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
Cc:        rgrimes@freebsd.org, src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r333476 - head/sys/net
Message-ID:  <201805111450.w4BEoQRS075792@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <86wowauumi.fsf@next.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
> This booted and runs without issue, although obviously I wouldn't want
> to commit it:

Looks pretty close to what I did the first time.
We could also wrap this in my proposed ifdef,
and add a sysctl() to turn it on and off though
it would probably be beter to do that in the code
areas that bde patches this out.

> 
> Index: sys/net/if.c
> ===================================================================
> --- sys/net/if.c	(revision 333490)
> +++ sys/net/if.c	(working copy)
> @@ -1814,6 +1814,7 @@
>  ifa_maintain_loopback_route(int cmd, const char *otype, struct ifaddr *ifa,
>      struct sockaddr *ia)
>  {
> +#if 0
#ifdef MAINTAIN_LOOPBACK_ROUTE

>  	int error;
>  	struct rt_addrinfo info;
>  	struct sockaddr_dl null_sdl;
> @@ -1837,6 +1838,9 @@
>  		if_printf(ifp, "%s failed: %d\n", otype, error);
>  
>  	return (error);
> +#else
> +	return (0);
> +#endif
>  }
>  
>  int
> 
> DES
> -- 
> Dag-Erling Sm?rgrav - des@des.no
> 
> 

-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805111450.w4BEoQRS075792>