> From: Krzysztof Krawczyk <c...@denied.cx> > Date: 1999-09-15 13:12:21 -0700 > To: hack...@freebsd.org > Subject: ping: sendto: Message too long > In-reply-to: > <pine.bsf.4.10.9909131744020.88005-100...@resnet.uoregon.edu> > Delivered-to: freebsd-hackers@freebsd.org > X-Sender: c...@tepsa.lame.pl > X-Loop: FreeBSD.ORG > > Hi, > > Could someone say me, why the maximum packetsize in ping command is 8184 > (ping -s 8184)? If I want to do a bigger packetsize than this i got > message like this: My guess: this is a "socket buffer size" issue. There should be two ways around this: - change the code to have 'ping' set its socket buffer sizes based on the requested size - use 'sysctl' to change the system's default send/receive buffer sizes (see net.inet.raw.maxdgram, net.inet.raw.recvspace).
Naturally, I haven't tried this, or eyeballed the code, so treat this with some caution. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Manager, CoreOS Networking | Men are from Earth. Apple Computer, Inc. | Women are from Earth. 2 Infinite Loop | Deal with it. Cupertino, CA 95014 | *-------------------------------------*-------------------------------* To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message