netdev
[Top] [All Lists]

[IPv6] Add option to copy DSCP in decap in ip6_tunnel

To: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
Subject: [IPv6] Add option to copy DSCP in decap in ip6_tunnel
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Sep 2004 21:19:43 +1000
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040722i
Hi Dave:

Here is a patch that allows the copying of the DSCP during decapsulation
for ip6_tunnel.  I've made it a separate option from the one that
determines the copying during encapsulation since the DSCP processing
may be asymmetric.  It also means that we preserve compatibility should
anyone be relying on the current behaviour.

inet_ecn.h might appear to be an odd place for ipv6_copy_dscp, but
I couldn't put it in dsfield.h since I want to use ipv6_get_dsfield
in inet_ecn.h later on.  The other alternative would be to define
INET_ECN_MASK in dsfield.h.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Attachment: p
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>