- PL3791 fix: Suppress RST if the port was bound to a (presumably raw) socket
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:02:29 +0000 (20:02 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:02:29 +0000 (20:02 +0000)
net/ipv4/tcp_ipv4.c

index 70945b4..55b8060 100644 (file)
@@ -1856,7 +1856,8 @@ no_tcp_socket:
        if (skb->len < (th->doff << 2) || tcp_checksum_complete(skb)) {
 bad_packet:
                TCP_INC_STATS_BH(TCP_MIB_INERRS);
-       } else {
+       } else if (!skb->sk) {
+               /* VNET: Suppress RST if the port was bound to a (presumably raw) socket */
                tcp_v4_send_reset(skb);
        }