From b9b8a326f11e53ae029c1ca1134672480d6e6a0b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 24 Sep 2007 03:31:43 +0000 Subject: [PATCH] more constants --- bindings/perl/Sigar.xs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bindings/perl/Sigar.xs b/bindings/perl/Sigar.xs index 3bd0615f..2c06b02b 100644 --- a/bindings/perl/Sigar.xs +++ b/bindings/perl/Sigar.xs @@ -154,6 +154,29 @@ static void boot_Sigar_constants(pTHX) XS_SIGAR_CONST_IV(IFF_PROMISC); XS_SIGAR_CONST_IV(IFF_ALLMULTI); XS_SIGAR_CONST_IV(IFF_MULTICAST); + + XS_SIGAR_CONST_IV(NETCONN_CLIENT); + XS_SIGAR_CONST_IV(NETCONN_SERVER); + XS_SIGAR_CONST_IV(NETCONN_TCP); + XS_SIGAR_CONST_IV(NETCONN_UDP); + XS_SIGAR_CONST_IV(NETCONN_RAW); + XS_SIGAR_CONST_IV(NETCONN_UNIX); + + XS_SIGAR_CONST_IV(TCP_ESTABLISHED); + XS_SIGAR_CONST_IV(TCP_SYN_SENT); + XS_SIGAR_CONST_IV(TCP_SYN_RECV); + XS_SIGAR_CONST_IV(TCP_FIN_WAIT1); + XS_SIGAR_CONST_IV(TCP_FIN_WAIT2); + XS_SIGAR_CONST_IV(TCP_TIME_WAIT); + XS_SIGAR_CONST_IV(TCP_CLOSE); + XS_SIGAR_CONST_IV(TCP_CLOSE_WAIT); + XS_SIGAR_CONST_IV(TCP_LAST_ACK); + XS_SIGAR_CONST_IV(TCP_LISTEN); + XS_SIGAR_CONST_IV(TCP_CLOSING); + XS_SIGAR_CONST_IV(TCP_IDLE); + XS_SIGAR_CONST_IV(TCP_BOUND); + XS_SIGAR_CONST_IV(TCP_UNKNOWN); + XS_SIGAR_CONST_PV(NULL_HWADDR); }