mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
slirp: remove dead TCP_ACK_HACK code
Untouched since original introduction in 2004. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
3a600d111a
commit
3a78c2f468
1 changed files with 1 additions and 22 deletions
|
@ -60,27 +60,6 @@
|
||||||
* Set DELACK for segments received in order, but ack immediately
|
* Set DELACK for segments received in order, but ack immediately
|
||||||
* when segments are out of order (so fast retransmit can work).
|
* when segments are out of order (so fast retransmit can work).
|
||||||
*/
|
*/
|
||||||
#ifdef TCP_ACK_HACK
|
|
||||||
#define TCP_REASS(tp, ti, m, so, flags) {\
|
|
||||||
if ((ti)->ti_seq == (tp)->rcv_nxt && \
|
|
||||||
tcpfrag_list_empty(tp) && \
|
|
||||||
(tp)->t_state == TCPS_ESTABLISHED) {\
|
|
||||||
if (ti->ti_flags & TH_PUSH) \
|
|
||||||
tp->t_flags |= TF_ACKNOW; \
|
|
||||||
else \
|
|
||||||
tp->t_flags |= TF_DELACK; \
|
|
||||||
(tp)->rcv_nxt += (ti)->ti_len; \
|
|
||||||
flags = (ti)->ti_flags & TH_FIN; \
|
|
||||||
if (so->so_emu) { \
|
|
||||||
if (tcp_emu((so),(m))) sbappend((so), (m)); \
|
|
||||||
} else \
|
|
||||||
sbappend((so), (m)); \
|
|
||||||
} else {\
|
|
||||||
(flags) = tcp_reass((tp), (ti), (m)); \
|
|
||||||
tp->t_flags |= TF_ACKNOW; \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#define TCP_REASS(tp, ti, m, so, flags) { \
|
#define TCP_REASS(tp, ti, m, so, flags) { \
|
||||||
if ((ti)->ti_seq == (tp)->rcv_nxt && \
|
if ((ti)->ti_seq == (tp)->rcv_nxt && \
|
||||||
tcpfrag_list_empty(tp) && \
|
tcpfrag_list_empty(tp) && \
|
||||||
|
@ -97,7 +76,7 @@
|
||||||
tp->t_flags |= TF_ACKNOW; \
|
tp->t_flags |= TF_ACKNOW; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
static void tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt,
|
static void tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt,
|
||||||
struct tcpiphdr *ti);
|
struct tcpiphdr *ti);
|
||||||
static void tcp_xmit_timer(register struct tcpcb *tp, int rtt);
|
static void tcp_xmit_timer(register struct tcpcb *tp, int rtt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue