svn commit: r333476 - head/sys/net

Rodney W. Grimes freebsd at pdx.rh.CN85.dnsmgr.net
Fri May 11 14:50:35 UTC 2018


> 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 at des.no
> 
> 

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the svn-src-all mailing list