<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>My Project: Fichero Fuente ethernet_packet.h</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">My Project </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generado por Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Buscar'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Página principal</span></a></li> <li><a href="annotated.html"><span>Clases</span></a></li> <li class="current"><a href="files.html"><span>Archivos</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Buscar" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>Lista de archivos</span></a></li> </ul> </div> </div><!-- top --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">ethernet_packet.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef ETHERNET_PACKET_H</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define ETHERNET_PACKET_H</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "ethernet_hdr.h"</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <string></span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a> ;</div> <div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classethernet__packet.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="classethernet__packet.html">ethernet_packet</a></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> {</div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> <div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classethernet__packet.html#a71a2378751dc74ccce67aec5c56c2db4"> 17</a></span>  <a class="code" href="structsniff__ethernet.html">sniff_ethernet</a> <a class="code" href="classethernet__packet.html#a71a2378751dc74ccce67aec5c56c2db4">ethernet</a> ; </div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordtype">string</span> mac2string(u_char []) ;</div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="classethernet__packet.html">ethernet_packet</a>();</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> setEtherDHost(u_char []) ;</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> setEtherSHost(u_char []) ;</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> setEtherType(u_short) ;</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">string</span> getEtherDHost() ;</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">string</span> getEtherSHost() ;</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  u_short getEtherType() ;</div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> };</div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor">#endif // ETHERNET_PACKET_H</span></div> <div class="ttc" id="classethernet__packet_html"><div class="ttname"><a href="classethernet__packet.html">ethernet_packet</a></div><div class="ttdoc">The ethernet_packet class contains function to change the ethernet information in bytes from the ethe...</div><div class="ttdef"><b>Definition:</b> ethernet_packet.h:14</div></div> <div class="ttc" id="structsniff__ethernet_html"><div class="ttname"><a href="structsniff__ethernet.html">sniff_ethernet</a></div><div class="ttdoc">The sniff_ethernet struct defines the header of an ethernet frame, and is used to parse the packet re...</div><div class="ttdef"><b>Definition:</b> ethernet_hdr.h:17</div></div> <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div> <div class="ttc" id="classethernet__packet_html_a71a2378751dc74ccce67aec5c56c2db4"><div class="ttname"><a href="classethernet__packet.html#a71a2378751dc74ccce67aec5c56c2db4">ethernet_packet::ethernet</a></div><div class="ttdeci">sniff_ethernet ethernet</div><div class="ttdef"><b>Definition:</b> ethernet_packet.h:17</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generado el Miércoles, 24 de Junio de 2015 15:25:32 para My Project por  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>