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:
jani 2003-06-23 22:33:56 +00:00
parent b77b7cc1e2
commit cee4f976a8
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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