Skip to content
Commit 18e1d836 authored by Wei Yongjun's avatar Wei Yongjun Committed by Gerrit Renker
Browse files

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: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
parent e0bcfb0c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment