diff --git a/net/tcp.hh b/net/tcp.hh index 38416b9e36..c1ea1f8dc7 100644 --- a/net/tcp.hh +++ b/net/tcp.hh @@ -277,6 +277,9 @@ void tcp::tcb::respond_with_reset(tcp_hdr* rth) { template void tcp::respond_with_reset(tcp_hdr* rth, ipaddr local_ip, ipaddr foreign_ip) { + if (rth->f_rst) { + return; + } packet p; auto th = p.prepend_header(); th->src_port = rth->dst_port;