prefix|scope .= 6

This commit is contained in:
Doug MacEachern committed 2009-07-25 08:09:53 -07:00
1 parent 8411da271e
commit 0da8e9d95f
7 files changed
+18 -18

No files matched your search

@@ -117,11 +117,11 @@ public class Ifconfig extends SigarCommandBase {
bcast +
" Mask:" + ifconfig.getNetmask());
if (ifconfig.getPrefixLength() != 0) {
if (ifconfig.getPrefix6Length() != 0) {
println("\t" +
"inet6 addr: " + ifconfig.getAddress6() + "/" +
ifconfig.getPrefixLength() +
" Scope:" + ifconfig.getScope());
ifconfig.getPrefix6Length() +
" Scope:" + ifconfig.getScope6());
}
println("\t" +
@@ -47,7 +47,7 @@ public class TestNetIf extends SigarTestCase {
assertTrueTrace("Address", ifconfig.getAddress());
assertTrueTrace("Netmask", ifconfig.getNetmask());
if (ifconfig.getPrefixLength() != 0) {
if (ifconfig.getPrefix6Length() != 0) {
assertTrueTrace("Address6", ifconfig.getAddress6());
InetAddress in6 =
InetAddress.getByName(ifconfig.getAddress6());