summaryrefslogtreecommitdiff
path: root/agent/mibgroup/sctp-mib/sctpAssocLocalAddrTable.h
blob: eff080f240034f3e48a5a404f168ae4d71064434 (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
/*
 * Note: this file originally auto-generated by mib2c using
 *  $
 */
#ifndef SCTPASSOCLOCALADDRTABLE_H
#define SCTPASSOCLOCALADDRTABLE_H

#include "sctpTables_common.h"

/*
 * function declarations 
 */
void            init_sctpAssocLocalAddrTable(void);
void            shutdown_sctpAssocLocalAddrTable(void);
void            initialize_table_sctpAssocLocalAddrTable(void);
void            shutdown_table_sctpAssocLocalAddrTable(void);
Netsnmp_Node_Handler sctpAssocLocalAddrTable_handler;

/*
 * column number definitions for table sctpAssocLocalAddrTable 
 */
#define COLUMN_SCTPASSOCLOCALADDRTYPE		1
#define COLUMN_SCTPASSOCLOCALADDR		2
#define COLUMN_SCTPASSOCLOCALADDRSTARTTIME		3

#define SCTP_ASSOC_LOCAL_ADDR_TABLE_INDEX_SIZE 100
/** Typical data structure for a row entry */
struct sctpAssocLocalAddrTable_entry_s {
    netsnmp_index   oid_index;
    oid             oid_tmp[SCTP_ASSOC_LOCAL_ADDR_TABLE_INDEX_SIZE];

    /*
     * Index values 
     */
    u_long          sctpAssocId;
    u_long          sctpAssocLocalAddrType;
    char            sctpAssocLocalAddr[SCTP_IPADDRESS_SIZE];
    u_long          sctpAssocLocalAddr_len;

    /*
     * Column values 
     */
    u_long          sctpAssocLocalAddrStartTime;

    int             valid;
};

sctpAssocLocalAddrTable_entry *sctpAssocLocalAddrTable_entry_create(void);
int
sctpAssocLocalAddrTable_entry_update_index(sctpAssocLocalAddrTable_entry *
                                           entry);
void
sctpAssocLocalAddrTable_entry_copy(sctpAssocLocalAddrTable_entry * from,
                                   sctpAssocLocalAddrTable_entry * to);
void
 sctpAssocLocalAddrTable_entry_free(sctpAssocLocalAddrTable_entry * entry);

void            sctpAssocLocalAddrTable_container_clear(netsnmp_container
                                                        *container);

#endif                          /* SCTPASSOCLOCALADDRTABLE_H */