svn rev #22005: trunk/src/kdc/
raeburn@MIT.EDU
raeburn at MIT.EDU
Fri Feb 13 17:23:24 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22005
Commit By: raeburn
Log Message:
Be less verbose about routing-socket messages.
Changed Files:
U trunk/src/kdc/network.c
Modified: trunk/src/kdc/network.c
===================================================================
--- trunk/src/kdc/network.c 2009-02-13 22:05:48 UTC (rev 22004)
+++ trunk/src/kdc/network.c 2009-02-13 22:23:24 UTC (rev 22005)
@@ -809,7 +809,6 @@
int n_read;
struct rt_msghdr rtm;
- krb5_klog_syslog(LOG_INFO, "routing socket readable");
while ((n_read = read(conn->fd, &rtm, sizeof(rtm))) > 0) {
if (n_read < sizeof(rtm)) {
/* Quick hack to figure out if the interesting
@@ -828,10 +827,12 @@
return;
}
}
+#if 0
krb5_klog_syslog(LOG_INFO,
"got routing msg type %d(%s) v%d",
rtm.rtm_type, rtm_type_name(rtm.rtm_type),
rtm.rtm_version);
+#endif
if (rtm.rtm_msglen > sizeof(rtm)) {
/* It appears we get a partial message and the rest is
thrown away? */
@@ -848,7 +849,11 @@
case RTM_IFINFO:
case RTM_OLDADD:
case RTM_OLDDEL:
- krb5_klog_syslog(LOG_INFO, "reconfiguration needed");
+#if 0
+ krb5_klog_syslog(LOG_DEBUG,
+ "network reconfiguration message (%s) received",
+ rtm_type_name(rtm.rtm_type));
+#endif
network_reconfiguration_needed = 1;
break;
case RTM_RESOLVE:
@@ -861,10 +866,14 @@
case RTM_LOSING:
case RTM_GET:
/* Not interesting. */
+#if 0
krb5_klog_syslog(LOG_DEBUG, "routing msg not interesting");
+#endif
break;
default:
- krb5_klog_syslog(LOG_INFO, "unhandled routing message type, will reconfigure just for the fun of it");
+ krb5_klog_syslog(LOG_INFO,
+ "unhandled routing message type %d, will reconfigure just for the fun of it",
+ rtm.rtm_type);
network_reconfiguration_needed = 1;
break;
}
@@ -1610,7 +1619,9 @@
}
if (network_reconfiguration_needed) {
- krb5_klog_syslog(LOG_INFO, "network reconfiguration needed");
+ /* No point in re-logging what we've just logged. */
+ if (netchanged == 0)
+ krb5_klog_syslog(LOG_INFO, "network reconfiguration needed");
/* It might be tidier to add a timer-callback interface to
the control loop here, but for this one use, it's not a
big deal. */
More information about the cvs-krb5
mailing list