From 634d83afbe071765af87757a61dacb3495abfc81 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 12 Mar 2005 02:17:20 +0000 Subject: [PATCH] add SIGAR_TCP_{IDLE,BOUND} --- include/sigar.h | 2 ++ src/sigar.c | 4 ++++ 2 files changed, 6 insertions(+) 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";