Skip to content
Commit 6a27fd22 authored by Shrek Wang's avatar Shrek Wang Committed by Daniel DeGrasse
Browse files

net: tcp: Add TCP ACK validation



According to RFC 793, ch 3.9 Event Processing,
after the connection is sync-ed with seqnum of both sides then,
        1. drop any received segment if the ACK bit is off.
        2. validate the acknum like this:
        SND.UNA =< SEG.ACK =< SND.NXT

The ACK validation is done before entering the state-machine, so
remove the flags <ACK> check in the state-machine processing.

Signed-off-by: default avatarShrek Wang <inet_eman@outlook.com>
parent b6d955c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment