Нема описа

classethernet__packet.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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: Referencia de la Clase ethernet_packet</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 class="current"><a href="annotated.html"><span>Clases</span></a></li>
  42. <li><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="annotated.html"><span>Lista&#160;de&#160;clases</span></a></li>
  64. <li><a href="classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
  65. <li><a href="hierarchy.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
  66. <li><a href="functions.html"><span>Miembros&#160;de&#160;las&#160;clases</span></a></li>
  67. </ul>
  68. </div>
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. </div><!-- top -->
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Métodos públicos</a> &#124;
  85. <a href="#pri-methods">Métodos privados</a> &#124;
  86. <a href="#pri-attribs">Atributos privados</a> &#124;
  87. <a href="classethernet__packet-members.html">Lista de todos los miembros</a> </div>
  88. <div class="headertitle">
  89. <div class="title">Referencia de la Clase ethernet_packet</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p>The <a class="el" href="classethernet__packet.html" title="The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...">ethernet_packet</a> class contains function to change the ethernet information in bytes from the ethernet packet header to human readable data types (strings)
  93. <a href="classethernet__packet.html#details">Más...</a></p>
  94. <p><code>#include &lt;<a class="el" href="ethernet__packet_8h_source.html">ethernet_packet.h</a>&gt;</code></p>
  95. <div class="dynheader">
  96. Diagrama de herencias de ethernet_packet</div>
  97. <div class="dyncontent">
  98. <div class="center">
  99. <img src="classethernet__packet.png" usemap="#ethernet_packet_map" alt=""/>
  100. <map id="ethernet_packet_map" name="ethernet_packet_map">
  101. <area href="classip__packet.html" title="The ip_packet class contains the information extracted from a packet received using pcap for packets ..." alt="ip_packet" shape="rect" coords="0,56,102,80"/>
  102. </map>
  103. </div></div>
  104. <table class="memberdecls">
  105. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  106. Métodos públicos</h2></td></tr>
  107. <tr class="memitem:a4986a171f2710d2f7385adc9698be32c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4986a171f2710d2f7385adc9698be32c"></a>
  108. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#a4986a171f2710d2f7385adc9698be32c">ethernet_packet</a> ()</td></tr>
  109. <tr class="memdesc:a4986a171f2710d2f7385adc9698be32c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor, no hace nada. <br /></td></tr>
  110. <tr class="separator:a4986a171f2710d2f7385adc9698be32c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:acd600b879a9ea2b3753680c5e8a3ef88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#acd600b879a9ea2b3753680c5e8a3ef88">setEtherDHost</a> (u_char[])</td></tr>
  112. <tr class="memdesc:acd600b879a9ea2b3753680c5e8a3ef88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recibe el arreglo de 6 bytes de un computadora destino. <a href="#acd600b879a9ea2b3753680c5e8a3ef88">Más...</a><br /></td></tr>
  113. <tr class="separator:acd600b879a9ea2b3753680c5e8a3ef88"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:aab9239c39e891929b316654b77ff9c38"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#aab9239c39e891929b316654b77ff9c38">setEtherSHost</a> (u_char[])</td></tr>
  115. <tr class="memdesc:aab9239c39e891929b316654b77ff9c38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recibe el arreglo de 6 bytes de la computadora de origen. <a href="#aab9239c39e891929b316654b77ff9c38">Más...</a><br /></td></tr>
  116. <tr class="separator:aab9239c39e891929b316654b77ff9c38"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ad42d30ecbabfbce466fbbf9153977fc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#ad42d30ecbabfbce466fbbf9153977fc8">setEtherType</a> (u_short)</td></tr>
  118. <tr class="memdesc:ad42d30ecbabfbce466fbbf9153977fc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajusta el tipo de Ethernet. <a href="#ad42d30ecbabfbce466fbbf9153977fc8">Más...</a><br /></td></tr>
  119. <tr class="separator:ad42d30ecbabfbce466fbbf9153977fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:affa9f0bd4139a1b435e00401da1085f1"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#affa9f0bd4139a1b435e00401da1085f1">getEtherDHost</a> ()</td></tr>
  121. <tr class="memdesc:affa9f0bd4139a1b435e00401da1085f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la direccion de hardware destino en formato de caracteres. <a href="#affa9f0bd4139a1b435e00401da1085f1">Más...</a><br /></td></tr>
  122. <tr class="separator:affa9f0bd4139a1b435e00401da1085f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aa86115cbbf7baab794766ced8b27edb3"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#aa86115cbbf7baab794766ced8b27edb3">getEtherSHost</a> ()</td></tr>
  124. <tr class="memdesc:aa86115cbbf7baab794766ced8b27edb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la direccion de hardware fuente en formato de caracteres. <a href="#aa86115cbbf7baab794766ced8b27edb3">Más...</a><br /></td></tr>
  125. <tr class="separator:aa86115cbbf7baab794766ced8b27edb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a29151c42a4d2bbbec4909d7bed7592a6"><td class="memItemLeft" align="right" valign="top">u_short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#a29151c42a4d2bbbec4909d7bed7592a6">getEtherType</a> ()</td></tr>
  127. <tr class="memdesc:a29151c42a4d2bbbec4909d7bed7592a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve el tipo de Ethernet. <a href="#a29151c42a4d2bbbec4909d7bed7592a6">Más...</a><br /></td></tr>
  128. <tr class="separator:a29151c42a4d2bbbec4909d7bed7592a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. </table><table class="memberdecls">
  130. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  131. Métodos privados</h2></td></tr>
  132. <tr class="memitem:aff594f99384a96d6ff8a8f844e351da2"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#aff594f99384a96d6ff8a8f844e351da2">mac2string</a> (u_char[])</td></tr>
  133. <tr class="memdesc:aff594f99384a96d6ff8a8f844e351da2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion para cambiar el arreglo de bytes que representa una direccion de hardware a su representacion estándar de caracteres. <a href="#aff594f99384a96d6ff8a8f844e351da2">Más...</a><br /></td></tr>
  134. <tr class="separator:aff594f99384a96d6ff8a8f844e351da2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. </table><table class="memberdecls">
  136. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  137. Atributos privados</h2></td></tr>
  138. <tr class="memitem:a71a2378751dc74ccce67aec5c56c2db4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structsniff__ethernet.html">sniff_ethernet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classethernet__packet.html#a71a2378751dc74ccce67aec5c56c2db4">ethernet</a></td></tr>
  139. <tr class="separator:a71a2378751dc74ccce67aec5c56c2db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table>
  141. <a name="details" id="details"></a><h2 class="groupheader">Descripción detallada</h2>
  142. <div class="textblock"><p>The <a class="el" href="classethernet__packet.html" title="The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...">ethernet_packet</a> class contains function to change the ethernet information in bytes from the ethernet packet header to human readable data types (strings) </p>
  143. </div><h2 class="groupheader">Documentación de las funciones miembro</h2>
  144. <a class="anchor" id="affa9f0bd4139a1b435e00401da1085f1"></a>
  145. <div class="memitem">
  146. <div class="memproto">
  147. <table class="memname">
  148. <tr>
  149. <td class="memname">string ethernet_packet::getEtherDHost </td>
  150. <td>(</td>
  151. <td class="paramname"></td><td>)</td>
  152. <td></td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. <p>Devuelve la direccion de hardware destino en formato de caracteres. </p>
  157. <dl class="section return"><dt>Devuelve</dt><dd>la direccion de hardware destino en formato de caracteres </dd></dl>
  158. </div>
  159. </div>
  160. <a class="anchor" id="aa86115cbbf7baab794766ced8b27edb3"></a>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="memname">
  164. <tr>
  165. <td class="memname">string ethernet_packet::getEtherSHost </td>
  166. <td>(</td>
  167. <td class="paramname"></td><td>)</td>
  168. <td></td>
  169. </tr>
  170. </table>
  171. </div><div class="memdoc">
  172. <p>Devuelve la direccion de hardware fuente en formato de caracteres. </p>
  173. <dl class="section return"><dt>Devuelve</dt><dd>la direccion de hardware fuente en formato de caracteres </dd></dl>
  174. </div>
  175. </div>
  176. <a class="anchor" id="a29151c42a4d2bbbec4909d7bed7592a6"></a>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <table class="memname">
  180. <tr>
  181. <td class="memname">u_short ethernet_packet::getEtherType </td>
  182. <td>(</td>
  183. <td class="paramname"></td><td>)</td>
  184. <td></td>
  185. </tr>
  186. </table>
  187. </div><div class="memdoc">
  188. <p>Devuelve el tipo de Ethernet. </p>
  189. <dl class="section return"><dt>Devuelve</dt><dd>el tipo de Ethernet </dd></dl>
  190. </div>
  191. </div>
  192. <a class="anchor" id="aff594f99384a96d6ff8a8f844e351da2"></a>
  193. <div class="memitem">
  194. <div class="memproto">
  195. <table class="mlabels">
  196. <tr>
  197. <td class="mlabels-left">
  198. <table class="memname">
  199. <tr>
  200. <td class="memname">string ethernet_packet::mac2string </td>
  201. <td>(</td>
  202. <td class="paramtype">u_char&#160;</td>
  203. <td class="paramname"><em>srcmac</em>[]</td><td>)</td>
  204. <td></td>
  205. </tr>
  206. </table>
  207. </td>
  208. <td class="mlabels-right">
  209. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  210. </tr>
  211. </table>
  212. </div><div class="memdoc">
  213. <p>Funcion para cambiar el arreglo de bytes que representa una direccion de hardware a su representacion estándar de caracteres. </p>
  214. <dl class="params"><dt>Parámetros</dt><dd>
  215. <table class="params">
  216. <tr><td class="paramname">srcmac</td><td>arreglo con una direccion Ethernet </td></tr>
  217. </table>
  218. </dd>
  219. </dl>
  220. </div>
  221. </div>
  222. <a class="anchor" id="acd600b879a9ea2b3753680c5e8a3ef88"></a>
  223. <div class="memitem">
  224. <div class="memproto">
  225. <table class="memname">
  226. <tr>
  227. <td class="memname">void ethernet_packet::setEtherDHost </td>
  228. <td>(</td>
  229. <td class="paramtype">u_char&#160;</td>
  230. <td class="paramname"><em>dhost</em>[]</td><td>)</td>
  231. <td></td>
  232. </tr>
  233. </table>
  234. </div><div class="memdoc">
  235. <p>Recibe el arreglo de 6 bytes de un computadora destino. </p>
  236. <dl class="params"><dt>Parámetros</dt><dd>
  237. <table class="params">
  238. <tr><td class="paramname">dhost</td><td>direccion Ethernet de computadora destino </td></tr>
  239. </table>
  240. </dd>
  241. </dl>
  242. </div>
  243. </div>
  244. <a class="anchor" id="aab9239c39e891929b316654b77ff9c38"></a>
  245. <div class="memitem">
  246. <div class="memproto">
  247. <table class="memname">
  248. <tr>
  249. <td class="memname">void ethernet_packet::setEtherSHost </td>
  250. <td>(</td>
  251. <td class="paramtype">u_char&#160;</td>
  252. <td class="paramname"><em>shost</em>[]</td><td>)</td>
  253. <td></td>
  254. </tr>
  255. </table>
  256. </div><div class="memdoc">
  257. <p>Recibe el arreglo de 6 bytes de la computadora de origen. </p>
  258. <dl class="params"><dt>Parámetros</dt><dd>
  259. <table class="params">
  260. <tr><td class="paramname">shost</td><td>direccion de Ethernet de computadora de origen </td></tr>
  261. </table>
  262. </dd>
  263. </dl>
  264. </div>
  265. </div>
  266. <a class="anchor" id="ad42d30ecbabfbce466fbbf9153977fc8"></a>
  267. <div class="memitem">
  268. <div class="memproto">
  269. <table class="memname">
  270. <tr>
  271. <td class="memname">void ethernet_packet::setEtherType </td>
  272. <td>(</td>
  273. <td class="paramtype">u_short&#160;</td>
  274. <td class="paramname"><em>type</em></td><td>)</td>
  275. <td></td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Ajusta el tipo de Ethernet. </p>
  280. <dl class="params"><dt>Parámetros</dt><dd>
  281. <table class="params">
  282. <tr><td class="paramname">type</td><td>tipo de Ethernet </td></tr>
  283. </table>
  284. </dd>
  285. </dl>
  286. </div>
  287. </div>
  288. <h2 class="groupheader">Documentación de los datos miembro</h2>
  289. <a class="anchor" id="a71a2378751dc74ccce67aec5c56c2db4"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="mlabels">
  293. <tr>
  294. <td class="mlabels-left">
  295. <table class="memname">
  296. <tr>
  297. <td class="memname"><a class="el" href="structsniff__ethernet.html">sniff_ethernet</a> ethernet_packet::ethernet</td>
  298. </tr>
  299. </table>
  300. </td>
  301. <td class="mlabels-right">
  302. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>Ethernet header / encabezado Ethernet </p>
  307. </div>
  308. </div>
  309. <hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
  310. <li><a class="el" href="ethernet__packet_8h_source.html">ethernet_packet.h</a></li>
  311. <li>ethernet_packet.cpp</li>
  312. </ul>
  313. </div><!-- contents -->
  314. <!-- start footer part -->
  315. <hr class="footer"/><address class="footer"><small>
  316. 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">
  317. <img class="footer" src="doxygen.png" alt="doxygen"/>
  318. </a> 1.8.9.1
  319. </small></address>
  320. </body>
  321. </html>