* [PATCH] IPv6: Flowinfo fix in ip6_tunnel.c
@ 2003-11-05 11:35 Ville Nuorvala
2003-11-05 20:35 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ville Nuorvala @ 2003-11-05 11:35 UTC (permalink / raw)
To: davem; +Cc: netdev
Hi Dave,
would you also apply this minor patch? This makes the handling of
flowlabels consistent with the way flowlabels are passed from userspace
using sockopts.
Thanks,
Ville
===== net/ipv6/ip6_tunnel.c 1.13 vs edited =====
--- 1.13/net/ipv6/ip6_tunnel.c Wed Nov 5 09:52:58 2003
+++ edited/net/ipv6/ip6_tunnel.c Wed Nov 5 10:01:12 2003
@@ -810,9 +810,9 @@
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);
--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@tcs.hut.fi, phone: +358 (0)9 451 5257
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-05 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-05 11:35 [PATCH] IPv6: Flowinfo fix in ip6_tunnel.c Ville Nuorvala
2003-11-05 20:35 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).