netdev-vport: Fix ToS/TTL mixup in unparsing.
authorJesse Gross <jesse@nicira.com>
Tue, 25 Sep 2012 20:22:08 +0000 (13:22 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 25 Sep 2012 21:03:00 +0000 (14:03 -0700)
When unparsing the kernel tunnel configuration, TTL was incorrectly
converted to "tos".  Although it leads to confusing configuration
output, actual operation is not affected.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
lib/netdev-vport.c

index 1721f6b..7baceb4 100644 (file)
@@ -804,10 +804,10 @@ unparse_tunnel_config(const char *name OVS_UNUSED, const char *type OVS_UNUSED,
     }
 
     if (flags & TNL_F_TTL_INHERIT) {
-        smap_add(args, "tos", "inherit");
+        smap_add(args, "ttl", "inherit");
     } else if (a[OVS_TUNNEL_ATTR_TTL]) {
         int ttl = nl_attr_get_u8(a[OVS_TUNNEL_ATTR_TTL]);
-        shash_add(args, "tos", xasprintf("%d", ttl));
+        shash_add(args, "ttl", xasprintf("%d", ttl));
     }
 
     if (flags & TNL_F_TOS_INHERIT) {