[DCCP]: Use AF-independent rebuild_header routine
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 28 Nov 2007 08:35:08 +0000 (08:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:12 +0000 (14:55 -0800)
commitf53dc67c5e7babafe239b93a11678b0e05bead51
tree50737228e796667e8c24e9a821cb11bca372516a
parent276f2edc52e309b38a216245952e05880e182c83
[DCCP]: Use AF-independent rebuild_header routine

This fixes a nasty bug: dccp_send_reset() is called by both DCCPv4 and DCCPv6, but uses
inet_sk_rebuild_header() in each case. This leads to unpredictable and weird behaviour:
under some conditions, DCCPv6 Resets were sent, in other not.

The fix is to use the AF-independent rebuild_header routine.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/output.c