From owner-freebsd-net@FreeBSD.ORG  Tue Feb  4 02:29:47 2014
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
Delivered-To: freebsd-net@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 1488E7D
 for <freebsd-net@FreeBSD.org>; Tue,  4 Feb 2014 02:29:47 +0000 (UTC)
Received: from mail.allbsd.org (gatekeeper.allbsd.org
 [IPv6:2001:2f0:104:e001::32])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 836141242
 for <freebsd-net@FreeBSD.org>; Tue,  4 Feb 2014 02:29:46 +0000 (UTC)
Received: from alph.d.allbsd.org (p2106-ipbf2009funabasi.chiba.ocn.ne.jp
 [114.146.169.106]) (authenticated bits=128)
 by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id s142TPwj056282
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Tue, 4 Feb 2014 11:29:35 +0900 (JST) (envelope-from hrs@FreeBSD.org)
Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0)
 by alph.d.allbsd.org (8.14.7/8.14.7) with ESMTP id s142TMhX001779;
 Tue, 4 Feb 2014 11:29:25 +0900 (JST) (envelope-from hrs@FreeBSD.org)
Date: Tue, 04 Feb 2014 11:15:44 +0900 (JST)
Message-Id: <20140204.111544.1874646668550166600.hrs@allbsd.org>
To: Mark.Martinec+freebsd@ijs.si
Subject: Re: ip6opt.c
From: Hiroki Sato <hrs@FreeBSD.org>
In-Reply-To: <758be52b7a245c492ec80a1d3a21d79e@mailbox.ijs.si>
References: <CAF6rxgmQMXKDMETRPRE-QkQwGS3vgZxQRFKoe6d3_BycQOouYw@mail.gmail.com>
 <20140204.052625.1192023326694116318.hrs@allbsd.org>
 <758be52b7a245c492ec80a1d3a21d79e@mailbox.ijs.si>
X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530  FFD7 4F2C D3D8 2793 CF2D
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Multipart/Signed; protocol="application/pgp-signature";
 micalg=pgp-sha1;
 boundary="--Security_Multipart(Tue_Feb__4_11_15_44_2014_566)--"
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org
X-Virus-Status: Clean
X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.7
 (mail.allbsd.org [133.31.130.32]); Tue, 04 Feb 2014 11:29:36 +0900 (JST)
X-Spam-Status: No, score=-94.3 required=13.0 tests=CONTENT_TYPE_PRESENT,
 RCVD_IN_PBL,RCVD_IN_RP_RNBL,SPF_SOFTFAIL,USER_IN_WHITELIST autolearn=no
 version=3.3.2
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
 gatekeeper.allbsd.org
Cc: freebsd-net@FreeBSD.org
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Feb 2014 02:29:47 -0000

----Security_Multipart(Tue_Feb__4_11_15_44_2014_566)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark Martinec <Mark.Martinec+freebsd@ijs.si> wrote
  in <758be52b7a245c492ec80a1d3a21d79e@mailbox.ijs.si>:

Ma> It is against the specs.
Ma>
Ma> The RFC 3542 is clear on this:
Ma>
Ma>
Ma> 10.1.  inet6_opt_init
Ma>
Ma>       int inet6_opt_init(void *extbuf, socklen_t extlen);
Ma>
Ma>    This function returns the number of bytes needed for the empty
Ma>    extension header i.e., without any options.  If extbuf is not NULL it
Ma>    also initializes the extension header to have the correct length
Ma>    field.  In that case if the extlen value is not a positive (i.e.,
Ma>    non-zero) multiple of 8 the function fails and returns -1.

 Ah, I see.  Thank you for the clarification.

Ma> li> Should I commit it?
Ma>
Ma> I'd say yes.

 I think so, too.

-- Hiroki

----Security_Multipart(Tue_Feb__4_11_15_44_2014_566)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlLwTVAACgkQTyzT2CeTzy07EQCgj0k80qpTFSzYa6lWagokxR+p
pNcAoJYVxQAwmSRsMTDOfirmkqh8hSVC
=bRF0
-----END PGP SIGNATURE-----

----Security_Multipart(Tue_Feb__4_11_15_44_2014_566)----