Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 1996 15:28:56 -0500
From:      "Garrett A. Wollman" <wollman@lcs.mit.edu>
To:        Stephen Melvin <melvin@zytek.com>
Cc:        hackers@freebsd.org
Subject:   How to set DF bit in outgoing packets?
Message-ID:  <9601182028.AA02012@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199601180445.UAA01261@syzygy.zytek.com>
References:  <199601180445.UAA01261@syzygy.zytek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 17 Jan 1996 20:45:24 -0800, Stephen Melvin <melvin@zytek.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601182028.AA02012>