Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -p -r1.36 -r1.37 --- src/sys/netinet/udp_usrreq.c 1996/09/16 17:45:19 1.36 +++ src/sys/netinet/udp_usrreq.c 1996/09/30 16:16:45 1.37 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.36 1996/09/16 17:45:19 mycroft Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.37 1996/09/30 16:16:45 ws Exp $ */ /* * Copyright (c) 1982, 1986, 1988, 1990, 1993 @@ -34,6 +34,7 @@ * * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94 */ +#include "kgdb.h" #include #include @@ -280,6 +281,16 @@ udp_input(m, va_alist) } *ip = save_ip; ip->ip_len += iphlen; +#if NKGDB > 0 + if (checkkgdb(&ip->ip_src, + uh->uh_sport, + uh->uh_dport, + m, + iphlen + sizeof(struct udphdr), + len - sizeof(struct udphdr))) + /* It was a debugger connect packet, just drop it now */ + goto bad; +#endif icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0); return; }