mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
Fixed a few C style issues to make it compatible with the rest of lwIP.
This commit is contained in:
parent
2382792792
commit
1f1e6eb5a1
@ -601,10 +601,11 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
struct pbuf *p;
|
struct pbuf *p;
|
||||||
s32_t off;
|
s32_t off;
|
||||||
int m;
|
int m;
|
||||||
|
u32_t right_wnd_edge;
|
||||||
|
|
||||||
|
|
||||||
if(flags & TCP_ACK) {
|
if(flags & TCP_ACK) {
|
||||||
unsigned long int right_wnd_edge = pcb->snd_wnd + pcb->snd_wl1;
|
right_wnd_edge = pcb->snd_wnd + pcb->snd_wl1;
|
||||||
|
|
||||||
/* Update window. */
|
/* Update window. */
|
||||||
if(TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
|
if(TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
|
||||||
@ -625,7 +626,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
|
|
||||||
|
|
||||||
if(pcb->lastack == ackno) {
|
if(pcb->lastack == ackno) {
|
||||||
if(pcb->snd_wl1+pcb->snd_wnd==right_wnd_edge){
|
if(pcb->snd_wl1 + pcb->snd_wnd == right_wnd_edge){
|
||||||
++pcb->dupacks;
|
++pcb->dupacks;
|
||||||
if(pcb->dupacks >= 3 && pcb->unacked != NULL) {
|
if(pcb->dupacks >= 3 && pcb->unacked != NULL) {
|
||||||
if(!(pcb->flags & TF_INFR)) {
|
if(!(pcb->flags & TF_INFR)) {
|
||||||
@ -649,9 +650,9 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %lu %lu\n",
|
||||||
DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %lu %lu\n", pcb->snd_wl1+pcb->snd_wnd, right_wnd_edge));
|
pcb->snd_wl1 + pcb->snd_wnd, right_wnd_edge));
|
||||||
}
|
}
|
||||||
} else if(TCP_SEQ_LT(pcb->lastack, ackno) &&
|
} else if(TCP_SEQ_LT(pcb->lastack, ackno) &&
|
||||||
TCP_SEQ_LEQ(ackno, pcb->snd_max)) {
|
TCP_SEQ_LEQ(ackno, pcb->snd_max)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user