[ovs-dev] [PATCH 1/9] tunneling: Include IP TTL in flow metadata.

Jesse Gross jesse at nicira.com
Mon Mar 30 22:14:44 UTC 2015


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 <jesse at 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




More information about the dev mailing list