add SIGAR_TCP_{IDLE,BOUND}

This commit is contained in:
Doug MacEachern 2005-03-12 02:17:20 +00:00
parent 605544dfea
commit 634d83afbe
2 changed files with 6 additions and 0 deletions

View File

@ -478,6 +478,8 @@ enum {
SIGAR_TCP_LAST_ACK,
SIGAR_TCP_LISTEN,
SIGAR_TCP_CLOSING,
SIGAR_TCP_IDLE,
SIGAR_TCP_BOUND,
SIGAR_TCP_UNKNOWN
};

View File

@ -703,6 +703,10 @@ SIGAR_DECLARE(const char *)sigar_net_connection_state_get(int state)
return "LISTEN";
case SIGAR_TCP_CLOSING:
return "CLOSING";
case SIGAR_TCP_IDLE:
return "IDLE";
case SIGAR_TCP_BOUND:
return "BOUND";
case SIGAR_TCP_UNKNOWN:
default:
return "UNKNOWN";