aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2008-07-26 11:59:10 +0100
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2008-07-26 11:59:10 +0100
commit18e1d836002ad970f42736bad09b7be9cfe99545 (patch)
tree2e704da1e24eba0f1a09d4b983a34bcc5b51f29d /drivers
parentdccp: Add check for sequence number in ICMPv6 message (diff)
downloadlinux-dev-18e1d836002ad970f42736bad09b7be9cfe99545.tar.xz
linux-dev-18e1d836002ad970f42736bad09b7be9cfe99545.zip
dccp: Fix incorrect length check for ICMPv4 packets
Unlike TCP, which only needs 8 octets of original packet data, DCCP requires minimally 12 or 16 bytes for ICMP-payload sequence number checks. This patch replaces the insufficient length constant of 8 with a two-stage test, making sure that 12 bytes are available, before computing the basic header length required for sequence number checks. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions