From 229c9edad2d748464c086802681cbff246ecfc96 Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Tue, 27 Jun 2017 15:52:38 -0500 Subject: [PATCH] tcp: switch tcpflags_t to u16_t for all cases (bug #51326) This changes tcpflags_t to be a u16_t for all cases. The TCP Appropriate Byte Count support added a new flag that used a bit past 8 and since this flag is now required, tcpflags_t can no longer be a u8_t This does not increase the size of struct tcp_pcb due to padding that already existed (see bug #51326 for details) Signed-off-by: goldsimon --- src/include/lwip/tcp.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index 279bee77..6bf0550b 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -152,11 +152,7 @@ typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err); } \ } while(0) -#if LWIP_WND_SCALE || TCP_LISTEN_BACKLOG || LWIP_TCP_TIMESTAMPS typedef u16_t tcpflags_t; -#else -typedef u8_t tcpflags_t; -#endif /** * members common to struct tcp_pcb and struct tcp_listen_pcb