patch-2.3.43 linux/include/net/dsfield.h

Next file: linux/include/net/irda/nsc-ircc.h
Previous file: linux/include/net/atmclip.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/include/net/dsfield.h linux/include/net/dsfield.h
@@ -1,6 +1,6 @@
 /* include/net/dsfield.h - Manipulation of the Differentiated Services field */
 
-/* Written 1998 by Werner Almesberger, EPFL ICA */
+/* Written 1998-2000 by Werner Almesberger, EPFL ICA */
 
 
 #ifndef __NET_DSFIELD_H
@@ -46,7 +46,7 @@
         __u16 tmp;
 
 	tmp = ntohs(*(__u16 *) ipv6h);
-	tmp = (tmp & (mask << 4)) | (value << 4);
+	tmp = (tmp & ((mask << 4) | 0xf00f)) | (value << 4);
 	*(__u16 *) ipv6h = htons(tmp);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)