IPTOS constants
Damien Miller
djm at mindrot.org
Thu May 5 11:50:59 EST 2011
On Tue, 3 May 2011, Dag-Erling Sm?rgrav wrote:
> defines.h defines a bunch of IPTOS constants if they're not already
> available:
>
> #ifndef IPTOS_LOWDELAY
> # define IPTOS_LOWDELAY 0x10
> # define IPTOS_THROUGHPUT 0x08
> # define IPTOS_RELIABILITY 0x04
> # define IPTOS_LOWCOST 0x02
> # define IPTOS_MINCOST IPTOS_LOWCOST
> #endif /* IPTOS_LOWDELAY */
>
> A few lines further down, it includes <netinet/ip.h>, which is where
> those constants are defined (at least in FreeBSD).
>
> --- /home/des/freebsd/base/vendor-crypto/openssh/dist/defines.h
> 2011-01-17 11:15:31.000000000 +0100
> +++ defines.h 2011-05-03 22:34:47.724047823 +0200
applied - thanks.
> These include directives should really be moved to includes.h - in fact,
> <netinet/in_systm.h> is already there.
I'm a bit ambivalent about this - includes.h is a bit of a dump that I'd
like to do away with (but probably won't). defines.h actually exists for
a reason other than laziness :)
-d
More information about the openssh-unix-dev
mailing list