diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2008-05-09 15:14:11 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-09 15:14:11 -0700 |
commit | 88a0a948e752bb9b617a8c55417a9fd9b0257199 (patch) | |
tree | 029e51ae711181e0c3e27432f54e9992b998525f /include/net/sctp | |
parent | d364d9276b54af16fcb4db83f1315b620daec102 (diff) | |
download | op-kernel-dev-88a0a948e752bb9b617a8c55417a9fd9b0257199.zip op-kernel-dev-88a0a948e752bb9b617a8c55417a9fd9b0257199.tar.gz |
sctp: Support the new specification of sctp_connectx()
The specification of sctp_connectx() has been changed to return
an association id. We've added a new socket option that will
return the association id as the return value from the setsockopt()
call. The library that implements sctp_connectx() interface will
implement both socket options.
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index 31371d2..f205b10f 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h @@ -137,12 +137,14 @@ enum sctp_optname { #define SCTP_GET_LOCAL_ADDRS_NUM_OLD SCTP_GET_LOCAL_ADDRS_NUM_OLD SCTP_GET_LOCAL_ADDRS_OLD, /* Get all local addresss. */ #define SCTP_GET_LOCAL_ADDRS_OLD SCTP_GET_LOCAL_ADDRS_OLD - SCTP_SOCKOPT_CONNECTX, /* CONNECTX requests. */ -#define SCTP_SOCKOPT_CONNECTX SCTP_SOCKOPT_CONNECTX + SCTP_SOCKOPT_CONNECTX_OLD, /* CONNECTX old requests. */ +#define SCTP_SOCKOPT_CONNECTX_OLD SCTP_SOCKOPT_CONNECTX_OLD SCTP_GET_PEER_ADDRS, /* Get all peer addresss. */ #define SCTP_GET_PEER_ADDRS SCTP_GET_PEER_ADDRS SCTP_GET_LOCAL_ADDRS, /* Get all local addresss. */ #define SCTP_GET_LOCAL_ADDRS SCTP_GET_LOCAL_ADDRS + SCTP_SOCKOPT_CONNECTX, /* CONNECTX requests. */ +#define SCTP_SOCKOPT_CONNECTX SCTP_SOCKOPT_CONNECTX }; /* |