add NetFlags.ANY_ADDR

This commit is contained in:
Doug MacEachern 2006-02-27 22:48:33 +00:00
parent 141ff23dcb
commit 52f138031f
2 changed files with 3 additions and 1 deletions

View File

@ -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
*/

View File

@ -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 {