Skip to content

Commit

Permalink
Revert "Merge pull request ARMmbed#15274 from hifoolno/bug4"
Browse files Browse the repository at this point in the history
This reverts commit d17beb7, reversing
changes made to 2d652c9.
  • Loading branch information
huanghu578 committed Jun 12, 2022
1 parent 5236cc5 commit 96ba1de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectivity/lwipstack/lwip/src/core/lwip_tcp_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n"));
return;
}
tcp_output_fill_options(pcb, p, 0, 0);
tcp_output_fill_options(pcb, p, 0, optlen);

MIB2_STATS_INC(mib2.tcpoutrsts);

Expand Down Expand Up @@ -2096,7 +2096,7 @@ tcp_keepalive(struct tcp_pcb *pcb)
("tcp_keepalive: could not allocate memory for pbuf\n"));
return ERR_MEM;
}
tcp_output_fill_options(pcb, p, 0, 0);
tcp_output_fill_options(pcb, p, 0, optlen);
err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);

LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n",
Expand Down Expand Up @@ -2178,7 +2178,7 @@ tcp_zero_window_probe(struct tcp_pcb *pcb)
if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
pcb->snd_nxt = snd_nxt;
}
tcp_output_fill_options(pcb, p, 0, 0);
tcp_output_fill_options(pcb, p, 0, optlen);

err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);

Expand Down

0 comments on commit 96ba1de

Please sign in to comment.