add ipv6 fields

This commit is contained in:
Doug MacEachern 2009-07-24 17:38:13 -07:00
parent 380297ea2e
commit 1b28f2a4e3
1 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,13 @@ public class Ifconfig extends SigarCommandBase {
bcast +
" Mask:" + ifconfig.getNetmask());
if (ifconfig.getPrefixLength() != 0) {
println("\t" +
"inet6 addr: " + ifconfig.getAddress6() + "/" +
ifconfig.getPrefixLength() +
" Scope:" + ifconfig.getScope());
}
println("\t" +
NetFlags.getIfFlagsString(flags) +
" MTU:" + ifconfig.getMtu() +