From: Wichert Akkerman Date: Thu, 27 Dec 2001 22:27:30 +0000 (+0000) Subject: Add new TCP socket options X-Git-Tag: v4.5.18~1000 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b8ff7c7800c70393c03b1a806be6daec6a0e068;p=strace Add new TCP socket options --- diff --git a/ChangeLog b/ChangeLog index 80e2c708..d513ceaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-12-17 Wichert Akkerman + + * net.c: add new TCP socket options + 2001-10-26 John Hughes * svr4/ioctlent.sh: Cope with #define lines containing diff --git a/net.c b/net.c index 0cbf48e2..3da89945 100644 --- a/net.c +++ b/net.c @@ -516,12 +516,39 @@ static struct xlat sockpacketoptions[] = { #ifdef SOL_TCP static struct xlat socktcpoptions[] = { - { TCP_NODELAY, "TCP_NODELAY" }, - { TCP_MAXSEG, "TCP_MAXSEG" }, + { TCP_NODELAY, "TCP_NODELAY" }, + { TCP_MAXSEG, "TCP_MAXSEG" }, #if defined(TCP_CORK) - { TCP_CORK, "TCP_CORK" }, + { TCP_CORK, "TCP_CORK" }, #endif - { 0, NULL }, +#if defined(TCP_KEEPIDLE) + { TCP_KEEPIDLE, "TCP_KEEPIDLE" }, +#endif +#if defined(TCP_KEEPINTVL) + { TCP_KEEPINTVL, "TCP_KEEPINTVL" }, +#endif +#if defined(TCP_KEEPCNT) + { TCP_KEEPCNT, "TCP_KEEPCNT" }, +#endif +#if defined(TCP_SYNCNT) + { TCP_SYNCNT, "TCP_SYNCNT" }, +#endif +#if defined(TCP_LINGER2) + { TCP_LINGER2, "TCP_LINGER2" }, +#endif +#if defined(TCP_DEFER_ACCEPT) + { TCP_DEFER_ACCEPT, "TCP_DEFER_ACCEPT" }, +#endif +#if defined(TCP_WINDOW_CLAMP) + { TCP_WINDOW_CLAMP, "TCP_WINDOW_CLAMP" }, +#endif +#if defined(TCP_INFO) + { TCP_INFO, "TCP_INFO" }, +#endif +#if defined(TCP_QUICKACK) + { TCP_QUICKACK, "TCP_QUICKACK" }, +#endif + { 0, NULL }, }; #endif /* SOL_TCP */