aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sctp.h
diff options
context:
space:
mode:
authorSridhar Samudrala <sri@us.ibm.com>2006-08-22 03:15:33 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:55:16 -0400
commitac0b04627269ff16c3c7ab854a65fe6780c6e3e5 (patch)
tree421ea678ea12d1e193b3bbf27fb1410355ba9b47 /include/net/sctp/sctp.h
parent72d3b2c970a2d5d2ccb1d1cab4fb76663c4f2e49 (diff)
[SCTP]: Extend /proc/net/sctp/snmp to provide more statistics.
This patch adds more statistics info under /proc/net/sctp/snmp that should be useful for debugging. The additional events that are counted now include timer expirations, retransmits, packet and data chunk discards. The Data chunk discards include all the cases where a data chunk is discarded including high tsn, bad stream, dup tsn and the most useful one(out of receive buffer/rwnd). Also moved the SCTP MIB data structures from the generic include directories to include/sctp/sctp.h. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r--include/net/sctp/sctp.h44
1 files changed, 44 insertions, 0 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 */
220enum
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
259struct 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