]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add debug code to print the broadcast interface used
authorDanny Mayer <mayer@ntp.org>
Sat, 16 Jul 2005 21:30:55 +0000 (17:30 -0400)
committerDanny Mayer <mayer@ntp.org>
Sat, 16 Jul 2005 21:30:55 +0000 (17:30 -0400)
bk: 42d97c8f6zRLqVN3pC_IJBCPh5eDig

ntpd/ntp_peer.c

index 7afd65ad732cf3ef19e7c90a9f10e8cc63620e2f..a6b79905f29666375cfa51832b88d715c7e1a2f3 100644 (file)
@@ -575,6 +575,11 @@ newpeer(
                peer->dstadr = loopback_interface;
        else if (cast_flags & (MDF_BCLNT | MDF_ACAST | MDF_MCAST | MDF_BCAST)) {
                peer->dstadr = findbcastinter(srcadr);
+#ifdef DEBUG
+               if (debug > 1)
+                       printf("Found broadcast interface address %s, for address %s\n",
+                               stoa(&(peer->dstadr)->sin), stoa(srcadr));
+#endif
                /*
                 * If it was a multicast packet, findbcastinter() may not
                 * find it, so try a little harder.