From owner-IPv6-jp@jp.freebsd.org  Fri Sep 29 22:25:55 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA36935;
	Fri, 29 Sep 2000 22:25:55 +0900 (JST)
	(envelope-from owner-IPv6-jp@jp.FreeBSD.org)
Received: from cerberus.nemoto.ecei.tohoku.ac.jp (root@cerberus.nemoto.ecei.tohoku.ac.jp [130.34.199.67])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id WAA36930
	for <IPv6-jp@jp.freebsd.org>; Fri, 29 Sep 2000 22:25:54 +0900 (JST)
	(envelope-from yoshfuji@linux-ipv6.org)
Received: from localhost (yoshfuji@localhost [127.0.0.1])
	by cerberus.nemoto.ecei.tohoku.ac.jp (8.9.3+3.2W/8.9.3/Debian 8.9.3-21) with ESMTP id WAA06027;
	Fri, 29 Sep 2000 22:25:54 +0900
To: IPv6-jp@jp.freebsd.org
Cc: users@jp.ipv6.org
In-Reply-To: <NEBBIMDJLANIINPMIHPLGEGLCDAA.t-endo@cx.ipn.abk.nec.co.jp>
References: <NEBBIMDJLANIINPMIHPLGEGLCDAA.t-endo@cx.ipn.abk.nec.co.jp>
X-Mailer: Mew version 1.94 on XEmacs 21.1 (Capitol Reef)
X-URL: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
X-Fingerprint: F7 31 65 99 5E B2 BB A7 15 15  13 23 18 06 A9 6F 57 00 6B 25
X-Pgp5-Key-Url: http://cerberus.nemoto.ecei.tohoku.ac.jp/%7Eyoshfuji/yoshfuji@ecei.tohoku.ac.jp.asc
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20000929222553C.yoshfuji@linux-ipv6.org>
Date: Fri, 29 Sep 2000 22:25:53 +0900
From: Hideaki YOSHIFUJI (=?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=) 
	<yoshfuji@linux-ipv6.org>
X-Dispatcher: imput version 990905(IM130)
Lines: 45
Reply-To: IPv6-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: IPv6-jp 898
Subject: [IPv6-jp 898] Re: sendmsg IPv6 Home Address Option
Errors-To: owner-IPv6-jp@jp.freebsd.org
Sender: owner-IPv6-jp@jp.freebsd.org
X-Originator: yoshfuji@cerberus.nemoto.ecei.tohoku.ac.jp

In article <NEBBIMDJLANIINPMIHPLGEGLCDAA.t-endo@cx.ipn.abk.nec.co.jp> (at Fri, 29 Sep 2000 21:32:32 +0900), "Toshio Endou" <t-endo@cx.ipn.abk.nec.co.jp> says:

>    $B0J2<$NJd=u%G!<%?$r(Bstruct msghdr$B$N(Bmsg_control$B$K%;%C%H$7$F$$$^$9!#(B
:
>      |       cmsg_type = IPV6_DSTOPTS                                |
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>      | Next Header=0 | Hdr Ext Len=0 |    ??? = 1    |    ??? = 2    |
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>      | ///////////////////////////// |Option type=201| Option Len=16 |
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>      |                                                               |
>      +                                                               +
>      |                                                               |
>      +                           Address                             +
>      |                                                               |
>      +                                                               +
>      |                                                               |
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

ip6d_len (Hdr Ext Len) $B$O(B 2 $B$K$7$J$$$H$@$a(B(inet6_opt_finish() $B$N(B
$BLa$jCM$,(B 24 $B$H$J$j!"(B 24 / 8 - 1 $B$r7W;;$7$F(B 2) $B$G$O!#(B


>    inet_opt_init()$B$r(Bcall$B8e$b!"(BNext Header$B$*$h$S(BHdr Ext Len$B$O(B0$B$N$^$^$G!"(B
>    $B$+$D(BHdr Ext Len$B$N8e$N(B2octets$B$K!"(B1, 2$B$HF~$k$N$G$9$,!"$=$l$O@5>o$J$N(B
>    $B$G$7$g$&$+!)(B

inet6_opt_append() $B$K$h$j(B PadN $B%*%W%7%g%s$,<+F0E*$KA^F~$5$l$?$b$N$G$9!#(B
RFC2460:

   PadN option  (alignment requirement: none)

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -
      |       1       |  Opt Data Len |  Option Data
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -

      The PadN option is used to insert two or more octets of padding
      into the Options area of a header.  For N octets of padding, the
      Opt Data Len field contains the value N-2, and the Option Data
      consists of N-2 zero-valued octets.

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@linux-ipv6.org>
Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 
