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

Pritesh Kothari (pritkoth) pritkoth at cisco.com
Mon Mar 30 22:41:40 UTC 2015


Acked-by: Pritesh Kothari <pritesh.kothari at cisco.com>

> On Mar 30, 2015, at 3:14 PM, Jesse Gross <jesse at nicira.com> wrote:
> 
> 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
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev




More information about the dev mailing list