diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-05-26 14:40:39 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-05-26 14:40:39 +0000 |
commit | aff3c2bc06466695a45ea52e4285c89cce24de76 (patch) | |
tree | 32c41b5b20a1b7f857b0fc195eac75a16cee119a /usr.sbin/inetd | |
parent | c4a5325a948370d7cab8bf684072712d06225479 (diff) | |
download | FreeBSD-src-aff3c2bc06466695a45ea52e4285c89cce24de76.zip FreeBSD-src-aff3c2bc06466695a45ea52e4285c89cce24de76.tar.gz |
Make dg_echo return up to the first 65536 bytes of a datagram.
The patch I used isn't quite the one Lars suggested, but the size
of the largest datagram you can recv isn't #defined anywhere, and
probably isn't even bounded for some protocols.
PR: 25050
Submitted by: Lars Eggert <larse@isi.edu>
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index ad0160b..49cd12d 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -267,7 +267,7 @@ echo_dg(s, sep) /* Echo service -- echo data back */ int s; struct servtab *sep; { - char buffer[BUFSIZE]; + char buffer[65536]; /* Should be sizeof(max datagram). */ int i; socklen_t size; struct sockaddr_storage ss; |