]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: Feature activation handlers
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 2 Dec 2008 07:34:01 +0000 (23:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Dec 2008 07:34:01 +0000 (23:34 -0800)
commit4b94a6091b0462a898eb4c5ec0ea7b0947346f54
treee40520346933d4c1d27ad7712f09bcd45fb25fca
parentf99051d5f3b03bbe54f6981649d35ed8d2182116
dccp: Feature activation handlers

This patch provides the post-processing of feature negotiation state, after
the negotiation has completed.

To this purpose, handlers are used and added to the dccp_feat_table. Each
handler is passed a boolean flag whether the RX or TX side of the feature
is meant.

Several handlers are provided already, new handlers can easily be added.

The initialisation is now fully dynamic, i.e. CCIDs are activated only
after the feature negotiation. The integration of this dynamic activation
is done in the subsequent patches.

Thanks to Wei Yongjun for pointing out the necessity of skipping over empty
Confirm options while copying the negotiated feature values.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h
net/dccp/feat.c