From owner-freebsd-net@FreeBSD.ORG Tue Sep 20 12:45:43 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1B3216A41F for ; Tue, 20 Sep 2005 12:45:43 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34BEB43D48 for ; Tue, 20 Sep 2005 12:45:43 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 5E17246B80; Tue, 20 Sep 2005 08:45:42 -0400 (EDT) Date: Tue, 20 Sep 2005 13:45:42 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Milscvaer In-Reply-To: <20050918212110.61962.qmail@web54501.mail.yahoo.com> Message-ID: <20050920134408.Y34322@fledge.watson.org> References: <20050918212110.61962.qmail@web54501.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: UDP dont fragment bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 12:45:43 -0000 On Sun, 18 Sep 2005, Milscvaer wrote: > FreeBSD ought to add per-socket socket options to allow a programmer to > turn on and off the don't fragment bit for UDP and the UDP checksum, on > a per socket basis. > > FreeBSD needs to implement this feature. We requested this same feature > years ago and I cannot believe such a simple, basic feature is still not > implemented, or not documented in the setsockopt manpage anyhow. This > needs to be implemented. We need it. Trust me. For whatever reason, it turns out that you and only you have requested this feature. For typicaly network debugging applications, a raw socket is used, which allows the direct frobbing the the IP DF bit. For example, in traceroute(8). Could you tell us a bit more about the application and proposed use? Presumably forcing the DF bit isn't much use unless you can also retrieve useful reporting on the ICMP errors associated with needing the fragment? Robert N M Watson