diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2008-12-25 16:57:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-25 16:57:24 -0800 |
commit | aea3c5c05d2c409e93bfa80dcedc06af7da6c13b (patch) | |
tree | 2ee271efa68ef7677c94b1c9daaa33b9ad6a2531 /include/net/sctp | |
parent | ea686a2653c5586b1c7192958b9d521abde66e92 (diff) | |
download | op-kernel-dev-aea3c5c05d2c409e93bfa80dcedc06af7da6c13b.zip op-kernel-dev-aea3c5c05d2c409e93bfa80dcedc06af7da6c13b.tar.gz |
sctp: Implement socket option SCTP_GET_ASSOC_NUMBER
Implement socket option SCTP_GET_ASSOC_NUMBER of the latest ietf socket
extensions API draft.
8.2.5. Get the Current Number of Associations (SCTP_GET_ASSOC_NUMBER)
This option gets the current number of associations that are attached
to a one-to-many style socket. The option value is an uint32_t.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index f205b10f..b259fc5 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h @@ -118,6 +118,8 @@ enum sctp_optname { #define SCTP_PEER_AUTH_CHUNKS SCTP_PEER_AUTH_CHUNKS SCTP_LOCAL_AUTH_CHUNKS, /* Read only */ #define SCTP_LOCAL_AUTH_CHUNKS SCTP_LOCAL_AUTH_CHUNKS + SCTP_GET_ASSOC_NUMBER, /* Read only */ +#define SCTP_GET_ASSOC_NUMBER SCTP_GET_ASSOC_NUMBER /* Internal Socket Options. Some of the sctp library functions are |