diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/sctp.h | 44 | ||||
-rw-r--r-- | include/net/snmp.h | 6 |
2 files changed, 44 insertions, 6 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 1c1abce5f6b6..e274fd479990 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -216,6 +216,50 @@ DECLARE_SNMP_STAT(struct sctp_mib, sctp_statistics); | |||
216 | 216 | ||
217 | #endif /* !TEST_FRAME */ | 217 | #endif /* !TEST_FRAME */ |
218 | 218 | ||
219 | /* sctp mib definitions */ | ||
220 | enum | ||
221 | { | ||
222 | SCTP_MIB_NUM = 0, | ||
223 | SCTP_MIB_CURRESTAB, /* CurrEstab */ | ||
224 | SCTP_MIB_ACTIVEESTABS, /* ActiveEstabs */ | ||
225 | SCTP_MIB_PASSIVEESTABS, /* PassiveEstabs */ | ||
226 | SCTP_MIB_ABORTEDS, /* Aborteds */ | ||
227 | SCTP_MIB_SHUTDOWNS, /* Shutdowns */ | ||
228 | SCTP_MIB_OUTOFBLUES, /* OutOfBlues */ | ||
229 | SCTP_MIB_CHECKSUMERRORS, /* ChecksumErrors */ | ||
230 | SCTP_MIB_OUTCTRLCHUNKS, /* OutCtrlChunks */ | ||
231 | SCTP_MIB_OUTORDERCHUNKS, /* OutOrderChunks */ | ||
232 | SCTP_MIB_OUTUNORDERCHUNKS, /* OutUnorderChunks */ | ||
233 | SCTP_MIB_INCTRLCHUNKS, /* InCtrlChunks */ | ||
234 | SCTP_MIB_INORDERCHUNKS, /* InOrderChunks */ | ||
235 | SCTP_MIB_INUNORDERCHUNKS, /* InUnorderChunks */ | ||
236 | SCTP_MIB_FRAGUSRMSGS, /* FragUsrMsgs */ | ||
237 | SCTP_MIB_REASMUSRMSGS, /* ReasmUsrMsgs */ | ||
238 | SCTP_MIB_OUTSCTPPACKS, /* OutSCTPPacks */ | ||
239 | SCTP_MIB_INSCTPPACKS, /* InSCTPPacks */ | ||
240 | SCTP_MIB_T1_INIT_EXPIREDS, | ||
241 | SCTP_MIB_T1_COOKIE_EXPIREDS, | ||
242 | SCTP_MIB_T2_SHUTDOWN_EXPIREDS, | ||
243 | SCTP_MIB_T3_RTX_EXPIREDS, | ||
244 | SCTP_MIB_T4_RTO_EXPIREDS, | ||
245 | SCTP_MIB_T5_SHUTDOWN_GUARD_EXPIREDS, | ||
246 | SCTP_MIB_DELAY_SACK_EXPIREDS, | ||
247 | SCTP_MIB_AUTOCLOSE_EXPIREDS, | ||
248 | SCTP_MIB_T3_RETRANSMITS, | ||
249 | SCTP_MIB_PMTUD_RETRANSMITS, | ||
250 | SCTP_MIB_FAST_RETRANSMITS, | ||
251 | SCTP_MIB_IN_PKT_SOFTIRQ, | ||
252 | SCTP_MIB_IN_PKT_BACKLOG, | ||
253 | SCTP_MIB_IN_PKT_DISCARDS, | ||
254 | SCTP_MIB_IN_DATA_CHUNK_DISCARDS, | ||
255 | __SCTP_MIB_MAX | ||
256 | }; | ||
257 | |||
258 | #define SCTP_MIB_MAX __SCTP_MIB_MAX | ||
259 | struct sctp_mib { | ||
260 | unsigned long mibs[SCTP_MIB_MAX]; | ||
261 | } __SNMP_MIB_ALIGN__; | ||
262 | |||
219 | 263 | ||
220 | /* Print debugging messages. */ | 264 | /* Print debugging messages. */ |
221 | #if SCTP_DEBUG | 265 | #if SCTP_DEBUG |
diff --git a/include/net/snmp.h b/include/net/snmp.h index a36bed8ea210..464970e39ec0 100644 --- a/include/net/snmp.h +++ b/include/net/snmp.h | |||
@@ -100,12 +100,6 @@ struct udp_mib { | |||
100 | unsigned long mibs[UDP_MIB_MAX]; | 100 | unsigned long mibs[UDP_MIB_MAX]; |
101 | } __SNMP_MIB_ALIGN__; | 101 | } __SNMP_MIB_ALIGN__; |
102 | 102 | ||
103 | /* SCTP */ | ||
104 | #define SCTP_MIB_MAX __SCTP_MIB_MAX | ||
105 | struct sctp_mib { | ||
106 | unsigned long mibs[SCTP_MIB_MAX]; | ||
107 | } __SNMP_MIB_ALIGN__; | ||
108 | |||
109 | /* Linux */ | 103 | /* Linux */ |
110 | #define LINUX_MIB_MAX __LINUX_MIB_MAX | 104 | #define LINUX_MIB_MAX __LINUX_MIB_MAX |
111 | struct linux_mib { | 105 | struct linux_mib { |