]> granicus.if.org Git - strace/commitdiff
Add new TCP socket options
authorWichert Akkerman <wichert@deephackmode.org>
Thu, 27 Dec 2001 22:27:30 +0000 (22:27 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Thu, 27 Dec 2001 22:27:30 +0000 (22:27 +0000)
ChangeLog
net.c

index 80e2c708c3728a12059d81ad064b3328bfdb0aaf..d513ceaa91a1cbf1dfbf3d424d56ea8d934faba1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-17  Wichert Akkerman <wakkerma@debian.org>
+
+       * net.c: add new TCP socket options
+
 2001-10-26  John Hughes <john@calva.com>
 
        * svr4/ioctlent.sh: Cope with #define lines containing
diff --git a/net.c b/net.c
index 0cbf48e230fd1de81daa96db7d9871e899f47e68..3da89945d7d535f2b14d27692dbb6981a164f7f5 100644 (file)
--- 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 */