add NetFlags.ANY_ADDR
This commit is contained in:
parent
141ff23dcb
commit
52f138031f
|
@ -12,6 +12,8 @@ public class NetFlags {
|
|||
*/
|
||||
public final static String NULL_HWADDR = "00:00:00:00:00:00";
|
||||
|
||||
public static final String ANY_ADDR = "0.0.0.0";
|
||||
|
||||
/**
|
||||
* interface is up
|
||||
*/
|
||||
|
|
|
@ -113,7 +113,7 @@ public class Netstat extends SigarCommandBase {
|
|||
if (isNumeric) {
|
||||
address = ip;
|
||||
}
|
||||
else if (ip.equals("0.0.0.0")) {
|
||||
else if (ip.equals(NetFlags.ANY_ADDR)) {
|
||||
address = "*";
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue