aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dccp.h
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
commit668144f7b41716a9efe1b398e15ead32a26cd101 (patch)
treeed535a5e2e2dc2dd8509336d2682aeaae66e4c00 /include/linux/dccp.h
parentd4c8741c431e07cfc66eb2b4c3a17b8d4975d9c0 (diff)
dccp: Deprecate old setsockopt framework
The previous setsockopt interface, which passed socket options via struct dccp_so_feat, is complicated/difficult to use. Continuing to support it leads to ugly code since the old approach did not distinguish between NN and SP values. This patch removes the old setsockopt interface and replaces it with two new functions to register NN/SP values for feature negotiation. These are essentially wrappers around the internal __feat_register functions, with checking added to avoid * wrong usage (type); * changing values while the connection is in progress. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r--include/linux/dccp.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h
index d3ac1bde60b4..6eaaca9b037a 100644
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -193,13 +193,6 @@ enum dccp_feature_numbers {
193 DCCPF_MAX_CCID_SPECIFIC = 255, 193 DCCPF_MAX_CCID_SPECIFIC = 255,
194}; 194};
195 195
196/* this structure is argument to DCCP_SOCKOPT_CHANGE_X */
197struct dccp_so_feat {
198 __u8 dccpsf_feat;
199 __u8 __user *dccpsf_val;
200 __u8 dccpsf_len;
201};
202
203/* DCCP socket options */ 196/* DCCP socket options */
204#define DCCP_SOCKOPT_PACKET_SIZE 1 /* XXX deprecated, without effect */ 197#define DCCP_SOCKOPT_PACKET_SIZE 1 /* XXX deprecated, without effect */
205#define DCCP_SOCKOPT_SERVICE 2 198#define DCCP_SOCKOPT_SERVICE 2