tunnel: Don't wildcard TTL and TOS in some circumstances.
authorJustin Pettit <jpettit@nicira.com>
Thu, 13 Jun 2013 23:46:33 +0000 (16:46 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 14 Jun 2013 00:06:00 +0000 (17:06 -0700)
commitd4f4a9b25251d8279f5287142bc84f637101ee77
tree14bfae5977f36cb326095307ae44721172fcaae8
parent32383c3bd064fb87ec2b366569ba1185698c2e6d
tunnel: Don't wildcard TTL and TOS in some circumstances.

For tunnels, we need to handle the facet's wildcards specially in a
couple of cases:

    - Don't wildcard TTL for facets if "ttl" option is "inherit".
    - Never wildcard the ECN bits, since they are always inherited.
    - Wildcard the rest of the TOS field if the "tos" option is "inherit".

Issue #17911

Signed-off-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif-xlate.c
ofproto/tunnel.c
ofproto/tunnel.h
tests/ofproto-dpif.at