From owner-freebsd-hackers Thu Jan 18 12:29:03 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA00201 for hackers-outgoing; Thu, 18 Jan 1996 12:29:03 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA00191 for ; Thu, 18 Jan 1996 12:29:00 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA02012; Thu, 18 Jan 1996 15:28:56 -0500 Date: Thu, 18 Jan 1996 15:28:56 -0500 From: "Garrett A. Wollman" Message-Id: <9601182028.AA02012@halloran-eldar.lcs.mit.edu> To: Stephen Melvin Cc: hackers@freebsd.org Subject: How to set DF bit in outgoing packets? In-Reply-To: <199601180445.UAA01261@syzygy.zytek.com> References: <199601180445.UAA01261@syzygy.zytek.com> Sender: owner-hackers@freebsd.org Precedence: bulk < said: > < case IP_OFF: > < inp->inp_ip.ip_off = optval; > < break; > But, these changes don't work. The call succeeds, and the packet is > sent correctly, but the DF bit doesn't actually get set, or perhaps it > is cleared somewhere before being sent. You must be sending UDP packets. UDP doesn't use the template in the PCB except to initialize the TTL and TOS fields. You should be able to do what you want by fiddling udp_output(). -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant