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: NWei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
Showing
想要评论请 注册 或 登录