diff --git a/examples/platform/linux/Options.cpp b/examples/platform/linux/Options.cpp index 6f8afea5bb496b..30732ae7e0a034 100644 --- a/examples/platform/linux/Options.cpp +++ b/examples/platform/linux/Options.cpp @@ -46,6 +46,10 @@ #include #endif +#if CONFIG_BUILD_FOR_HOST_UNIT_TEST +#include +#endif + using namespace chip; using namespace chip::ArgParser; using namespace chip::Platform; @@ -112,6 +116,9 @@ enum kDeviceOption_WiFiSupports5g, #if CONFIG_BUILD_FOR_HOST_UNIT_TEST kDeviceOption_SubscriptionResumptionRetryIntervalSec, + kDeviceOption_IdleRetransmitTimeout, + kDeviceOption_ActiveRetransmitTimeout, + kDeviceOption_ActiveThresholdTime, #endif #if CHIP_WITH_NLFAULTINJECTION kDeviceOption_FaultInjection, @@ -187,6 +194,9 @@ OptionDef sDeviceOptionDefs[] = { #if CONFIG_BUILD_FOR_HOST_UNIT_TEST { "subscription-capacity", kArgumentRequired, kDeviceOption_SubscriptionCapacity }, { "subscription-resumption-retry-interval", kArgumentRequired, kDeviceOption_SubscriptionResumptionRetryIntervalSec }, + { "idle-retransmit-timeout", kArgumentRequired, kDeviceOption_IdleRetransmitTimeout }, + { "active-retransmit-timeout", kArgumentRequired, kDeviceOption_ActiveRetransmitTimeout }, + { "active-threshold-time", kArgumentRequired, kDeviceOption_ActiveThresholdTime }, #endif #if CHIP_WITH_NLFAULTINJECTION { "faults", kArgumentRequired, kDeviceOption_FaultInjection }, @@ -335,6 +345,19 @@ const char * sDeviceOptionHelp = " Max number of subscriptions the device will allow\n" " --subscription-resumption-retry-interval\n" " subscription timeout resumption retry interval in seconds\n" + " --idle-retransmit-timeout \n" + " Sets the MRP idle retry interval (in milliseconds).\n" + " This interval is used by the peer to calculate the retransmission timeout when the current device is considered idle.\n" + "\n" + " --active-retransmit-timeout \n" + " Sets the MRP active retry interval (in milliseconds).\n" + " This interval is used by the peer to calculate the retransmission timeout when the current device is considered " + "active.\n" + "\n" + " --active-threshold-time