From cb920d36d5fbd7888a2890a759d852f4b3089b3f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 17 Mar 2020 12:43:55 +0100 Subject: [PATCH 1/1] server: Add --dccp-no-autostart. We already have --http-no-autostart and --udp-no-autostart. Add the new option for consistency. --- dccp_send.c | 2 ++ m4/lls/server.suite.m4 | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/dccp_send.c b/dccp_send.c index 55f189ad..bca7ad67 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -232,6 +232,8 @@ static void dccp_send_init(void) OPT_RESULT(DCCP_LISTEN_ADDRESS), OPT_UINT32_VAL(DCCP_PORT), OPT_UINT32_VAL(DCCP_MAX_CLIENTS), OPT_GIVEN(DCCP_DEFAULT_DENY)); + if (OPT_GIVEN(DCCP_NO_AUTOSTART)) + return; generic_com_on(dss, IPPROTO_DCCP); } diff --git a/m4/lls/server.suite.m4 b/m4/lls/server.suite.m4 index be8f02f5..93e4b573 100644 --- a/m4/lls/server.suite.m4 +++ b/m4/lls/server.suite.m4 @@ -273,6 +273,11 @@ version-string = GIT_VERSION() [help] See --http-access for details. [/help] + [option dccp-no-autostart] + summary = do not open the DCCP port on startup + [help] + This is like --http-no-autostart but applies to the dccp sender. + [/help] [option dccp-max-clients] summary = maximal number of simultaneous dccp connections arg_info = required_arg -- 2.30.2