I'm thinking of a situation where an attacker manipulates a SYN packet that was sent from A's source IP address to B.
The server will receive the packet and think it's a legitimate packet, and send a SYN/ACK packet as a response to B instead of A.
Upon receiving a SYN/ACK packet from a server, as B, what would send back? Would it send RST packet to indicate that it's an error? or SYN/ACK packet thinking a server is trying to establish a connection?
I'm trying to think what would an attacker gain from this type of attack..
This is not a homework. It's just my curiosity as I begin to learn this TCP/IP connection establishment.