[Git][NTPsec/ntpsec][master] Hack to bypass packet intercepts.

Hal Murray gitlab at mg.gitlab.com
Mon Dec 14 10:22:12 UTC 2015


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
d0bfe9dc by Hal Murray at 2015-12-14T02:19:36Z
Hack to bypass packet intercepts.

- - - - -


1 changed file:

- ntpd/ntp_intercept.c


Changes:

=====================================
ntpd/ntp_intercept.c
=====================================
--- a/ntpd/ntp_intercept.c
+++ b/ntpd/ntp_intercept.c
@@ -653,6 +653,10 @@ void intercept_sendpkt(const char *legend,
 		  struct pkt *pkt, int len)
 {
     char pkt_dump[BUFSIZ], newpacket[BUFSIZ];
+if (1) {
+	sendpkt(dest, ep, ttl, pkt, len);
+	return;
+};
     packet_dump(pkt_dump, sizeof(pkt_dump), dest, pkt, len);
     snprintf(newpacket, sizeof(newpacket), "sendpkt %s %s\n", legend, pkt_dump);
 
@@ -675,6 +679,11 @@ void intercept_sendpkt(const char *legend,
 void intercept_receive(struct recvbuf *rbufp)
 {
     char pkt_dump[BUFSIZ], newpacket[BUFSIZ];
+if (1) {
+	receive(rbufp);
+	return;
+};
+
     packet_dump(pkt_dump, sizeof(pkt_dump),
 		&rbufp->recv_srcadr,
 		&rbufp->recv_pkt, rbufp->recv_length);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d0bfe9dc8121ce1eda7c66b118a98efa32e68cd0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151214/b51f3ec6/attachment.html>


More information about the vc mailing list