summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2001-12-28 10:12:44 (GMT)
committerMichael W. Hudson <mwh@python.net>2001-12-28 10:12:44 (GMT)
commitb8be8c67e650b839a0e6fcc5135aa94515235dd3 (patch)
treec99b3b97af7dea13f937fed875b78e340af75724 /Modules
parentec549fe74529640b7b5492788c9a014678d5a815 (diff)
downloadcpython-b8be8c67e650b839a0e6fcc5135aa94515235dd3.zip
cpython-b8be8c67e650b839a0e6fcc5135aa94515235dd3.tar.gz
cpython-b8be8c67e650b839a0e6fcc5135aa94515235dd3.tar.bz2
Backport loewis' checkin of version 1.201:
Add TCP socket options from glibc 2.2.4. Fixes #495680. 2.2.1 bugfix candidate.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index bbca138..124353e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3621,6 +3621,37 @@ init_socket(void)
#ifdef TCP_MAXSEG
insint(d, "TCP_MAXSEG", TCP_MAXSEG);
#endif
+#ifdef TCP_CORK
+ insint(d, "TCP_CORK", TCP_CORK);
+#endif
+#ifdef TCP_KEEPIDLE
+ insint(d, "TCP_KEEPIDLE", TCP_KEEPIDLE);
+#endif
+#ifdef TCP_KEEPINTVL
+ insint(d, "TCP_KEEPINTVL", TCP_KEEPINTVL);
+#endif
+#ifdef TCP_KEEPCNT
+ insint(d, "TCP_KEEPCNT", TCP_KEEPCNT);
+#endif
+#ifdef TCP_SYNCNT
+ insint(d, "TCP_SYNCNT", TCP_SYNCNT);
+#endif
+#ifdef TCP_LINGER2
+ insint(d, "TCP_LINGER2", TCP_LINGER2);
+#endif
+#ifdef TCP_DEFER_ACCEPT
+ insint(d, "TCP_DEFER_ACCEPT", TCP_DEFER_ACCEPT);
+#endif
+#ifdef TCP_WINDOW_CLAMP
+ insint(d, "TCP_WINDOW_CLAMP", TCP_WINDOW_CLAMP);
+#endif
+#ifdef TCP_INFO
+ insint(d, "TCP_INFO", TCP_INFO);
+#endif
+#ifdef TCP_QUICKACK
+ insint(d, "TCP_QUICKACK", TCP_QUICKACK);
+#endif
+
/* IPX options */
#ifdef IPX_TYPE