Print this page
dccp: MIB-II
@@ -94,16 +94,18 @@
#define MIB2_IP6 (IPPROTO_MAX+12)
#define MIB2_ICMP6 (IPPROTO_MAX+13)
#define MIB2_TCP6 (IPPROTO_MAX+14)
#define MIB2_UDP6 (IPPROTO_MAX+15)
#define MIB2_SCTP (IPPROTO_MAX+16)
+#define MIB2_DCCP (IPPROTO_MAX+17)
+#define MIB2_DCCP6 (IPPROTO_MAX+18)
/*
* Define range of levels for use with MIB2_*
*/
#define MIB2_RANGE_START (IPPROTO_MAX+1)
-#define MIB2_RANGE_END (IPPROTO_MAX+16)
+#define MIB2_RANGE_END (IPPROTO_MAX+18)
#define EXPER 1024 /* experimental - not part of mib */
#define EXPER_IGMP (EXPER+1)
#define EXPER_DVMRP (EXPER+2)
@@ -1784,10 +1786,98 @@
#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
#pragma pack()
#endif
+/*
+ * the DCCP group
+ */
+#define MIB2_DCCP_CONN 18
+#define MIB2_DCCP6_CONN 19
+
+#define MIB2_DCCP_closed 1
+#define MIB2_DCCP_listen 2
+
+/* Pack data to make struct size the same for 32- and 64-bits */
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack(4)
+#endif
+
+typedef struct mib2_dccp {
+
+ /* # of direct transitions CLOSED -> ACK-SENT { dccp 5 } */
+ Counter dccpActiveOpens;
+ /* # of direct transitions LISTEN -> ACK-RCVD { dccp 6 } */
+ Counter dccpPassiveOpens;
+ /* # of direct SIN-SENT/RCVD -> CLOSED/LISTEN { dccp 7 } */
+ Counter dccpAttemptFails;
+ /* # of direct ESTABLISHED/CLOSE-WAIT -> CLOSED { dccp 8 } */
+ Counter dccpEstabResets;
+ /* # of connections ESTABLISHED or CLOSE-WAIT { dccp 9 } */
+ Gauge dccpCurrEstab;
+ /* total # of segments recv'd { dccp 10 } */
+ Counter dccpInSegs;
+ /* total # of segments sent { dccp 11 } */
+ Counter dccpOutSegs;
+ /* total # of segments retransmitted { dccp 12 } */
+ Counter dccpRetransSegs;
+
+ int dccpEntrySize;
+ int dccp6EntrySize;
+
+ int dccpConnTableSize;
+ int dccp6ConnTableSize;
+
+ Counter64 dccpHCInDatagrams;
+} mib2_dccp_t;
+#define MIB_FIRST_NEW_ELM_mib2_dccp_t dccpHCInDatagrams
+
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack()
+#endif
+
+/* Pack data to make struct size the same for 32- and 64-bits */
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack(4)
+#endif
+
+typedef struct mib2_dccpConnEntry {
+ int dccpConnState;
+ IpAddress dccpConnLocalAddress;
+ int dccpConnLocalPort;
+ IpAddress dccpConnRemAddress;
+ int dccpConnRemPort;
+
+ uint32_t dccpConnCreationProcess;
+ uint64_t dccpConnCreationTime;
+} mib2_dccpConnEntry_t;
+#define MIB_FIRST_NEW_ELM_mib2_dccpConnEntry_t dccpConnCreationProcess
+
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack()
+#endif
+
+/* Pack data to make struct size the same for 32- and 64-bits */
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack(4)
+#endif
+
+typedef struct mib2_dccp6ConnEntry {
+ int dccpConnState;
+ Ip6Address dccpConnLocalAddress;
+ int dccpConnLocalPort;
+ Ip6Address dccpConnRemAddress;
+ int dccpConnRemPort;
+
+ uint32_t dccpConnCreationProcess;
+ uint64_t dccpConnCreationTime;
+} mib2_dccp6ConnEntry_t;
+#define MIB_FIRST_NEW_ELM_mib2_dccp6ConnEntry_t dccpConnCreationProcess
+
+#if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4
+#pragma pack()
+#endif
#ifdef __cplusplus
}
#endif