From 28a058fe89b0411761100888907560b84486e59f Mon Sep 17 00:00:00 2001 From: Ville Nuorvala Date: Tue, 4 Nov 2003 20:37:08 -0800 Subject: [PATCH] [IPV6]: In ip6ip6 tunnel, user provides flowlabel in network byte order. --- net/ipv6/ip6_tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index ebe322d5d2cfc..148c615108708 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -810,9 +810,9 @@ static void ip6ip6_tnl_link_config(struct ip6_tnl *t) fl->fl6_flowlabel = 0; if (!(p->flags&IP6_TNL_F_USE_ORIG_TCLASS)) - fl->fl6_flowlabel |= IPV6_TCLASS_MASK & htonl(p->flowinfo); + fl->fl6_flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; if (!(p->flags&IP6_TNL_F_USE_ORIG_FLOWLABEL)) - fl->fl6_flowlabel |= IPV6_FLOWLABEL_MASK & htonl(p->flowinfo); + fl->fl6_flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; ip6_tnl_set_cap(t); -- 2.53.0