When I was updating the checksum flags on the mbuf(9) man page, naddy@
pointed out that the M_{TCP,UDP}_CSUM_IN_* flags are also used for TCP
or UDP checksums over IPv6 and not just IPv4.

Therefore this diff removes "/IPv4" in the comments of those flags in
mbuf.h.

OK?


Index: mbuf.h
===================================================================
RCS file: /cvs/src/sys/sys/mbuf.h,v
retrieving revision 1.162
diff -u -p -r1.162 mbuf.h
--- mbuf.h      29 Mar 2013 13:16:14 -0000      1.162
+++ mbuf.h      31 Mar 2013 17:32:48 -0000
@@ -188,10 +188,10 @@ struct mbuf {
 #define        M_UDP_CSUM_OUT          0x0004  /* UDP checksum needed */
 #define        M_IPV4_CSUM_IN_OK       0x0008  /* IPv4 checksum verified */
 #define        M_IPV4_CSUM_IN_BAD      0x0010  /* IPv4 checksum bad */
-#define        M_TCP_CSUM_IN_OK        0x0020  /* TCP/IPv4 checksum verified */
-#define        M_TCP_CSUM_IN_BAD       0x0040  /* TCP/IPv4 checksum bad */
-#define        M_UDP_CSUM_IN_OK        0x0080  /* UDP/IPv4 checksum verified */
-#define        M_UDP_CSUM_IN_BAD       0x0100  /* UDP/IPv4 checksum bad */
+#define        M_TCP_CSUM_IN_OK        0x0020  /* TCP checksum verified */
+#define        M_TCP_CSUM_IN_BAD       0x0040  /* TCP checksum bad */
+#define        M_UDP_CSUM_IN_OK        0x0080  /* UDP checksum verified */
+#define        M_UDP_CSUM_IN_BAD       0x0100  /* UDP checksum bad */
 #define        M_ICMP_CSUM_OUT         0x0200  /* ICMP checksum needed */
 #define        M_ICMP_CSUM_IN_OK       0x0400  /* ICMP checksum verified */
 #define        M_ICMP_CSUM_IN_BAD      0x0800  /* ICMP checksum bad */

Reply via email to