diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-29 23:45:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-29 23:45:35 +0000 |
commit | a534e1795f262cf221970b30a9151364eb2e19ac (patch) | |
tree | 9adaa902d75f9812a2f5fc5e32b6e9b1ea13a088 /usr.sbin/inetd/inetd.c | |
parent | a44b5fcb800906231bc17bdb31d6eeea483a10ec (diff) |
udp spam on 6667
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 429e92226e5..3339e9c3ec5 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.12 1996/07/29 09:14:55 deraadt Exp $ */ +/* $OpenBSD: inetd.c,v 1.13 1996/07/29 23:45:34 deraadt Exp $ */ /* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/ -static char rcsid[] = "$OpenBSD: inetd.c,v 1.12 1996/07/29 09:14:55 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.13 1996/07/29 23:45:34 deraadt Exp $"; #endif /* not lint */ /* @@ -519,8 +519,11 @@ dg_badinput(sin) { if (ntohs(sin->sin_port) < IPPORT_RESERVED) return (1); + if (ntohs(sin->sin_port) == 6667) /* XXX IRC version */ + return (1); if (sin->sin_addr.s_addr == htonl(INADDR_BROADCAST)) return (1); + /* XXX compare against broadcast addresses in SIOCGIFCONF list? */ return (0); } |