Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2013 16:27:02 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r248269 - user/andre/tcp-ao/sys/netinet
Message-ID:  <201303141627.r2EGR2gA033139@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andre
Date: Thu Mar 14 16:27:01 2013
New Revision: 248269
URL: http://svnweb.freebsd.org/changeset/base/248269

Log:
  Add IPv6 pseudo header for use in checksum calculations.
  
  Sponsored by:	Juniper Networks

Modified:
  user/andre/tcp-ao/sys/netinet/ip6.h

Modified: user/andre/tcp-ao/sys/netinet/ip6.h
==============================================================================
--- user/andre/tcp-ao/sys/netinet/ip6.h	Thu Mar 14 16:24:50 2013	(r248268)
+++ user/andre/tcp-ao/sys/netinet/ip6.h	Thu Mar 14 16:27:01 2013	(r248269)
@@ -248,6 +248,18 @@ struct ip6_frag {
 #endif /* BYTE_ORDER == LITTLE_ENDIAN */
 
 /*
+ * This is the real IPv6 pseudo header, used for computing the TCP and UDP
+ * checksums.
+ */
+struct ip6pseudo {
+	struct in6_addr	ip6pseudo_src;	/* source internet address */
+	struct in6_addr	ip6pseudo_dst;	/* destination internet address */
+	u_int32_t	ip6pseudo_len;	/* payload length */
+	u_int16_t	ip6pseudo_pad;	/* padding (zero) */
+	u_int16_t	ip6pseudo_p;	/* next-header (protocol) */
+};
+
+/*
  * Internet implementation parameters.
  */
 #define IPV6_MAXHLIM	255	/* maximum hoplimit */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303141627.r2EGR2gA033139>