Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd ntpd: move route socket overflow ...
details: https://anonhg.NetBSD.org/src/rev/ab987ba02066
branches: trunk
changeset: 980302:ab987ba02066
user: roy <roy%NetBSD.org@localhost>
date: Sun Jan 31 08:26:47 2021 +0000
description:
ntpd: move route socket overflow message from LOG_ERR to LOG_DEBUG
While here stop caring about RTM_LOSING as that's purely informational.
If routing does change then we get RTM_ADD/DEL/CHANGE.
Also stop caring about RTM_IFANNOUNCE as we really only want addresses
and interface flag updates which we get by RTM_NEWADDR/DELADDR/CHGADDR and
RTM_IFINFO.
diffstat:
external/bsd/ntp/dist/ntpd/ntp_io.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
diffs (53 lines):
diff -r bb648c4874a5 -r ab987ba02066 external/bsd/ntp/dist/ntpd/ntp_io.c
--- a/external/bsd/ntp/dist/ntpd/ntp_io.c Sun Jan 31 08:14:58 2021 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_io.c Sun Jan 31 08:26:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_io.c,v 1.29 2021/01/03 15:33:05 roy Exp $ */
+/* $NetBSD: ntp_io.c,v 1.30 2021/01/31 08:26:47 roy Exp $ */
/*
* ntp_io.c - input/output routines for ntpd. The socket-opening code
@@ -4730,8 +4730,9 @@
if (cnt < 0) {
if (errno == ENOBUFS) {
- msyslog(LOG_ERR,
- "routing socket reports: %m");
+ msyslog(LOG_DEBUG,
+ "routing socket overflowed"
+ " - will update interfaces");
/*
* drain the routing socket as we need to update
* the interfaces anyway
@@ -4792,15 +4793,9 @@
#ifdef RTM_CHANGE
case RTM_CHANGE:
#endif
-#ifdef RTM_LOSING
- case RTM_LOSING:
-#endif
#ifdef RTM_IFINFO
case RTM_IFINFO:
#endif
-#ifdef RTM_IFANNOUNCE
- case RTM_IFANNOUNCE:
-#endif
#ifdef RTM_NEWLINK
case RTM_NEWLINK:
#endif
@@ -4874,15 +4869,9 @@
#ifdef RTM_CHANGE
RTM_CHANGE,
#endif
-#ifdef RTM_LOSING
- RTM_LOSING,
-#endif
#ifdef RTM_IFINFO
RTM_IFINFO,
#endif
-#ifdef RTM_IFANNOUNCE
- RTM_IFANNOUNCE,
-#endif
#ifdef RTM_NEWLINK
RTM_NEWLINK,
#endif
Home |
Main Index |
Thread Index |
Old Index