svn commit: r357112 - stable/11/sys/net
Eugene Grosbein
eugen at FreeBSD.org
Sat Jan 25 09:22:29 UTC 2020
Author: eugen
Date: Sat Jan 25 09:22:28 2020
New Revision: 357112
URL: https://svnweb.freebsd.org/changeset/base/357112
Log:
MFC r356863: ifa_maintain_loopback_route: adjust debugging output
Modified:
stable/11/sys/net/if.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/if.c
==============================================================================
--- stable/11/sys/net/if.c Sat Jan 25 09:12:20 2020 (r357111)
+++ stable/11/sys/net/if.c Sat Jan 25 09:22:28 2020 (r357112)
@@ -1831,9 +1831,13 @@ ifa_maintain_loopback_route(int cmd, const char *otype
error = rtrequest1_fib(cmd, &info, NULL, ifp->if_fib);
- if (error != 0)
- log(LOG_DEBUG, "%s: %s failed for interface %s: %u\n",
- __func__, otype, if_name(ifp), error);
+ if (error == 0 ||
+ (cmd == RTM_ADD && error == EEXIST) ||
+ (cmd == RTM_DELETE && (error == ENOENT || error == ESRCH)))
+ return (error);
+
+ log(LOG_DEBUG, "%s: %s failed for interface %s: %u\n",
+ __func__, otype, if_name(ifp), error);
return (error);
}
More information about the svn-src-stable
mailing list