瀏覽代碼

[tcp] Do not send RST for unrecognised connections

On large networks with substantial numbers of monitoring agents,
unwanted TCP connection attempts may end up flooding iPXE's ARP cache.

Fix by silently dropping packets received for unrecognised TCP
connections.  This should not cause problems, since many firewalls
will also silently drop any such packets.

Reported-by: Jarrod Johnson <jarrod.b.johnson@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
18d0818f94
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      src/net/tcp.c

+ 0
- 1
src/net/tcp.c 查看文件

@@ -1218,7 +1218,6 @@ static int tcp_rx ( struct io_buffer *iobuf,
1218 1218
 
1219 1219
 	/* If no connection was found, send RST */
1220 1220
 	if ( ! tcp ) {
1221
-		tcp_xmit_reset ( tcp, st_src, tcphdr );
1222 1221
 		rc = -ENOTCONN;
1223 1222
 		goto discard;
1224 1223
 	}

Loading…
取消
儲存