diff options
Diffstat (limited to 'nuttx/net/uip/uip-tcpinput.c')
-rw-r--r-- | nuttx/net/uip/uip-tcpinput.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/net/uip/uip-tcpinput.c b/nuttx/net/uip/uip-tcpinput.c index ba11fcb81..e3271263a 100644 --- a/nuttx/net/uip/uip-tcpinput.c +++ b/nuttx/net/uip/uip-tcpinput.c @@ -43,7 +43,7 @@ ****************************************************************************/ #include <nuttx/config.h> -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) #include <sys/types.h> #include <debug.h> @@ -103,6 +103,9 @@ void uip_tcpinput(struct uip_driver_s *dev) int len; int i; + dev->d_snddata = &dev->d_buf[UIP_IPTCPH_LEN + UIP_LLH_LEN]; + dev->d_appdata = &dev->d_buf[UIP_IPTCPH_LEN + UIP_LLH_LEN]; + #ifdef CONFIG_NET_STATISTICS uip_stat.tcp.recv++; #endif @@ -741,4 +744,4 @@ drop: dev->d_len = 0; } -#endif /* CONFIG_NET */ +#endif /* CONFIG_NET && CONFIG_NET_TCP */ |