Summary: Sockets: Unit tests and apps corrections
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: jllledo
Submitted on: Sat 10 Aug 2019 12:12:10 PM CEST
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
Planned Release: None
- Line 773: Calls htonl() but lwip/inet.h is not included
- There are other apps and unit tests where htons and pals are being called
- Line 156: write() could be declared by external socket headers. Call
- Line 333: it expects fcntl() to return 6, but O_RDWR could have another
external socket headers are present. Replace 6 by O_RDWR.
3.- apps/tftp/tftp.c: recv() could be declared by external socket headers.
Rename it to
- Lines 243 and 471