mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +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) ||
|
||||||
@ -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