diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-12-02 08:32:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-02 08:32:35 +0100 |
commit | e77b8363b2ea7c0d89919547c1a8b0562f298b57 (patch) | |
tree | 9fdef240be3aeb49c012fd00d41f9ee90afe776c /net/dccp/feat.h | |
parent | dccp: Preference list reconciliation (diff) | |
download | linux-e77b8363b2ea7c0d89919547c1a8b0562f298b57.tar.xz linux-e77b8363b2ea7c0d89919547c1a8b0562f298b57.zip |
dccp: Process incoming Change feature-negotiation options
This adds/replaces code for processing incoming ChangeL/R options.
The main difference is that:
* mandatory FN options are now interpreted inside the function
(there are too many individual cases to do this externally);
* the function returns an appropriate Reset code or 0,
which is then used to fill in the data for the Reset packet.
Old code, which is no longer used or referenced, has been removed.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/feat.h')
-rw-r--r-- | net/dccp/feat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/feat.h b/net/dccp/feat.h index 7efb2025f6bf..8dc4b42ef172 100644 --- a/net/dccp/feat.h +++ b/net/dccp/feat.h @@ -116,8 +116,8 @@ static inline void dccp_feat_debug(const u8 type, const u8 feat, const u8 val) extern int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local, u8 const *list, u8 len); extern int dccp_feat_register_nn(struct sock *sk, u8 feat, u64 val); -extern int dccp_feat_change_recv(struct sock *sk, u8 type, u8 feature, - u8 *val, u8 len); +extern int dccp_feat_parse_options(struct sock *, struct dccp_request_sock *, + u8 mand, u8 opt, u8 feat, u8 *val, u8 len); extern int dccp_feat_confirm_recv(struct sock *sk, u8 type, u8 feature, u8 *val, u8 len); extern void dccp_feat_clean(struct dccp_minisock *dmsk); |