added useful table for IPv4 header
tho [Thu, 15 Nov 2007 16:25:11 +0000 (16:25 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@522 270642c3-0616-0410-b53a-bc976706d245

Packets/DefaultBundle/IpV4Packet.hh
doclib/senf.css

index 5b45f69..004efaf 100644 (file)
@@ -58,8 +58,8 @@ namespace senf {
 
     /** \brief Parse an IpV4 packet
 
-        Parser implementing the IpV4 header. The fields implemented are:
-
+        Parser implementing the IpV4 header.
+        
         \see IpV4PacketType \n
             <a href="http://tools.ietf.org/html/rfc791">RFC 791</a>
 
@@ -114,6 +114,35 @@ namespace senf {
     };
 
     /** \brief IpV4 packet
+
+        <table class="packet" cellpadding="5" cellspacing="1" border="1">
+          <tr>
+            <th width="12%">0</th> <th width="12%">4</th> <th width="12%">8</th>
+            <th width="12%">12</th> <th width="3%">16</th>
+            <th width="3%"></th> <th width="3%"></th> <th width="3%"></th>
+            <th width="12%">20</th> <th width="12%">24</th> <th width="6%">28</th>
+            <th style="text-align:right" width="6%">31</th>
+          </tr><tr>
+            <td>\ref Parse_IpV4::version() "Version"</td>
+            <td>\ref Parse_IpV4::ihl() "IHL"</td>
+            <td colspan="2">\ref Parse_IpV4::tos() "TOS"</td>
+            <td colspan="8">\ref Parse_IpV4::length() "Length"</td> 
+          </tr><tr>
+            <td colspan="4">\ref Parse_IpV4::identifier() "Identifier"</td>
+            <td>\ref Parse_IpV4::reserved() "R"</td>
+            <td>\ref Parse_IpV4::df() "DF"</td>
+            <td>\ref Parse_IpV4::mf() "MF"</td>
+            <td colspan="5">\ref Parse_IpV4::frag() "Fragment Offset"</td>
+          </tr><tr>
+            <td colspan="2">\ref Parse_IpV4::ttl() "Time to Live (ttl)"</td>
+            <td colspan="2">\ref Parse_IpV4::protocol() "Protocol"</td>
+            <td colspan="8">\ref Parse_IpV4::checksum() "Header Checksum"</td>
+          </tr><tr>
+            <td colspan="12">\ref Parse_IpV4::source() "Source Address"</td>
+          </tr><tr>
+            <td colspan="12">\ref Parse_IpV4::destination() "Destination Address"</td>
+          </tr>
+        </table>
         
         \par Packet type (typedef):
             \ref IpV4Packet
index c6e2d4b..ba3e05f 100644 (file)
@@ -235,6 +235,30 @@ dl.note {
         background-color: #F0F8F8;
         padding: 4px;
 }
+table.packet {
+        width: 95%;
+        margin: 10pt auto;
+        border: 1px solid #AAAAAA;
+        padding: 2px;
+        border-spacing: 0;
+               white-space: nowrap;
+               text-align: center;
+               table-layout: fixed; 
+}
+
+table.packet td,th {
+        border: 2px solid white;
+        background-color: #EEEEEE;
+        padding: 6px 4px;
+}
+
+table.packet th {
+        background-color: white;
+        text-align: left;
+               font-weight: normal;
+        padding: 0px;
+}
 
 table.senf {
         width: 95%;