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:20:00 +0000 (17:20 -0700)
commitf1a8ff5cb88ffa3ce2277b6cb50a17072e7dff54
tree79f7092b8bce03812f41fa9ed489b9fc1bdd51c1
parentcf49ad972f69b1f4a0e9e1d8f42930eb0d2cc616
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.c
ofproto/tunnel.c
ofproto/tunnel.h
tests/ofproto-dpif.at