summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/constants.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2021-06-22 20:04:48 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-22 20:28:51 +0200
commitd1e462a7a5f359cbb9a0e8fbfafcfb6657034105 (patch)
tree07e139a19613cfa7e4dacc0435913ad6b1022644 /include/net/sctp/constants.h
parentsctp: add pad chunk and its make function and event table (diff)
downloadlinux-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.tar.xz
linux-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.zip
sctp: add probe_interval in sysctl and sock/asoc/transport
PLPMTUD can be enabled by doing 'sysctl -w net.sctp.probe_interval=n'. 'n' is the interval for PLPMTUD probe timer in milliseconds, and it can't be less than 5000 if it's not 0. All asoc/transport's PLPMTUD in a new socket will be enabled by default. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/constants.h')
-rw-r--r--include/net/sctp/constants.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h
index 14a0d22c9113..449cf9cb428b 100644
--- a/include/net/sctp/constants.h
+++ b/include/net/sctp/constants.h
@@ -424,4 +424,6 @@ enum {
*/
#define SCTP_AUTH_RANDOM_LENGTH 32
+#define SCTP_PROBE_TIMER_MIN 5000
+
#endif /* __sctp_constants_h__ */