add ipv6 fields
This commit is contained in:
parent
380297ea2e
commit
1b28f2a4e3
|
@ -117,6 +117,13 @@ public class Ifconfig extends SigarCommandBase {
|
||||||
bcast +
|
bcast +
|
||||||
" Mask:" + ifconfig.getNetmask());
|
" Mask:" + ifconfig.getNetmask());
|
||||||
|
|
||||||
|
if (ifconfig.getPrefixLength() != 0) {
|
||||||
|
println("\t" +
|
||||||
|
"inet6 addr: " + ifconfig.getAddress6() + "/" +
|
||||||
|
ifconfig.getPrefixLength() +
|
||||||
|
" Scope:" + ifconfig.getScope());
|
||||||
|
}
|
||||||
|
|
||||||
println("\t" +
|
println("\t" +
|
||||||
NetFlags.getIfFlagsString(flags) +
|
NetFlags.getIfFlagsString(flags) +
|
||||||
" MTU:" + ifconfig.getMtu() +
|
" MTU:" + ifconfig.getMtu() +
|
||||||
|
|
Loading…
Reference in New Issue