mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
tcp: don't respond to RST packets
This commit is contained in:
@@ -277,6 +277,9 @@ void tcp<InetTraits>::tcb::respond_with_reset(tcp_hdr* rth) {
|
||||
|
||||
template <typename InetTraits>
|
||||
void tcp<InetTraits>::respond_with_reset(tcp_hdr* rth, ipaddr local_ip, ipaddr foreign_ip) {
|
||||
if (rth->f_rst) {
|
||||
return;
|
||||
}
|
||||
packet p;
|
||||
auto th = p.prepend_header<tcp_hdr>();
|
||||
th->src_port = rth->dst_port;
|
||||
|
||||
Reference in New Issue
Block a user