]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: Deprecate old setsockopt framework
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 17 Nov 2008 06:51:23 +0000 (22:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 06:51:23 +0000 (22:51 -0800)
commitaf3618df3435b1e0c4b2ee08ab169c92ba5324f3
tree0b12afdd2e742c3eb481aef8d2adcb7b1aeca9f1
parentc91801154771b223f20e4a2602651f366aa7823f
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dccp.h
net/dccp/feat.c
net/dccp/feat.h
net/dccp/proto.c