The IP TTL is currently omitted in the extracted tunnel information
that is stored in the flow for userspace tunneling. This includes it
so that the same logic used by the kernel also applies.

Signed-off-by: Jesse Gross <je...@nicira.com>
---
 lib/netdev-vport.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c
index 211edc7..d4de0d1 100644
--- a/lib/netdev-vport.c
+++ b/lib/netdev-vport.c
@@ -842,6 +842,7 @@ ip_extract_tnl_md(struct dp_packet *packet, struct flow_tnl 
*tnl)
     tnl->ip_src = get_16aligned_be32(&nh->ip_src);
     tnl->ip_dst = get_16aligned_be32(&nh->ip_dst);
     tnl->ip_tos = nh->ip_tos;
+    tnl->ip_ttl = nh->ip_ttl;
 
     return l4;
 }
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to