summaryrefslogtreecommitdiff
path: root/sys/netinet6/mld6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-15 07:08:01 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-15 07:08:01 +0000
commitab822740b30eed312f5eca401d6bea66bab4b997 (patch)
tree09b57ee6db9cce57e09cf54b69f1200dad319af9 /sys/netinet6/mld6.c
parentf5355192bdcc9b6c2df0183084e9014bc661693f (diff)
do not overwrite traffic class portion when filling in IPv6 version field.
Diffstat (limited to 'sys/netinet6/mld6.c')
-rw-r--r--sys/netinet6/mld6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index d9066563b6e..cbeb979eaa9 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mld6.c,v 1.2 1999/12/10 10:04:28 angelos Exp $ */
+/* $OpenBSD: mld6.c,v 1.3 1999/12/15 07:08:00 itojun Exp $ */
/*
* Copyright (C) 1998 WIDE Project.
@@ -395,7 +395,8 @@ mld6_sendpkt(in6m, type, dst)
/* fill in the ip6 header */
ip6 = mtod(mh, struct ip6_hdr *);
ip6->ip6_flow = 0;
- ip6->ip6_vfc = IPV6_VERSION;
+ ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
+ ip6->ip6_vfc |= IPV6_VERSION;
/* ip6_plen will be set later */
ip6->ip6_nxt = IPPROTO_ICMPV6;
/* ip6_hlim will be set by im6o.im6o_multicast_hlim */