dccp: Header option insertion routine for feature-negotiation
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 24 Nov 2008 00:10:23 +0000 (16:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Nov 2008 00:10:23 +0000 (16:10 -0800)
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>
net/dccp/feat.h
net/dccp/options.c

diff --cc net/dccp/feat.h
Simple merge
Simple merge