<!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: prophet::RIBTLV::RIBTLV::RIBTLVHeader 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="namespaceprophet.html">prophet</a>::<a class="el" href="classprophet_1_1RIBTLV.html">RIBTLV</a>::<a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html">RIBTLVHeader</a> </div> </div> <div class="contents"> <h1>prophet::RIBTLV::RIBTLV::RIBTLVHeader Struct Reference</h1><!-- doxytag: class="prophet::RIBTLV::RIBTLVHeader" -->Routing Information Base TLV <br> p. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>></code> <p> <p> <a href="structprophet_1_1RIBTLV_1_1RIBTLVHeader-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 Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html#db7a7beb67758dda3c48d61f040cdb79">type</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">defined as 0xA1 <a href="#db7a7beb67758dda3c48d61f040cdb79"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html#6ee7de8ff9df37d5db6823e41c7ece69">flags</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The encoding of the Header flag field relates to the capabilities of the Source node sending the RIB: <br> Flag 0: Relay <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 1: Custody <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 2: Internet GW <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 3: Reserved 0b1 <br> Flag 4: Reserved 0b1 <br> Flag 5: Reserved 0b1 <br> Flag 6: Reserved 0b1 <br> Flag 7: Reserved 0b1 <br> . <a href="#6ee7de8ff9df37d5db6823e41c7ece69"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html#ec1efe4a9c808953b0cc107b42cc40d9">length</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Length of the TLV in octets, including the TLV header and any nested TLVs. <a href="#ec1efe4a9c808953b0cc107b42cc40d9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html#48ebbee6e355aa41e417f3b585518ee7">rib_string_count</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of routing entries in the TLV. <a href="#48ebbee6e355aa41e417f3b585518ee7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1RIBTLV_1_1RIBTLVHeader.html#40f119bde1070483b6167d435cf035f9">unused__</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Routing Information Base TLV <br> p. <p> 28, 4.4.4 <br> <br> The Routing Information Base lists the destinations a node knows of, and the delivery predictabilities it has associated with them. This information is needed by the PRoPHET algorithm to make decisions on routing and forwarding. <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00053">53</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="6ee7de8ff9df37d5db6823e41c7ece69"></a><!-- doxytag: member="prophet::RIBTLV::RIBTLVHeader::flags" ref="6ee7de8ff9df37d5db6823e41c7ece69" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int8_t prophet::RIBTLV::RIBTLV::RIBTLVHeader::flags </td> </tr> </table> </div> <div class="memdoc"> <p> The encoding of the Header flag field relates to the capabilities of the Source node sending the RIB: <br> Flag 0: Relay <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 1: Custody <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 2: Internet GW <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">Node</a> 0b1 <br> Flag 3: Reserved 0b1 <br> Flag 4: Reserved 0b1 <br> Flag 5: Reserved 0b1 <br> Flag 6: Reserved 0b1 <br> Flag 7: Reserved 0b1 <br> . <p> <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00068">68</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> <p>Referenced by <a class="el" href="RIBTLV_8cc-source.html#l00153">prophet::RIBTLV::deserialize()</a>, and <a class="el" href="RIBTLV_8cc-source.html#l00040">prophet::RIBTLV::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="ec1efe4a9c808953b0cc107b42cc40d9"></a><!-- doxytag: member="prophet::RIBTLV::RIBTLVHeader::length" ref="ec1efe4a9c808953b0cc107b42cc40d9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int16_t prophet::RIBTLV::RIBTLV::RIBTLVHeader::length </td> </tr> </table> </div> <div class="memdoc"> <p> Length of the TLV in octets, including the TLV header and any nested TLVs. <p> <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00073">73</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> <p>Referenced by <a class="el" href="RIBTLV_8cc-source.html#l00153">prophet::RIBTLV::deserialize()</a>, and <a class="el" href="RIBTLV_8cc-source.html#l00040">prophet::RIBTLV::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="48ebbee6e355aa41e417f3b585518ee7"></a><!-- doxytag: member="prophet::RIBTLV::RIBTLVHeader::rib_string_count" ref="48ebbee6e355aa41e417f3b585518ee7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int16_t prophet::RIBTLV::RIBTLV::RIBTLVHeader::rib_string_count </td> </tr> </table> </div> <div class="memdoc"> <p> Number of routing entries in the TLV. <p> <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00074">74</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> <p>Referenced by <a class="el" href="RIBTLV_8cc-source.html#l00153">prophet::RIBTLV::deserialize()</a>, and <a class="el" href="RIBTLV_8cc-source.html#l00040">prophet::RIBTLV::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="db7a7beb67758dda3c48d61f040cdb79"></a><!-- doxytag: member="prophet::RIBTLV::RIBTLVHeader::type" ref="db7a7beb67758dda3c48d61f040cdb79" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int8_t prophet::RIBTLV::RIBTLV::RIBTLVHeader::type </td> </tr> </table> </div> <div class="memdoc"> <p> defined as 0xA1 <p> <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00054">54</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> <p>Referenced by <a class="el" href="RIBTLV_8cc-source.html#l00153">prophet::RIBTLV::deserialize()</a>, and <a class="el" href="RIBTLV_8cc-source.html#l00040">prophet::RIBTLV::serialize()</a>.</p> </div> </div><p> <a class="anchor" name="40f119bde1070483b6167d435cf035f9"></a><!-- doxytag: member="prophet::RIBTLV::RIBTLVHeader::unused__" ref="40f119bde1070483b6167d435cf035f9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int16_t prophet::RIBTLV::RIBTLV::RIBTLVHeader::unused__ </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="RIBTLV_8h-source.html#l00075">75</a> of file <a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="RIBTLV_8h-source.html">RIBTLV.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:06 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>