<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: dtn::Link::Link::Params Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1Link.html">Link</a>::<a class="el" href="structdtn_1_1Link_1_1Params.html">Params</a> </div> </div> <div class="contents"> <h1>dtn::Link::Link::Params Struct Reference</h1><!-- doxytag: class="dtn::Link::Params" --><code>#include <<a class="el" href="contacts_2Link_8h-source.html">Link.h</a>></code> <p> <p> <a href="structdtn_1_1Link_1_1Params-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#a66a80828fbe8645786f21a2f4e38837">Params</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a66a80828fbe8645786f21a2f4e38837"></a><br></td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#333734265a2a17aa4edcb97fbae31400">mtu_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">MTU of the link, used to control proactive fragmentation. <a href="#333734265a2a17aa4edcb97fbae31400"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#fad825e84db3cb9e92ea0862e7cdf609">min_retry_interval_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum amount to wait between attempts to re-open the link (in seconds). <a href="#fad825e84db3cb9e92ea0862e7cdf609"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#814873f095484897985d1b79cb218f01">max_retry_interval_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum amount to wait between attempts to re-open the link (in seconds). <a href="#814873f095484897985d1b79cb218f01"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#b234c93dc26fd078732abdb4746822e6">idle_close_time_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Seconds of idle time before the link is closed. <a href="#b234c93dc26fd078732abdb4746822e6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#836d9ef17e5ff0bb45b16826cc52e9c5">potential_downtime_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Conservative estimate of the maximum amount of time that the link may be down during "normal" operation. <a href="#836d9ef17e5ff0bb45b16826cc52e9c5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#826790ff03eba2149cefc18802cdf6d5">prevhop_hdr_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether or not to send the previous hop header on this link. <a href="#826790ff03eba2149cefc18802cdf6d5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#ed0e0d6c0df908fd1d94da3aa752a8e6">cost_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Abstract cost of the link, used by routing algorithms. <a href="#ed0e0d6c0df908fd1d94da3aa752a8e6"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#f5d23c371d36b35ed9bb1776baa2b178">qlimit_bundles_high_</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#54e55c9e4458ec7037f59db593193ff8">qlimit_bytes_high_</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#dffd607e6951f941ac2165a84d1fe2ec">qlimit_bundles_low_</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtn_1_1Link_1_1Params.html#6319c3d9e5366cfe75cfd5f02a5702fe">qlimit_bytes_low_</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00489">489</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="a66a80828fbe8645786f21a2f4e38837"></a><!-- doxytag: member="dtn::Link::Params::Params" ref="a66a80828fbe8645786f21a2f4e38837" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::Link::Link::Params::Params </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Default constructor. <p> Default parameters, values overridden in <a class="el" href="classdtn_1_1ParamCommand.html" title="Parameter setting command.">ParamCommand</a>. <p>Definition at line <a class="el" href="Link_8cc-source.html#l00040">40</a> of file <a class="el" href="Link_8cc-source.html">Link.cc</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="ed0e0d6c0df908fd1d94da3aa752a8e6"></a><!-- doxytag: member="dtn::Link::Params::cost_" ref="ed0e0d6c0df908fd1d94da3aa752a8e6" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::cost_ </td> </tr> </table> </div> <div class="memdoc"> <p> Abstract cost of the link, used by routing algorithms. <p> Default is 100. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00546">546</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, and <a class="el" href="Link_8cc-source.html#l00260">dtn::Link::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="b234c93dc26fd078732abdb4746822e6"></a><!-- doxytag: member="dtn::Link::Params::idle_close_time_" ref="b234c93dc26fd078732abdb4746822e6" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::idle_close_time_ </td> </tr> </table> </div> <div class="memdoc"> <p> Seconds of idle time before the link is closed. <p> Must be zero for always on links (i.e. they are never closed).<p> Default is 30 seconds for on demand links, zero for opportunistic links. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00525">525</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, <a class="el" href="OndemandLink_8cc-source.html#l00027">dtn::OndemandLink::OndemandLink()</a>, <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, <a class="el" href="Link_8cc-source.html#l00207">dtn::Link::reconfigure_link()</a>, and <a class="el" href="Link_8cc-source.html#l00260">dtn::Link::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="814873f095484897985d1b79cb218f01"></a><!-- doxytag: member="dtn::Link::Params::max_retry_interval_" ref="814873f095484897985d1b79cb218f01" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::max_retry_interval_ </td> </tr> </table> </div> <div class="memdoc"> <p> Maximum amount to wait between attempts to re-open the link (in seconds). <p> Default is set by the various <a class="el" href="classdtn_1_1Link.html" title="Abstraction for a DTN link, i.e.">Link</a> types but can be overridden by configuration parameters. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00516">516</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, <a class="el" href="Link_8cc-source.html#l00207">dtn::Link::reconfigure_link()</a>, and <a class="el" href="Link_8cc-source.html#l00260">dtn::Link::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="fad825e84db3cb9e92ea0862e7cdf609"></a><!-- doxytag: member="dtn::Link::Params::min_retry_interval_" ref="fad825e84db3cb9e92ea0862e7cdf609" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::min_retry_interval_ </td> </tr> </table> </div> <div class="memdoc"> <p> Minimum amount to wait between attempts to re-open the link (in seconds). <p> Default is set by the various <a class="el" href="classdtn_1_1Link.html" title="Abstraction for a DTN link, i.e.">Link</a> types but can be overridden by configuration parameters. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00507">507</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, <a class="el" href="Link_8cc-source.html#l00207">dtn::Link::reconfigure_link()</a>, and <a class="el" href="Link_8cc-source.html#l00260">dtn::Link::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="333734265a2a17aa4edcb97fbae31400"></a><!-- doxytag: member="dtn::Link::Params::mtu_" ref="333734265a2a17aa4edcb97fbae31400" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::mtu_ </td> </tr> </table> </div> <div class="memdoc"> <p> MTU of the link, used to control proactive fragmentation. <p> <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00498">498</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, and <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>.</p> </div> </div><p> <a class="anchor" name="836d9ef17e5ff0bb45b16826cc52e9c5"></a><!-- doxytag: member="dtn::Link::Params::potential_downtime_" ref="836d9ef17e5ff0bb45b16826cc52e9c5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::potential_downtime_ </td> </tr> </table> </div> <div class="memdoc"> <p> Conservative estimate of the maximum amount of time that the link may be down during "normal" operation. <p> Used by routing algorithms to determine how long to leave bundles queued on the down link before rerouting them. Fefault is 30 seconds. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00534">534</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, <a class="el" href="Link_8cc-source.html#l00207">dtn::Link::reconfigure_link()</a>, and <a class="el" href="Link_8cc-source.html#l00260">dtn::Link::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="826790ff03eba2149cefc18802cdf6d5"></a><!-- doxytag: member="dtn::Link::Params::prevhop_hdr_" ref="826790ff03eba2149cefc18802cdf6d5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> dtn::Link::Link::Params::prevhop_hdr_ </td> </tr> </table> </div> <div class="memdoc"> <p> Whether or not to send the previous hop header on this link. <p> Default is false. <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00540">540</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00591">dtn::Link::dump()</a>, and <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>.</p> </div> </div><p> <a class="anchor" name="f5d23c371d36b35ed9bb1776baa2b178"></a><!-- doxytag: member="dtn::Link::Params::qlimit_bundles_high_" ref="f5d23c371d36b35ed9bb1776baa2b178" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::qlimit_bundles_high_ </td> </tr> </table> </div> <div class="memdoc"> <p> Configurable high / low limits on the number of bundles/bytes that should be queued on the link.<p> The high limits are used by Link::is_queue_full() to indicate whether or not more bundles can be queued onto the link to effect backpressure from the convergence layers.<p> The low limits can be used by the router to determine when to re-scan the pending bundle lists <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00560">560</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, and <a class="el" href="Link_8cc-source.html#l00465">dtn::Link::queue_is_full()</a>.</p> </div> </div><p> <a class="anchor" name="dffd607e6951f941ac2165a84d1fe2ec"></a><!-- doxytag: member="dtn::Link::Params::qlimit_bundles_low_" ref="dffd607e6951f941ac2165a84d1fe2ec" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int dtn::Link::Link::Params::qlimit_bundles_low_ </td> </tr> </table> </div> <div class="memdoc"> <p> Configurable high / low limits on the number of bundles/bytes that should be queued on the link.<p> The high limits are used by Link::is_queue_full() to indicate whether or not more bundles can be queued onto the link to effect backpressure from the convergence layers.<p> The low limits can be used by the router to determine when to re-scan the pending bundle lists <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00562">562</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, and <a class="el" href="Link_8cc-source.html#l00473">dtn::Link::queue_has_space()</a>.</p> </div> </div><p> <a class="anchor" name="54e55c9e4458ec7037f59db593193ff8"></a><!-- doxytag: member="dtn::Link::Params::qlimit_bytes_high_" ref="54e55c9e4458ec7037f59db593193ff8" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int64_t dtn::Link::Link::Params::qlimit_bytes_high_ </td> </tr> </table> </div> <div class="memdoc"> <p> Configurable high / low limits on the number of bundles/bytes that should be queued on the link.<p> The high limits are used by Link::is_queue_full() to indicate whether or not more bundles can be queued onto the link to effect backpressure from the convergence layers.<p> The low limits can be used by the router to determine when to re-scan the pending bundle lists <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00561">561</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, and <a class="el" href="Link_8cc-source.html#l00465">dtn::Link::queue_is_full()</a>.</p> </div> </div><p> <a class="anchor" name="6319c3d9e5366cfe75cfd5f02a5702fe"></a><!-- doxytag: member="dtn::Link::Params::qlimit_bytes_low_" ref="6319c3d9e5366cfe75cfd5f02a5702fe" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int64_t dtn::Link::Link::Params::qlimit_bytes_low_ </td> </tr> </table> </div> <div class="memdoc"> <p> Configurable high / low limits on the number of bundles/bytes that should be queued on the link.<p> The high limits are used by Link::is_queue_full() to indicate whether or not more bundles can be queued onto the link to effect backpressure from the convergence layers.<p> The low limits can be used by the router to determine when to re-scan the pending bundle lists <p>Definition at line <a class="el" href="contacts_2Link_8h-source.html#l00563">563</a> of file <a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a>.</p> <p>Referenced by <a class="el" href="Link_8cc-source.html#l00308">dtn::Link::parse_args()</a>, and <a class="el" href="Link_8cc-source.html#l00473">dtn::Link::queue_has_space()</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following files:<ul> <li><a class="el" href="contacts_2Link_8h-source.html">contacts/Link.h</a><li><a class="el" href="Link_8cc-source.html">Link.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:03 2009 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html>