From: Danny Mayer Date: Sat, 16 Jul 2005 21:30:55 +0000 (-0400) Subject: Add debug code to print the broadcast interface used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44b4bd9278e08afff688f289bad22df0bb3cbbbd;p=thirdparty%2Fntp.git Add debug code to print the broadcast interface used bk: 42d97c8f6zRLqVN3pC_IJBCPh5eDig --- diff --git a/ntpd/ntp_peer.c b/ntpd/ntp_peer.c index 7afd65ad73..a6b79905f2 100644 --- a/ntpd/ntp_peer.c +++ b/ntpd/ntp_peer.c @@ -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.