aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index 4b6e6201ebc8..d0a74c8b66fd 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -2110,7 +2110,8 @@ syncookie_lookup(struct in_conninfo *inc, struct syncache_head *sch,
#ifdef INET6
case INC_ISIPV6:
if (sotoinpcb(lso)->inp_flags & IN6P_AUTOFLOWLABEL)
- sc->sc_flowlabel = sc->sc_iss & IPV6_FLOWLABEL_MASK;
+ sc->sc_flowlabel =
+ htonl(sc->sc_iss) & IPV6_FLOWLABEL_MASK;
break;
#endif
}