git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7100de1
)
- PL3791 fix: Suppress RST if the port was bound to a (presumably raw) socket
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:02:29 +0000
(20:02 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 17 Jan 2005 20:02:29 +0000
(20:02 +0000)
net/ipv4/tcp_ipv4.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_ipv4.c
b/net/ipv4/tcp_ipv4.c
index
70945b4
..
55b8060
100644
(file)
--- a/
net/ipv4/tcp_ipv4.c
+++ b/
net/ipv4/tcp_ipv4.c
@@
-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);
}