Skip to content

Commit

Permalink
Never send a rst in respone to a rst.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonkey committed May 24, 2018
1 parent d5e0be9 commit 25e9e42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/lb_proto_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ tcp_response_rst(struct rte_mbuf *m, struct ipv4_hdr *iph, struct tcp_hdr *th,
uint32_t seq, ack;
uint8_t tcp_flags;

if (RST(th)) {
rte_pktmbuf_free(m);
return;
}

rte_pktmbuf_reset(m);
m->pkt_len = m->data_len =
ETHER_HDR_LEN + sizeof(struct ipv4_hdr) + sizeof(struct tcp_hdr);
Expand Down

0 comments on commit 25e9e42

Please sign in to comment.