[Git][NTPsec/ntpsec][master] Add printout of non-standard port numbers

Hal Murray gitlab at mg.gitlab.com
Sun Mar 24 06:06:54 UTC 2019



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
0862e576 by Hal Murray at 2019-03-24T06:05:11Z
Add printout of non-standard port numbers
  when setting up servers via DNS or NTS

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
@@ -2284,7 +2284,10 @@ dns_take_server(
 		return;
 	}
 
-	msyslog(LOG_INFO, "DNS: Server taking: %s", socktoa(rmtadr));
+	if (NTP_PORT == SRCPORT(rmtadr))
+          msyslog(LOG_INFO, "DNS: Server taking: %s", socktoa(rmtadr));
+        else
+          msyslog(LOG_INFO, "DNS: Server taking: %s", sockporttoa(rmtadr));
 	server->cfg.flags &= (unsigned)~FLAG_LOOKUP;
 
 	server->srcadr = *rmtadr;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0862e57626d8b002de2071bd0e129072d15b7efb

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0862e57626d8b002de2071bd0e129072d15b7efb
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190324/3dff431c/attachment-0001.html>


More information about the vc mailing list