* [PATCH] setsockopt: add missing SCTP socket layer options
[not found] <cover.1367580990.git.dborkman@redhat.com>
@ 2013-05-03 11:38 ` Daniel Borkmann
2013-05-03 14:45 ` Dave Jones
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Borkmann @ 2013-05-03 11:38 UTC (permalink / raw)
To: davej; +Cc: trinity
There are a couple of missing socket options for SCTP, so simply
add them to the list.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
---
include/compat.h | 1 +
syscalls/setsockopt.h | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/include/compat.h b/include/compat.h
index 3af8af4..a1f3d42 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -416,6 +416,7 @@ enum kcmp_type {
#define SCTP_GET_LOCAL_ADDRS 109 /* Get all local address. */
#define SCTP_SOCKOPT_CONNECTX 110 /* CONNECTX requests. */
#define SCTP_SOCKOPT_CONNECTX3 111 /* CONNECTX requests (updated) */
+#define SCTP_GET_ASSOC_STATS 112 /* Read only */
#endif
/* linux/rxrpc.h */
diff --git a/syscalls/setsockopt.h b/syscalls/setsockopt.h
index ced1099..28204dc 100644
--- a/syscalls/setsockopt.h
+++ b/syscalls/setsockopt.h
@@ -103,7 +103,7 @@ static int ipv6_opts[NR_SOL_IPV6_OPTS] = {
#define NR_SOL_ICMPV6_OPTS 1
static int icmpv6_opts[NR_SOL_ICMPV6_OPTS] = { ICMPV6_FILTER };
-#define NR_SOL_SCTP_OPTS 39
+#define NR_SOL_SCTP_OPTS 41
static int sctp_opts[NR_SOL_SCTP_OPTS] = {
SCTP_RTOINFO, SCTP_ASSOCINFO, SCTP_INITMSG, SCTP_NODELAY,
SCTP_AUTOCLOSE, SCTP_SET_PEER_PRIMARY_ADDR, SCTP_PRIMARY_ADDR, SCTP_ADAPTATION_LAYER,
@@ -112,10 +112,10 @@ static int sctp_opts[NR_SOL_SCTP_OPTS] = {
SCTP_DELAYED_ACK_TIME, SCTP_CONTEXT, SCTP_FRAGMENT_INTERLEAVE, SCTP_PARTIAL_DELIVERY_POINT,
SCTP_MAX_BURST, SCTP_AUTH_CHUNK, SCTP_HMAC_IDENT, SCTP_AUTH_KEY,
SCTP_AUTH_ACTIVE_KEY, SCTP_AUTH_DELETE_KEY, SCTP_PEER_AUTH_CHUNKS, SCTP_LOCAL_AUTH_CHUNKS,
- SCTP_GET_ASSOC_NUMBER, SCTP_GET_ASSOC_ID_LIST, SCTP_AUTO_ASCONF,
-
+ SCTP_GET_ASSOC_NUMBER, SCTP_GET_ASSOC_ID_LIST, SCTP_AUTO_ASCONF, SCTP_PEER_ADDR_THLDS,
SCTP_SOCKOPT_BINDX_ADD, SCTP_SOCKOPT_BINDX_REM, SCTP_SOCKOPT_PEELOFF, SCTP_SOCKOPT_CONNECTX_OLD,
- SCTP_GET_PEER_ADDRS, SCTP_GET_LOCAL_ADDRS, SCTP_SOCKOPT_CONNECTX, SCTP_SOCKOPT_CONNECTX3 };
+ SCTP_GET_PEER_ADDRS, SCTP_GET_LOCAL_ADDRS, SCTP_SOCKOPT_CONNECTX, SCTP_SOCKOPT_CONNECTX3,
+ SCTP_GET_ASSOC_STATS };
#define NR_SOL_AX25_OPTS 12
static int ax25_opts[NR_SOL_AX25_OPTS] = {
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] setsockopt: add missing SCTP socket layer options
2013-05-03 11:38 ` [PATCH] setsockopt: add missing SCTP socket layer options Daniel Borkmann
@ 2013-05-03 14:45 ` Dave Jones
0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2013-05-03 14:45 UTC (permalink / raw)
To: Daniel Borkmann; +Cc: trinity
On Fri, May 03, 2013 at 01:38:26PM +0200, Daniel Borkmann wrote:
> There are a couple of missing socket options for SCTP, so simply
> add them to the list.
Well spotted. Added and pushed out.
thanks,
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-03 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1367580990.git.dborkman@redhat.com>
2013-05-03 11:38 ` [PATCH] setsockopt: add missing SCTP socket layer options Daniel Borkmann
2013-05-03 14:45 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).