add SIGAR_TCP_UNKNOWN

This commit is contained in:
Doug MacEachern 2005-03-11 17:11:07 +00:00
parent 8964e0264d
commit d0c0043afe
2 changed files with 3 additions and 1 deletions

View File

@ -477,7 +477,8 @@ enum {
SIGAR_TCP_CLOSE_WAIT, SIGAR_TCP_CLOSE_WAIT,
SIGAR_TCP_LAST_ACK, SIGAR_TCP_LAST_ACK,
SIGAR_TCP_LISTEN, SIGAR_TCP_LISTEN,
SIGAR_TCP_CLOSING SIGAR_TCP_CLOSING,
SIGAR_TCP_UNKNOWN
}; };
typedef struct { typedef struct {

View File

@ -703,6 +703,7 @@ SIGAR_DECLARE(const char *)sigar_net_connection_state_get(int state)
return "LISTEN"; return "LISTEN";
case SIGAR_TCP_CLOSING: case SIGAR_TCP_CLOSING:
return "CLOSING"; return "CLOSING";
case SIGAR_TCP_UNKNOWN:
default: default:
return "UNKNOWN"; return "UNKNOWN";
} }