From owner-freebsd-bugs Mon Feb 12 18:30:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E755137B699 for ; Mon, 12 Feb 2001 18:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1D2U1T93522; Mon, 12 Feb 2001 18:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 60B6337B491 for ; Mon, 12 Feb 2001 18:20:07 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1D2K7O92919; Mon, 12 Feb 2001 18:20:07 -0800 (PST) (envelope-from nobody) Message-Id: <200102130220.f1D2K7O92919@freefall.freebsd.org> Date: Mon, 12 Feb 2001 18:20:07 -0800 (PST) From: larse@isi.edu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/25050: inetd UDP echo service echos only 8K Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25050 >Category: misc >Synopsis: inetd UDP echo service echos only 8K >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 12 18:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Lars Eggert >Release: 4.2-RELEASE >Organization: >Environment: FreeBSD hbo.isi.edu 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Thu Feb 8 15:46:59 PST 2001 root@pbs.isi.edu:/usr/kame/freebsd4/sys/compile/KERNEL-1.12-KAME i386 >Description: The built-in echo service of inetd only echoes UDP packets up to 8K in length. This is not really in conformance with RFC862, which specifies no such length limit (ftp://ftp.isi.edu/in-notes/rfc862.txt): UDP Based Echo Service Another echo service is defined as a datagram based application on UDP. A server listens for UDP datagrams on UDP port 7. When a datagram is received, the data from it is sent back in an answering datagram. >How-To-Repeat: >Fix: Index: inetd.h =================================================================== RCS file: /home/xbone/CVSROOT/kame/freebsd4/usr.sbin/inetd/inetd.h,v retrieving revision 1.1 diff -u -r1.1 inetd.h --- inetd.h 2001/02/09 20:21:07 1.1 +++ inetd.h 2001/02/13 02:17:35 @@ -39,8 +39,11 @@ #include #include +#include +#include +#include -#define BUFSIZE 8192 +#define BUFSIZE IP_MAXPACKET #define LINESIZ 72 #define NORM_TYPE 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message