add SIGAR_TCP_UNKNOWN
This commit is contained in:
parent
8964e0264d
commit
d0c0043afe
|
@ -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 {
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue