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