aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPascal Obry <obry@adacore.com>2021-04-07 09:05:06 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-06-29 14:23:46 +0000
commit0bc7cf47c1266f9ae510c70833b5691c693c769f (patch)
treef6c062af2592e077547cab16798655da2a42f5c0 /gcc
parentd23455ce238122c20c4fa81fa55eeb9ad1d938ee (diff)
downloadgcc-0bc7cf47c1266f9ae510c70833b5691c693c769f.zip
gcc-0bc7cf47c1266f9ae510c70833b5691c693c769f.tar.gz
gcc-0bc7cf47c1266f9ae510c70833b5691c693c769f.tar.bz2
[Ada] Add some OS constants to control keepalive on TCP connections
gcc/ada/ * s-oscons-tmplt.c: Add some OS constants.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/s-oscons-tmplt.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index 25a4df0..d42e663 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -1501,6 +1501,21 @@ CNS(MSG_Forced_Flags, "")
#endif
CND(TCP_NODELAY, "Do not coalesce packets")
+#ifndef TCP_KEEPCNT
+# define TCP_KEEPCNT -1
+#endif
+CND(TCP_KEEPCNT, "Maximum number of keepalive probes")
+
+#ifndef TCP_KEEPIDLE
+# define TCP_KEEPIDLE -1
+#endif
+CND(TCP_KEEPIDLE, "Idle time before TCP starts sending keepalive probes")
+
+#ifndef TCP_KEEPINTVL
+# define TCP_KEEPINTVL -1
+#endif
+CND(TCP_KEEPINTVL, "Time between individual keepalive probes")
+
#ifndef SO_REUSEADDR
# define SO_REUSEADDR -1
#endif