summaryrefslogtreecommitdiff
path: root/agent/mibgroup/sctp-mib/sctpAssocTable.h
blob: c6257b06a21dc777e8c2f8ce1b743ca8d7584b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
 * Note: this file originally auto-generated by mib2c using
 *  $
 */
#ifndef SCTPASSOCTABLE_H
#define SCTPASSOCTABLE_H

#include "sctpTables_common.h"

/*
 * function declarations 
 */
void            init_sctpAssocTable(void);
void            shutdown_sctpAssocTable(void);
void            initialize_table_sctpAssocTable(void);
void            shutdown_table_sctpAssocTable(void);
Netsnmp_Node_Handler sctpAssocTable_handler;

/*
 * SCTP association states 
 */
#define SCTPASSOCSTATE_CLOSED  1
#define SCTPASSOCSTATE_COOKIEWAIT  2
#define SCTPASSOCSTATE_COOKIEECHOED  3
#define SCTPASSOCSTATE_ESTABLISHED  4
#define SCTPASSOCSTATE_SHUTDOWNPENDING  5
#define SCTPASSOCSTATE_SHUTDOWNSENT  6
#define SCTPASSOCSTATE_SHUTDOWNRECEIVED  7
#define SCTPASSOCSTATE_SHUTDOWNACKSENT  8
#define SCTPASSOCSTATE_DELETETCB  9

/*
 * column number definitions for table sctpAssocTable 
 */
#define COLUMN_SCTPASSOCID		1
#define COLUMN_SCTPASSOCREMHOSTNAME		2
#define COLUMN_SCTPASSOCLOCALPORT		3
#define COLUMN_SCTPASSOCREMPORT		4
#define COLUMN_SCTPASSOCREMPRIMADDRTYPE		5
#define COLUMN_SCTPASSOCREMPRIMADDR		6
#define COLUMN_SCTPASSOCHEARTBEATINTERVAL		7
#define COLUMN_SCTPASSOCSTATE		8
#define COLUMN_SCTPASSOCINSTREAMS		9
#define COLUMN_SCTPASSOCOUTSTREAMS		10
#define COLUMN_SCTPASSOCMAXRETR		11
#define COLUMN_SCTPASSOCPRIMPROCESS		12
#define COLUMN_SCTPASSOCT1EXPIREDS		13
#define COLUMN_SCTPASSOCT2EXPIREDS		14
#define COLUMN_SCTPASSOCRTXCHUNKS		15
#define COLUMN_SCTPASSOCSTARTTIME		16
#define COLUMN_SCTPASSOCDISCONTINUITYTIME		17

#define SCTP_ASSOC_TABLE_INDEX_SIZE 100
/** Data structure for a sctpAssocTable row entry */
struct sctpAssocTable_entry_s {
    netsnmp_index   oid_index;
    oid             oid_tmp[SCTP_ASSOC_TABLE_INDEX_SIZE];

    /*
     * Index values 
     */
    u_long          sctpAssocId;

    /*
     * Column values 
     */
    char            sctpAssocRemHostName[SCTP_HOSTNAME_SIZE];
    u_long          sctpAssocRemHostName_len;
    u_long          sctpAssocLocalPort;
    u_long          sctpAssocRemPort;
    u_long          sctpAssocRemPrimAddrType;
    char            sctpAssocRemPrimAddr[SCTP_IPADDRESS_SIZE];
    u_long          sctpAssocRemPrimAddr_len;
    u_long          sctpAssocHeartBeatInterval;
    long            sctpAssocState;
    long            old_sctpAssocState;
    u_long          sctpAssocInStreams;
    u_long          sctpAssocOutStreams;
    u_long          sctpAssocMaxRetr;
    u_long          sctpAssocPrimProcess;
    u_long          sctpAssocT1expireds;
    u_long          sctpAssocT2expireds;
    u_long          sctpAssocRtxChunks;
    u_long          sctpAssocStartTime;
    u_long          sctpAssocDiscontinuityTime;

    int             valid;
};

sctpAssocTable_entry *sctpAssocTable_entry_create(void);
int             sctpAssocTable_entry_update_index(sctpAssocTable_entry *
                                                  entry);
void            sctpAssocTable_entry_copy(sctpAssocTable_entry * from,
                                          sctpAssocTable_entry * to);
void            sctpAssocTable_entry_free(sctpAssocTable_entry * entry);

void            sctpAssocTable_container_clear(netsnmp_container
                                               *container);

#endif                          /* SCTPASSOCTABLE_H */