include/netinet: Add IP and TCP socket options needed by iperf3.

This commit is contained in:
Xiang Xiao 2019-11-17 07:37:12 -06:00 committed by Gregory Nutt
parent a629dd5306
commit ac9a69384d
2 changed files with 3 additions and 0 deletions

View file

@ -118,6 +118,8 @@
* to INADDR_ANY */
#define IP_PKTINFO (__SO_PROTOCOL + 12) /* Get some information about
* the incoming packet */
#define IP_TOS (__SO_PROTOCOL + 13) /* Access the Type-Of-Service
* (TOS) field */
/* SOL_IPV6 protocol-level socket options. */

View file

@ -68,5 +68,6 @@
* Argument: struct timeval */
#define TCP_KEEPCNT (__SO_PROTOCOL + 3) /* Number of keepalives before death
* Argument: max retry count */
#define TCP_MAXSEG (__SO_PROTOCOL + 4) /* The maximum segment size */
#endif /* __INCLUDE_NETINET_TCP_H */