]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
use (peer->pmode == MODE_BROADCAST) rather than
authorDave Hart <hart@ntp.org>
Tue, 17 Nov 2009 04:25:42 +0000 (04:25 +0000)
committerDave Hart <hart@ntp.org>
Tue, 17 Nov 2009 04:25:42 +0000 (04:25 +0000)
  (peer->castflags & MDF_BCLNT) to detect ephemeral broadcastclient
  associations to exempt from peer_clear("XFAC")

bk: 4b0225c6TAVAd4S4kemfUVbARVyduw

ChangeLog
ntpd/ntp_peer.c

index f8007b687101fd30c3d116061393e3055714f81a..985a0965737e0166736343f16817ac95da7f65aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 1378] Unnecessary resetting of peers during interface update.
 (4.2.5p245-RC) 2009/11/14 Released by Harlan Stenn <stenn@ntp.org>
 * Cleanup from Dave Mills.
 * [Bug 1343] sntp illegal C does not compile on Solaris 7.
index e951a62d07332aa4ce479fa3cdbd32d571e14bc5..1a800bd2ba10164840e0afe443aa3eab3dbdb5df 100644 (file)
@@ -589,7 +589,7 @@ peer_refresh_interface(
                 * clear crypto if we change the local address
                 */
                if (peer->dstadr != piface && !(peer->cast_flags &
-                   (MDF_ACAST | MDF_BCLNT)))
+                   MDF_ACAST) && peer->pmode != MODE_BROADCAST)
                        peer_clear(peer, "XFAC");
 
                /*