00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "ParamCommand.h"
00019 #include "bundling/BundleDaemon.h"
00020 #include "bundling/BundlePayload.h"
00021 #include "bundling/CustodyTimer.h"
00022 #include "conv_layers/TCPConvergenceLayer.h"
00023
00024 namespace dtn {
00025
00026 ParamCommand::ParamCommand()
00027 : TclCommand("param")
00028 {
00029 bind_var(new oasys::UIntOpt("payload_mem_threshold",
00030 (u_int*)&BundlePayload::mem_threshold_,
00031 "size",
00032 "The bundle size below which bundles "
00033 "are held in memory. "
00034 "(Default is 16k.)"));
00035
00036 bind_var(new oasys::BoolOpt("payload_test_no_remove",
00037 &BundlePayload::test_no_remove_,
00038 "Boolean to control not removing bundles "
00039 "(for testing)."));
00040
00041 bind_var(new oasys::BoolOpt("early_deletion",
00042 &BundleDaemon::params_.early_deletion_,
00043 "Delete forwarded / delivered bundles "
00044 "before they've expired "
00045 "(default is true)"));
00046
00047 bind_var(new oasys::BoolOpt("accept_custody",
00048 &BundleDaemon::params_.accept_custody_,
00049 "Accept custody when requested "
00050 "(default is true)"));
00051
00052 bind_var(new oasys::BoolOpt("reactive_frag_enabled",
00053 &BundleDaemon::params_.reactive_frag_enabled_,
00054 "Is reactive fragmentation enabled "
00055 "(default is true)"));
00056
00057 bind_var(new oasys::BoolOpt("retry_reliable_unacked",
00058 &BundleDaemon::params_.retry_reliable_unacked_,
00059 "Retry unacked transmissions on reliable CLs "
00060 "(default is true)"));
00061
00062 bind_var(new oasys::BoolOpt("test_permuted_delivery",
00063 &BundleDaemon::params_.test_permuted_delivery_,
00064 "Permute the order of bundles before "
00065 "delivering to registrations"));
00066
00067 bind_var(new oasys::UIntOpt("link_min_retry_interval",
00068 &Link::default_params_.min_retry_interval_,
00069 "interval",
00070 "Default minimum connection retry "
00071 "interval for links"));
00072
00073 bind_var(new oasys::UIntOpt("link_max_retry_interval",
00074 &Link::default_params_.max_retry_interval_,
00075 "interval",
00076 "Default maximum connection retry "
00077 "interval for links"));
00078
00079 bind_var(new oasys::UIntOpt("custody_timer_min",
00080 &CustodyTimerSpec::defaults_.min_,
00081 "min",
00082 "default value for custody timer min"));
00083
00084 bind_var(new oasys::UIntOpt("custody_timer_lifetime_pct",
00085 &CustodyTimerSpec::defaults_.lifetime_pct_,
00086 "pct",
00087 "default value for custody timer "
00088 "lifetime percentage"));
00089
00090 bind_var(new oasys::UIntOpt("custody_timer_max",
00091 &CustodyTimerSpec::defaults_.max_,
00092 "max",
00093 "default value for custody timer max"));
00094 }
00095
00096 }