add SIGAR_TCP_{IDLE,BOUND}
This commit is contained in:
parent
605544dfea
commit
634d83afbe
|
@ -478,6 +478,8 @@ enum {
|
|||
SIGAR_TCP_LAST_ACK,
|
||||
SIGAR_TCP_LISTEN,
|
||||
SIGAR_TCP_CLOSING,
|
||||
SIGAR_TCP_IDLE,
|
||||
SIGAR_TCP_BOUND,
|
||||
SIGAR_TCP_UNKNOWN
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue