From owner-freebsd-hackers Thu Jan 7 00:11:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA22594 for freebsd-hackers-outgoing; Thu, 7 Jan 1999 00:11:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fep1-orange.clear.net.nz (fep1-orange.clear.net.nz [203.97.32.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA22587 for ; Thu, 7 Jan 1999 00:11:09 -0800 (PST) (envelope-from jabley@buddha.clear.net.nz) Received: from buddha.clear.net.nz (buddha.clear.net.nz [192.168.24.106]) by fep1-orange.clear.net.nz (1.5/1.11) with ESMTP id VAA27985; Thu, 7 Jan 1999 21:10:39 +1300 (NZDT) Received: (from jabley@localhost) by buddha.clear.net.nz (8.9.1/8.9.1) id VAA14297; Thu, 7 Jan 1999 21:10:36 +1300 (NZDT) (envelope-from jabley) Date: Thu, 7 Jan 1999 21:10:36 +1300 From: Joe Abley To: Wes Peters Cc: freebsd-hackers@FreeBSD.ORG, jabley@clear.co.nz Subject: Re: setting DF bit Message-ID: <19990107211036.A14269@clear.co.nz> References: <19990107135107.B12785@clear.co.nz> <36940A44.89628F8B@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <36940A44.89628F8B@softweyr.com>; from Wes Peters on Wed, Jan 06, 1999 at 06:13:40PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 06, 1999 at 06:13:40PM -0700, Wes Peters wrote: > Joe Abley wrote: > > How do arrange for the DF bit in the IP header to be set for a given > > connected socket? > > > > I was expecting to find a sockopt, but I can't find one... > > And won't. "sysctl -w net.inet.ip.sourceroute 1" will turn on DF > system-wide, setting it to zero (the default) will turn it back off. So what is the approved manner for doing a ping with the "DF" bit set? In the interests of testing, we need to set the DF bit in our icmp echo request. I do not want to set the DF bit on _everything_ though. Why do you say "won't"? Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message