[ntp:security] reproducing mode 7 ping pong

Danny Mayer mayer at ntp.org
Tue Oct 13 02:36:10 UTC 2009


I'm not sure why this is needed though it is interesting. I conducted
all of my testing using ntpdc itself to send bad packets and tested each
and every one of the error tests one at a time in my patch. I know that
my patch works and is ready to go.

Danny

Dave Hart wrote:
> 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
>  }
> _______________________________________________
> security mailing list
> security at lists.ntp.org
> https://lists.ntp.org/mailman/listinfo/security
> 
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the security mailing list