diff --git a/include/sigar.h b/include/sigar.h index ebe7cfe6..7d4f4c02 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -478,6 +478,8 @@ enum { SIGAR_TCP_LAST_ACK, SIGAR_TCP_LISTEN, SIGAR_TCP_CLOSING, + SIGAR_TCP_IDLE, + SIGAR_TCP_BOUND, SIGAR_TCP_UNKNOWN }; diff --git a/src/sigar.c b/src/sigar.c index 6a05868a..c5d0db82 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -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";