aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/feat.h
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-11-23 19:10:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-23 19:10:23 -0500
commit8c862c23e2563e6aedfc6c4aa6827cadb83f2414 (patch)
tree55550ae7c2b62e5b93a09487278db91c334d615a /net/dccp/feat.h
parentd371056695ef993d36c57b73d654e66080377a9c (diff)
dccp: Header option insertion routine for feature-negotiation
The patch extends existing code: * Confirm options divide into the confirmed value plus an optional preference list for SP values. Previously only the preference list was echoed for SP values, now the confirmed value is added as per RFC 4340, 6.1; * length and sanity checks are added to avoid illegal memory (or NULL) access. 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>
Diffstat (limited to 'net/dccp/feat.h')
-rw-r--r--net/dccp/feat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/feat.h b/net/dccp/feat.h
index f8e4878dfc28..7efb2025f6bf 100644
--- a/net/dccp/feat.h
+++ b/net/dccp/feat.h
@@ -141,4 +141,6 @@ extern void dccp_encode_value_var(const u64 value, u8 *to, const u8 len);
141extern u64 dccp_decode_value_var(const u8 *bf, const u8 len); 141extern u64 dccp_decode_value_var(const u8 *bf, const u8 len);
142 142
143extern int dccp_insert_option_mandatory(struct sk_buff *skb); 143extern int dccp_insert_option_mandatory(struct sk_buff *skb);
144extern int dccp_insert_fn_opt(struct sk_buff *skb, u8 type, u8 feat,
145 u8 *val, u8 len, bool repeat_first);
144#endif /* _DCCP_FEAT_H */ 146#endif /* _DCCP_FEAT_H */