1
#ifndef SCTP_SCALARS_COMMON_H
2
#define SCTP_SCALARS_COMMON_H
7
#define SCTP_CURRESTAB 1
8
#define SCTP_ACTIVEESTABS 2
9
#define SCTP_PASSIVEESTABS 3
10
#define SCTP_ABORTEDS 4
11
#define SCTP_SHUTDOWNS 5
12
#define SCTP_OUTOFBLUES 6
13
#define SCTP_CHECKSUMERRORS 7
14
#define SCTP_OUTCTRLCHUNKS 8
15
#define SCTP_OUTORDERCHUNKS 9
16
#define SCTP_OUTUNORDERCHUNKS 10
17
#define SCTP_INCTRLCHUNKS 11
18
#define SCTP_INORDERCHUNKS 12
19
#define SCTP_INUNORDERCHUNKS 13
20
#define SCTP_FRAGUSRMSGS 14
21
#define SCTP_REASMUSRMSGS 15
22
#define SCTP_OUTSCTPPACKS 16
23
#define SCTP_INSCTPPACKS 17
24
#define SCTP_DISCONTINUITYTIME 18
26
#define SCTP_RTOALGORITHM 1
29
#define SCTP_RTOINITIAL 4
30
#define SCTP_MAXASSOCS 5
31
#define SCTP_VALCOOKIELIFE 6
32
#define SCTP_MAXINITRETR 7
35
* Define cache timeouts
37
#define SCTP_STATS_CACHE_TIMEOUT 30
38
#define SCTP_PARAMS_CACHE_TIMEOUT 30
41
* Structure to hold sctpStats
43
typedef struct netsnmp_sctp_stats_s {
50
u_int checksum_errors;
51
struct counter64 out_ctrl_chunks;
52
struct counter64 out_order_chunks;
53
struct counter64 out_unorder_chunks;
54
struct counter64 in_ctrl_chunks;
55
struct counter64 in_order_chunks;
56
struct counter64 in_unorder_chunks;
57
struct counter64 frag_usr_msgs;
58
struct counter64 reasm_usr_msgs;
59
struct counter64 out_sctp_packs;
60
struct counter64 in_sctp_packs;
61
u_long discontinuity_time;
65
* Enums for sctpParams
67
#define NETSNMP_SCTP_ALGORITHM_OTHER 1
68
#define NETSNMP_SCTP_ALGORITHM_VANJ 2
71
* Structure to hold sctpParams
73
typedef struct netsnmp_sctp_params_s {
79
u_int val_cookie_life;
81
} netsnmp_sctp_params;
85
* sctpStats cached values.
86
* Will be used to reconstruct 64-bit counters when the underlying platform
87
* provides only 32-bit ones.
89
extern netsnmp_sctp_stats sctp_stats;
92
* sctpParams cached values.
94
extern netsnmp_sctp_params sctp_params;
96
Netsnmp_Node_Handler sctp_stats_handler;
97
Netsnmp_Node_Handler sctp_params_handler;
100
* function declarations
105
* =======================================================
106
* Platform independent functions.
107
* Mostly just wrappers around the platform dependent ones.
108
* =======================================================
110
extern void netsnmp_access_sctp_stats_init(void);
111
extern NetsnmpCacheLoad netsnmp_access_sctp_stats_load;
112
extern NetsnmpCacheFree netsnmp_access_sctp_stats_free;
114
extern void netsnmp_access_sctp_params_init(void);
115
extern NetsnmpCacheLoad netsnmp_access_sctp_params_load;
116
extern NetsnmpCacheFree netsnmp_access_sctp_params_free;
119
* =======================================================
120
* Platform dependent functions.
121
* These do the real work.
122
* =======================================================
126
* Initialize patform dependent part of sctpStats.
128
extern void netsnmp_access_sctp_stats_arch_init(void);
131
* Load the sctpStats from underlying platform. The caller will reconstruct
132
* 64-bit counters if the platform provided 32-bit ones only.
134
extern int netsnmp_access_sctp_stats_arch_load(netsnmp_sctp_stats *
138
* Initialize patform dependent part of sctpParams.
140
extern void netsnmp_access_sctp_params_arch_init(void);
143
* Load the sctpParams.
145
extern int netsnmp_access_sctp_params_arch_load(netsnmp_sctp_params *
148
#endif /* SCTP_SCALARS_COMMON_H */