• W
    sctp: Validate Initiate Tag when handling ICMP message · 7115e632
    Wei Yongjun 提交于
    This patch add to validate initiate tag and chunk type if verification
    tag is 0 when handling ICMP message.
    
    RFC 4960, Appendix C. ICMP Handling
    
    ICMP6) An implementation MUST validate that the Verification Tag
    contained in the ICMP message matches the Verification Tag of the peer.
    If the Verification Tag is not 0 and does NOT match, discard the ICMP
    message.  If it is 0 and the ICMP message contains enough bytes to
    verify that the chunk type is an INIT chunk and that the Initiate Tag
    matches the tag of the peer, continue with ICMP7.  If the ICMP message
    is too short or the chunk type or the Initiate Tag does not match,
    silently discard the packet.
    Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
    Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    7115e632
input.c 29.9 KB