Skip to content
Snippets Groups Projects
Commit c083fb90 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

xdp-tcp: respond invalid SYN or RST with challenge ACK

parent a023cc05
No related branches found
No related tags found
1 merge request!1394xdp-tcp: evolution and bugfixes
......@@ -293,9 +293,7 @@ int knot_tcp_recv(knot_tcp_relay_t *relays, knot_xdp_msg_t *msgs, uint32_t count
}
}
} else {
relay->auto_answer = KNOT_XDP_MSG_RST; // TODO consider resetting the OLD conn and accepting new one
relay->auto_seqno = msg->ackno;
relay->del_from = pconn;
relay->auto_answer = KNOT_XDP_MSG_ACK;
}
break;
case KNOT_XDP_MSG_ACK:
......@@ -354,6 +352,8 @@ int knot_tcp_recv(knot_tcp_relay_t *relays, knot_xdp_msg_t *msgs, uint32_t count
relay->action = XDP_TCP_RESET;
tcp_table_del(pconn, tcp_table);
relay->conn = NULL;
} else if (conn != NULL) {
relay->auto_answer = KNOT_XDP_MSG_ACK;
}
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment