Remove uused SOF_* flags, define inherited flags in ip.h, not in tcp_in.c

This commit is contained in:
goldsimon
2010-05-12 22:26:06 +00:00
parent 778c65d27c
commit ef0a7ecbcd
2 changed files with 6 additions and 3 deletions

View File

@@ -453,7 +453,7 @@ tcp_listen_input(struct tcp_pcb_listen *pcb)
npcb->accept = pcb->accept;
#endif /* LWIP_CALLBACK_API */
/* inherit socket options */
npcb->so_options = pcb->so_options & (SOF_DEBUG|SOF_DONTROUTE|SOF_KEEPALIVE|SOF_OOBINLINE|SOF_LINGER);
npcb->so_options = pcb->so_options & SOF_INHERITED;
/* Register the new PCB so that we can begin receiving segments
for it. */
TCP_REG(&tcp_active_pcbs, npcb);