svn rev #23570: trunk/src/kdc/
raeburn@MIT.EDU
raeburn at MIT.EDU
Sat Jan 2 22:00:24 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23570
Commit By: raeburn
Log Message:
Ignore some routing messages indicating changes that don't affect our
set of local addresses.
Changed Files:
U trunk/src/kdc/network.c
Modified: trunk/src/kdc/network.c
===================================================================
--- trunk/src/kdc/network.c 2010-01-03 03:00:19 UTC (rev 23569)
+++ trunk/src/kdc/network.c 2010-01-03 03:00:24 UTC (rev 23570)
@@ -846,6 +846,30 @@
case RTM_IFINFO:
case RTM_OLDADD:
case RTM_OLDDEL:
+ /*
+ * Some flags indicate routing table updates that don't
+ * indicate local address changes. They may come from
+ * redirects, or ARP, etc.
+ *
+ * This set of symbols is just an initial guess based on
+ * some messages observed in real life; working out which
+ * other flags also indicate messages we should ignore,
+ * and which flags are portable to all system and thus
+ * don't need to be conditionalized, is left as a future
+ * exercise.
+ */
+#ifdef RTF_DYNAMIC
+ if (rtm.rtm_flags & RTF_DYNAMIC)
+ break;
+#endif
+#ifdef RTF_CLONED
+ if (rtm.rtm_flags & RTF_CLONED)
+ break;
+#endif
+#ifdef RTF_LLINFO
+ if (rtm.rtm_flags & RTF_LLINFO)
+ break;
+#endif
#if 0
krb5_klog_syslog(LOG_DEBUG,
"network reconfiguration message (%s) received",
More information about the cvs-krb5
mailing list