Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 18:20:07 -0800 (PST)
From:      larse@isi.edu
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/25050: inetd UDP echo service echos only 8K
Message-ID:  <200102130220.f1D2K7O92919@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <netinet/in.h>
 
 #include <stdio.h>
+#include <sys/types.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
 
-#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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102130220.f1D2K7O92919>