dccp: Header option insertion routine for feature-negotiation
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Sep 2008 05:30:19 +0000 (07:30 +0200)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Sep 2008 05:45:29 +0000 (07:45 +0200)
commitcf9ddf73b9ba21a5cd6d3fcb0a45cfa9ec452033
treec5137cf30d6f28100e57492e5c0e64a7294add22
parentd0440ee6f6903fcde6ed4efb88c910de1dfa18e5
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>
net/dccp/feat.h
net/dccp/options.c