add ipv6 fields
This commit is contained in:
parent
380297ea2e
commit
1b28f2a4e3
|
@ -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() +
|
||||
|
|
Loading…
Reference in New Issue