From owner-svn-src-user@FreeBSD.ORG Thu Mar 14 16:29:44 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4059A877; Thu, 14 Mar 2013 16:29:44 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) by mx1.freebsd.org (Postfix) with ESMTP id AA6029E7; Thu, 14 Mar 2013 16:29:41 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.6/8.14.6) with ESMTP id r2EGTXBj021820; Thu, 14 Mar 2013 20:29:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.6/8.14.6/Submit) id r2EGTXLS021819; Thu, 14 Mar 2013 20:29:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 14 Mar 2013 20:29:33 +0400 From: Gleb Smirnoff To: Andre Oppermann Subject: Re: svn commit: r248269 - user/andre/tcp-ao/sys/netinet Message-ID: <20130314162933.GG48089@FreeBSD.org> References: <201303141627.r2EGR2gA033139@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201303141627.r2EGR2gA033139@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: src-committers@freebsd.org, svn-src-user@freebsd.org X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 16:29:44 -0000 Andre, On Thu, Mar 14, 2013 at 04:27:02PM +0000, Andre Oppermann wrote: A> Author: andre A> Date: Thu Mar 14 16:27:01 2013 A> New Revision: 248269 A> URL: http://svnweb.freebsd.org/changeset/base/248269 A> A> Log: A> Add IPv6 pseudo header for use in checksum calculations. Why obsoleted u_intXX_t instead of uintXX_t in new code? A> Sponsored by: Juniper Networks A> A> Modified: A> user/andre/tcp-ao/sys/netinet/ip6.h A> A> Modified: user/andre/tcp-ao/sys/netinet/ip6.h A> ============================================================================== A> --- user/andre/tcp-ao/sys/netinet/ip6.h Thu Mar 14 16:24:50 2013 (r248268) A> +++ user/andre/tcp-ao/sys/netinet/ip6.h Thu Mar 14 16:27:01 2013 (r248269) A> @@ -248,6 +248,18 @@ struct ip6_frag { A> #endif /* BYTE_ORDER == LITTLE_ENDIAN */ A> A> /* A> + * This is the real IPv6 pseudo header, used for computing the TCP and UDP A> + * checksums. A> + */ A> +struct ip6pseudo { A> + struct in6_addr ip6pseudo_src; /* source internet address */ A> + struct in6_addr ip6pseudo_dst; /* destination internet address */ A> + u_int32_t ip6pseudo_len; /* payload length */ A> + u_int16_t ip6pseudo_pad; /* padding (zero) */ A> + u_int16_t ip6pseudo_p; /* next-header (protocol) */ A> +}; A> + A> +/* A> * Internet implementation parameters. A> */ A> #define IPV6_MAXHLIM 255 /* maximum hoplimit */ -- Totus tuus, Glebius.