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)
commit8c862c23e2563e6aedfc6c4aa6827cadb83f2414
tree55550ae7c2b62e5b93a09487278db91c334d615a
parentd371056695ef993d36c57b73d654e66080377a9c
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>
net/dccp/feat.h
net/dccp/options.c