Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Remove redundant logging.
details: https://anonhg.NetBSD.org/src/rev/dc5d88b7a7b8
branches: trunk
changeset: 332967:dc5d88b7a7b8
user: roy <roy%NetBSD.org@localhost>
date: Sun Oct 12 20:05:50 2014 +0000
description:
Remove redundant logging.
diffstat:
sys/netinet6/nd6_nbr.c | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
diffs (43 lines):
diff -r 1277e4da3d07 -r dc5d88b7a7b8 sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c Sun Oct 12 19:55:21 2014 +0000
+++ b/sys/netinet6/nd6_nbr.c Sun Oct 12 20:05:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_nbr.c,v 1.101 2014/09/09 20:16:12 rmind Exp $ */
+/* $NetBSD: nd6_nbr.c,v 1.102 2014/10/12 20:05:50 roy Exp $ */
/* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.101 2014/09/09 20:16:12 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.102 2014/10/12 20:05:50 roy Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1072,23 +1072,10 @@
int e;
sockaddr_in6_init(&all1_sa, &in6mask128, 0, 0, 0);
-
e = rtrequest(RTM_GET, ifa->ifa_addr, ifa->ifa_addr,
- (struct sockaddr *)&all1_sa, RTF_UP|RTF_HOST|RTF_LLINFO, &nrt);
- if (e != 0) {
- log(LOG_ERR, "nd6_newaddrmsg: "
- "RTM_GET operation failed for %s (errno=%d)\n",
- ip6_sprintf(&((struct in6_ifaddr *)ifa)->ia_addr.sin6_addr),
- e);
- }
-
+ (struct sockaddr *)&all1_sa, RTF_UP | RTF_HOST | RTF_LLINFO, &nrt);
if (nrt) {
rt_newaddrmsg(RTM_ADD, ifa, e, nrt);
-#if 0
- log(LOG_DEBUG, "nd6_newaddrmsg: announced %s\n",
- ip6_sprintf(&((struct in6_ifaddr *)ifa)->ia_addr.sin6_addr)
- );
-#endif
nrt->rt_refcnt--;
}
}
Home |
Main Index |
Thread Index |
Old Index