mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
define and detect ECE (ECN echo) and CWR (congestion window reduced) flags. Behaviour not affected.Based on patch #1600 by arbon
This commit is contained in:
parent
b77b7cc1e2
commit
cee4f976a8
@ -1126,6 +1126,12 @@ tcp_debug_print_flags(u8_t flags)
|
|||||||
if (flags & TCP_URG) {
|
if (flags & TCP_URG) {
|
||||||
LWIP_DEBUGF(TCP_DEBUG, ("URG "));
|
LWIP_DEBUGF(TCP_DEBUG, ("URG "));
|
||||||
}
|
}
|
||||||
|
if (flags & TCP_ECE) {
|
||||||
|
LWIP_DEBUGF(TCP_DEBUG, ("ECE "));
|
||||||
|
}
|
||||||
|
if (flags & TCP_CWR) {
|
||||||
|
LWIP_DEBUGF(TCP_DEBUG, ("CWR "));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
|
|||||||
@ -121,6 +121,8 @@ void tcp_rexmit (struct tcp_pcb *pcb);
|
|||||||
#define TCP_PSH 0x08U
|
#define TCP_PSH 0x08U
|
||||||
#define TCP_ACK 0x10U
|
#define TCP_ACK 0x10U
|
||||||
#define TCP_URG 0x20U
|
#define TCP_URG 0x20U
|
||||||
|
#define TCP_ECE 0x40U
|
||||||
|
#define TCP_CWR 0x80U
|
||||||
|
|
||||||
#define TCP_FLAGS 0x3fU
|
#define TCP_FLAGS 0x3fU
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user