]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/dccp/ipv4.c
[DCCP]: Retrieve packet sequence number for error reporting
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 24 Oct 2007 12:12:09 +0000 (10:12 -0200)
committerArnaldo Carvalho de Melo <acme@ghostprotocols.net>
Wed, 24 Oct 2007 12:12:09 +0000 (10:12 -0200)
commitfde20105f332614b23a3131d706cd90bdd7db72d
tree217c186a8c038a7a6d7bcc775081f9566b903e36
parent03cf786c4e83dba404ad23ca58f49147ae52dffd
[DCCP]: Retrieve packet sequence number for error reporting

This fixes a problem when analysing erroneous packets in dccp_v{4,6}_err:
* dccp_hdr_seq currently takes an skb
* however, the transport headers in the skb are shifted, due to the
  preceding IPv4/v6 header.
Fixed for v4 and v6 by changing dccp_hdr_seq to take a struct dccp_hdr as
argument. Verified that the correct sequence number is now reported in the
error handler.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
include/linux/dccp.h
net/dccp/ipv4.c
net/dccp/ipv6.c