$Id: index.html,v 1.12 2005/01/18 05:21:57 itojun Exp $NOTE: this note applies to MacOS 10.1.3. more recent MacOS (like 10.3) does not need this (for instance, with 10.3, kernel is IPv6 ready by default and GUI supports IPv6)
Update: there was a structural change in Darwin repository, for userland source code - Commands/Next/network_cmds is now found in network_cmds (at the top of CVS tree). The following text is updated for the change, however, patch is not updated yet. (2002/4/26)
% cvs -d :pserver:yourid@anoncvs.opensource.apple.com:/cvs/Darwin login % cvs -d :pserver:yourid@anoncvs.opensource.apple.com:/cvs/Darwin checkout -r Apple-201-15 xnu
% cd xnu % source SETUP/setup.csh % make exporthdrs % make
% cvs -z3 -d :pserver:anoncvs@anoncvs.netbsd.org:/cvsroot login % cvs -z3 -d :pserver:anoncvs@anoncvs.netbsd.org:/cvsroot co -P pkgsrcThen, get darwin-bootstrap.tar.gz and build it.
% tar zxvf darwin-bootstrap.tar.gz % cd bootstrap-pkgsrc % sudo ./bootstrap --pkgsrcdir=pkgsrcGo to pkgsrc/net/bind8 and build it.
% cd pkgsrc/net/bind8 % bmake % sudo bmake install
% cvs -d :pserver:anoncvs@anoncvs.kame.net:/cvsroot/kame login % cvs -d :pserver:anoncvs@anoncvs.kame.net:/cvsroot/kame co -P kame/Makefile kame/Makefile.inc % cd kame % bsdmake TARGET=darwin tree prepare % (cd darwin/include; bsdmake; sudo bsdmake install) % (cd darwin/lib/libinet6; bsdmake; sudo bsdmake install)
% cd pkgsrc/security/openssh % bmake PKG_SYSCONFDIR=/etc % sudo bmake PKG_SYSCONFDIR=/etc installIf you would like to start IPv6-ready sshd at startup, modify /System/Library/StartupItems/SSH/SSH.
Checkout network_cmds tree from darwin repository.
% cvs -d :pserver:yourid@anoncvs.opensource.apple.com:/cvs/Darwin checkout network_cmdsApply the patch (it may not apply cleanly - sorry).
% patch -p0 < commands-next-20020323.diffbuild and install ifconfig.
% cd network_cmds/ifconfig.tproj % make % sudo make install
% cd network_cmds/netstat.tproj % make % sudo make install % cd % cd network_cmds/route.tproj % make % sudo make install
% sudo sysctl -w net.inet6.ip6.accept_rtadv=1