Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f64d4b67
Commit
f64d4b67
authored
Oct 24, 2002
by
Sridhar Samudrala
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
c999d78c
1db1c581
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
include/net/sctp/sctp.h
include/net/sctp/sctp.h
+6
-0
include/net/snmp.h
include/net/snmp.h
+29
-0
net/sctp/protocol.c
net/sctp/protocol.c
+1
-0
No files found.
include/net/sctp/sctp.h
View file @
f64d4b67
...
...
@@ -83,6 +83,7 @@
#include <asm/uaccess.h>
#include <asm/page.h>
#include <net/sock.h>
#include <net/snmp.h>
#include <net/sctp/structs.h>
#include <net/sctp/constants.h>
#include <net/sctp/sm.h>
...
...
@@ -201,6 +202,11 @@ extern void sctp_hash_digest(const char *secret, const int secret_len,
#define SCTP_SOCK_SLEEP_PRE(sk) SOCK_SLEEP_PRE(sk)
#define SCTP_SOCK_SLEEP_POST(sk) SOCK_SLEEP_POST(sk)
/* SCTP SNMP MIB stats handlers */
extern
struct
sctp_mib
sctp_statistics
[
NR_CPUS
*
2
];
#define SCTP_INC_STATS(field) SNMP_INC_STATS(sctp_statistics, field)
#define SCTP_INC_STATS_BH(field) SNMP_INC_STATS_BH(sctp_statistics, field)
#define SCTP_INC_STATS_USER(field) SNMP_INC_STATS_USER(sctp_statistics, field)
/* Determine if this is a valid kernel address. */
static
inline
int
sctp_is_valid_kaddr
(
unsigned
long
addr
)
...
...
include/net/snmp.h
View file @
f64d4b67
...
...
@@ -189,6 +189,35 @@ struct udp_mib
unsigned
long
__pad
[
0
];
}
____cacheline_aligned
;
/* draft-ietf-sigtran-sctp-mib-07.txt */
struct
sctp_mib
{
unsigned
long
SctpCurrEstab
;
unsigned
long
SctpActiveEstabs
;
unsigned
long
SctpPassiveEstabs
;
unsigned
long
SctpAborteds
;
unsigned
long
SctpShutdowns
;
unsigned
long
SctpOutOfBlues
;
unsigned
long
SctpChecksumErrors
;
unsigned
long
SctpOutCtrlChunks
;
unsigned
long
SctpOutOrderChunks
;
unsigned
long
SctpOutUnorderChunks
;
unsigned
long
SctpInCtrlChunks
;
unsigned
long
SctpInOrderChunks
;
unsigned
long
SctpInUnorderChunks
;
unsigned
long
SctpFragUsrMsgs
;
unsigned
long
SctpReasmUsrMsgs
;
unsigned
long
SctpOutSCTPPacks
;
unsigned
long
SctpInSCTPPacks
;
unsigned
long
SctpRtoAlgorithm
;
unsigned
long
SctpRtoMin
;
unsigned
long
SctpRtoMax
;
unsigned
long
SctpRtoInitial
;
unsigned
long
SctpValCookieLife
;
unsigned
long
SctpMaxInitRetr
;
unsigned
long
__pad
[
0
];
}
____cacheline_aligned
;
struct
linux_mib
{
unsigned
long
SyncookiesSent
;
...
...
net/sctp/protocol.c
View file @
f64d4b67
...
...
@@ -59,6 +59,7 @@
/* Global data structures. */
sctp_protocol_t
sctp_proto
;
struct
proc_dir_entry
*
proc_net_sctp
;
struct
sctp_mib
sctp_statistics
[
NR_CPUS
*
2
];
/* This is the global socket data structure used for responding to
* the Out-of-the-blue (OOTB) packets. A control sock will be created
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment