Sin descripción

ip__hdr_8h_source.html 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: Fichero Fuente ip_hdr.h</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generado por Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Página&#160;principal</span></a></li>
  41. <li><a href="annotated.html"><span>Clases</span></a></li>
  42. <li class="current"><a href="files.html"><span>Archivos</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Buscar" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
  64. </ul>
  65. </div>
  66. </div><!-- top -->
  67. <!-- window showing the filter options -->
  68. <div id="MSearchSelectWindow"
  69. onmouseover="return searchBox.OnSearchSelectShow()"
  70. onmouseout="return searchBox.OnSearchSelectHide()"
  71. onkeydown="return searchBox.OnSearchSelectKey(event)">
  72. </div>
  73. <!-- iframe showing the search results (closed by default) -->
  74. <div id="MSearchResultsWindow">
  75. <iframe src="javascript:void(0)" frameborder="0"
  76. name="MSearchResults" id="MSearchResults">
  77. </iframe>
  78. </div>
  79. <div class="header">
  80. <div class="headertitle">
  81. <div class="title">ip_hdr.h</div> </div>
  82. </div><!--header-->
  83. <div class="contents">
  84. <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef IP_HDR_H</span></div>
  85. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define IP_HDR_H</span></div>
  86. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
  87. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">/* IP header */</span></div>
  88. <div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="structsniff__ip.html"> 8</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsniff__ip.html">sniff_ip</a> {</div>
  89. <div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="structsniff__ip.html#a8ced3d6237cb8b0538e73227843b4edb"> 9</a></span>&#160; u_char <a class="code" href="structsniff__ip.html#a8ced3d6237cb8b0538e73227843b4edb">ip_vhl</a>; </div>
  90. <div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="structsniff__ip.html#aa850a52985272f13d6866d14be1ecdf6"> 10</a></span>&#160; u_char <a class="code" href="structsniff__ip.html#aa850a52985272f13d6866d14be1ecdf6">ip_tos</a>; </div>
  91. <div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="structsniff__ip.html#aa4907e31555a52a20bc0eadc46d45044"> 11</a></span>&#160; u_short <a class="code" href="structsniff__ip.html#aa4907e31555a52a20bc0eadc46d45044">ip_len</a>; </div>
  92. <div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structsniff__ip.html#a9cae00d3f7491ce2bfcb086880b1aa6a"> 12</a></span>&#160; u_short <a class="code" href="structsniff__ip.html#a9cae00d3f7491ce2bfcb086880b1aa6a">ip_id</a>; </div>
  93. <div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="structsniff__ip.html#aecf13449d60d1e0b7d78a64fcd3e54de"> 13</a></span>&#160; u_short <a class="code" href="structsniff__ip.html#aecf13449d60d1e0b7d78a64fcd3e54de">ip_off</a>; </div>
  94. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor"> #define IP_RF 0x8000 </span></div>
  95. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor"> #define IP_DF 0x4000 </span></div>
  96. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor"> #define IP_MF 0x2000 </span></div>
  97. <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor"> #define IP_OFFMASK 0x1fff </span></div>
  98. <div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="structsniff__ip.html#abed391544944e353d09e85030f423ec8"> 18</a></span>&#160;<span class="preprocessor"> u_char ip_ttl; </span></div>
  99. <div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structsniff__ip.html#a49d22326de644e4d1158ef7ae4fb22b7"> 19</a></span>&#160;<span class="preprocessor"> u_char ip_p; </span></div>
  100. <div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="structsniff__ip.html#a263384b09865cda4a03e3451de740c84"> 20</a></span>&#160;<span class="preprocessor"> u_short ip_sum; </span></div>
  101. <div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structsniff__ip.html#ad2db4a1d3fbfb1bcc44e5a26d6c28c2e"> 21</a></span>&#160;<span class="preprocessor"> struct in_addr ip_src,ip_dst; </span></div>
  102. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">};</span></div>
  103. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#define IP_HL(ip) (((ip)-&gt;ip_vhl) &amp; 0x0f)</span></div>
  104. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define IP_V(ip) (((ip)-&gt;ip_vhl) &gt;&gt; 4)</span></div>
  105. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
  106. <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#endif // IP_HDR_H</span></div>
  107. <div class="ttc" id="structsniff__ip_html_a8ced3d6237cb8b0538e73227843b4edb"><div class="ttname"><a href="structsniff__ip.html#a8ced3d6237cb8b0538e73227843b4edb">sniff_ip::ip_vhl</a></div><div class="ttdeci">u_char ip_vhl</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:9</div></div>
  108. <div class="ttc" id="structsniff__ip_html_aecf13449d60d1e0b7d78a64fcd3e54de"><div class="ttname"><a href="structsniff__ip.html#aecf13449d60d1e0b7d78a64fcd3e54de">sniff_ip::ip_off</a></div><div class="ttdeci">u_short ip_off</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:13</div></div>
  109. <div class="ttc" id="structsniff__ip_html_aa4907e31555a52a20bc0eadc46d45044"><div class="ttname"><a href="structsniff__ip.html#aa4907e31555a52a20bc0eadc46d45044">sniff_ip::ip_len</a></div><div class="ttdeci">u_short ip_len</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:11</div></div>
  110. <div class="ttc" id="structsniff__ip_html_aa850a52985272f13d6866d14be1ecdf6"><div class="ttname"><a href="structsniff__ip.html#aa850a52985272f13d6866d14be1ecdf6">sniff_ip::ip_tos</a></div><div class="ttdeci">u_char ip_tos</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:10</div></div>
  111. <div class="ttc" id="structsniff__ip_html_a9cae00d3f7491ce2bfcb086880b1aa6a"><div class="ttname"><a href="structsniff__ip.html#a9cae00d3f7491ce2bfcb086880b1aa6a">sniff_ip::ip_id</a></div><div class="ttdeci">u_short ip_id</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:12</div></div>
  112. <div class="ttc" id="structsniff__ip_html"><div class="ttname"><a href="structsniff__ip.html">sniff_ip</a></div><div class="ttdoc">The sniff_ip struct defines the packet header of a tcp internet packet. Used to extract IP layer info...</div><div class="ttdef"><b>Definition:</b> ip_hdr.h:8</div></div>
  113. </div><!-- fragment --></div><!-- contents -->
  114. <!-- start footer part -->
  115. <hr class="footer"/><address class="footer"><small>
  116. Generado el Miércoles, 24 de Junio de 2015 15:25:32 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  117. <img class="footer" src="doxygen.png" alt="doxygen"/>
  118. </a> 1.8.9.1
  119. </small></address>
  120. </body>
  121. </html>