% ./addr localhost IPv6 :::1 IPv4 :127.0.0.1 % ifconfig lo0 lo0: flags=8049 mtu 16384 options=1203 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201 上記の二つを比較すると、同じアドレスを示している。 よって、コンピュータが使用可能なアドレスを全て取得できていると考えられる。 作成したファイルaddr.c Mercurialのレポジトリ ssh://e145729@yomitan.ie.u-ryukyu.ac.jp//home/hg/y14/e145729/os/ex7.2/