]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit422d9cdcb85b3622d08a590fed66021af7aea333
treee40520346933d4c1d27ad7712f09bcd45fb25fca
parentb1ad00422ecba0449f8e3a8f2ec9267bc994bf8f
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