Debian Codegraph @

agent/mibgroup/sctp-mib/sctpAssocTable.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * $
4 */
5 #ifndef SCTPASSOCTABLE_H
6 #define SCTPASSOCTABLE_H
7
8 #include "sctpTables_common.h"
9
10 /*
11 * function declarations
12 */
13 void init_sctpAssocTable(void);
14 void shutdown_sctpAssocTable(void);
15 void initialize_table_sctpAssocTable(void);
16 void shutdown_table_sctpAssocTable(void);
17 Netsnmp_Node_Handler sctpAssocTable_handler;
18
19 /*
20 * SCTP association states
21 */
22 #define SCTPASSOCSTATE_CLOSED 1
23 #define SCTPASSOCSTATE_COOKIEWAIT 2
24 #define SCTPASSOCSTATE_COOKIEECHOED 3
25 #define SCTPASSOCSTATE_ESTABLISHED 4
26 #define SCTPASSOCSTATE_SHUTDOWNPENDING 5
27 #define SCTPASSOCSTATE_SHUTDOWNSENT 6
28 #define SCTPASSOCSTATE_SHUTDOWNRECEIVED 7
29 #define SCTPASSOCSTATE_SHUTDOWNACKSENT 8
30 #define SCTPASSOCSTATE_DELETETCB 9
31
32 /*
33 * column number definitions for table sctpAssocTable
34 */
35 #define COLUMN_SCTPASSOCID 1
36 #define COLUMN_SCTPASSOCREMHOSTNAME 2
37 #define COLUMN_SCTPASSOCLOCALPORT 3
38 #define COLUMN_SCTPASSOCREMPORT 4
39 #define COLUMN_SCTPASSOCREMPRIMADDRTYPE 5
40 #define COLUMN_SCTPASSOCREMPRIMADDR 6
41 #define COLUMN_SCTPASSOCHEARTBEATINTERVAL 7
42 #define COLUMN_SCTPASSOCSTATE 8
43 #define COLUMN_SCTPASSOCINSTREAMS 9
44 #define COLUMN_SCTPASSOCOUTSTREAMS 10
45 #define COLUMN_SCTPASSOCMAXRETR 11
46 #define COLUMN_SCTPASSOCPRIMPROCESS 12
47 #define COLUMN_SCTPASSOCT1EXPIREDS 13
48 #define COLUMN_SCTPASSOCT2EXPIREDS 14
49 #define COLUMN_SCTPASSOCRTXCHUNKS 15
50 #define COLUMN_SCTPASSOCSTARTTIME 16
51 #define COLUMN_SCTPASSOCDISCONTINUITYTIME 17
52
53 #define SCTP_ASSOC_TABLE_INDEX_SIZE 100
54 /** Data structure for a sctpAssocTable row entry */
55 struct sctpAssocTable_entry_s {
56 netsnmp_index oid_index;
57 oid oid_tmp[SCTP_ASSOC_TABLE_INDEX_SIZE];
58
59 /*
60 * Index values
61 */
62 u_long sctpAssocId;
63
64 /*
65 * Column values
66 */
67 char sctpAssocRemHostName[SCTP_HOSTNAME_SIZE];
68 u_long sctpAssocRemHostName_len;
69 u_long sctpAssocLocalPort;
70 u_long sctpAssocRemPort;
71 u_long sctpAssocRemPrimAddrType;
72 char sctpAssocRemPrimAddr[SCTP_IPADDRESS_SIZE];
73 u_long sctpAssocRemPrimAddr_len;
74 u_long sctpAssocHeartBeatInterval;
75 long sctpAssocState;
76 long old_sctpAssocState;
77 u_long sctpAssocInStreams;
78 u_long sctpAssocOutStreams;
79 u_long sctpAssocMaxRetr;
80 u_long sctpAssocPrimProcess;
81 u_long sctpAssocT1expireds;
82 u_long sctpAssocT2expireds;
83 u_long sctpAssocRtxChunks;
84 u_long sctpAssocStartTime;
85 u_long sctpAssocDiscontinuityTime;
86
87 int valid;
88 };
89
90 sctpAssocTable_entry *sctpAssocTable_entry_create(void);
91 int sctpAssocTable_entry_update_index(sctpAssocTable_entry *
92 entry);
93 void sctpAssocTable_entry_copy(sctpAssocTable_entry * from,
94 sctpAssocTable_entry * to);
95 void sctpAssocTable_entry_free(sctpAssocTable_entry * entry);
96
97 void sctpAssocTable_container_clear(netsnmp_container
98 *container);
99
100 #endif /* SCTPASSOCTABLE_H */