]> git.hungrycats.org Git - linux/commit
[INET]: Create enum of ECN bits
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Jul 2004 05:16:19 +0000 (22:16 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 22 Jul 2004 05:16:19 +0000 (22:16 -0700)
commit4d4eae2c279bd4f8e62847dd7cdf14f5019fb084
tree1f73d7d7522bcb362b1b05bfe31e94643e950b14
parent84d6ce4449edc8f7702ea0b8b478bcd280ca8382
[INET]: Create enum of ECN bits

This patch is a preparation for an update of the ECN encap/decap
code with respect to RFC3168.

It creates an enum of the four code-points defined by RFC3168
and uses them throughout the inet_ecn.h file.

The only non-trivial bit is in IP_ECN_set_ce/IP6_ECN_set_ce where
the patch uses INET_ECN_CE instead of 1.  This is OK as those
functions assume that the ECT bit is already set.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
include/net/inet_ecn.h