aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:30:19 -0400
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:45:27 -0400
commit71bb49596bbf4e5a3328e1704d18604e822ba181 (patch)
tree75f64f2f0fea482efc3bdcac407ab187d9e78b5a /include/linux
parent86349c8d9c6892b57aff4549256ab1aa65aed0f0 (diff)
dccp: Query supported CCIDs
This provides a data structure to record which CCIDs are locally supported and three accessor functions: - a test function for internal use which is used to validate CCID requests made by the user; - a copy function so that the list can be used for feature-negotiation; - documented getsockopt() support so that the user can query capabilities. The data structure is a table which is filled in at compile-time with the list of available CCIDs (which in turn depends on the Kconfig choices). Using the copy function for cloning the list of supported CCIDs is useful for feature negotiation, since the negotiation is now with the full list of available CCIDs (e.g. {2, 3}) instead of the default value {2}. This means negotiation will not fail if the peer requests to use CCID3 instead of CCID2. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dccp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h
index 484b8a1fb023..d3ac1bde60b4 100644
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -209,6 +209,7 @@ struct dccp_so_feat {
209#define DCCP_SOCKOPT_SERVER_TIMEWAIT 6 209#define DCCP_SOCKOPT_SERVER_TIMEWAIT 6
210#define DCCP_SOCKOPT_SEND_CSCOV 10 210#define DCCP_SOCKOPT_SEND_CSCOV 10
211#define DCCP_SOCKOPT_RECV_CSCOV 11 211#define DCCP_SOCKOPT_RECV_CSCOV 11
212#define DCCP_SOCKOPT_AVAILABLE_CCIDS 12
212#define DCCP_SOCKOPT_CCID_RX_INFO 128 213#define DCCP_SOCKOPT_CCID_RX_INFO 128
213#define DCCP_SOCKOPT_CCID_TX_INFO 192 214#define DCCP_SOCKOPT_CCID_TX_INFO 192
214 215