From owner-freebsd-hackers Wed Sep 15 13:43:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-out1.apple.com (mail-out1.apple.com [17.254.0.52]) by hub.freebsd.org (Postfix) with ESMTP id 16C6214FFE for ; Wed, 15 Sep 1999 13:43:29 -0700 (PDT) (envelope-from justin@rhapture.apple.com) Received: from scv2.apple.com (A17-129-100-139.apple.com [17.129.100.139]) by mail-out1.apple.com (8.9.3/8.9.3) with ESMTP id NAA09614 for ; Wed, 15 Sep 1999 13:43:28 -0700 (PDT) Received: from rhapture.apple.com (rhapture.apple.com [17.202.40.59]) by scv2.apple.com (8.9.3/8.9.3) with ESMTP id NAA16281 for ; Wed, 15 Sep 1999 13:43:28 -0700 (PDT) Received: (from justin@localhost) by rhapture.apple.com (8.9.1/8.9.1) id NAA00772 for hackers@FreeBSD.ORG; Wed, 15 Sep 1999 13:43:28 -0700 (PDT) Message-Id: <199909152043.NAA00772@rhapture.apple.com> To: hackers@FreeBSD.ORG Subject: Re: ping: sendto: Message too long In-Reply-To: Date: Wed, 15 Sep 1999 13:43:26 -0700 From: "Justin C. Walker" Reply-To: justin@apple.com X-Mailer: by Apple MailViewer (2.105.dev) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Krzysztof Krawczyk > Date: 1999-09-15 13:12:21 -0700 > To: hackers@FreeBSD.ORG > Subject: ping: sendto: Message too long > In-reply-to: > > Delivered-to: freebsd-hackers@freebsd.org > X-Sender: cys@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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message