暫無描述

class_packet.html 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  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: Packet Class Reference</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. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  42. <li><a href="files.html"><span>Files</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="Search" 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>Class&#160;List</span></a></li>
  64. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  65. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  66. <li><a href="functions.html"><span>Class&#160;Members</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">Public Member Functions</a> &#124;
  85. <a href="#pri-attribs">Private Attributes</a> &#124;
  86. <a href="class_packet-members.html">List of all members</a> </div>
  87. <div class="headertitle">
  88. <div class="title">Packet Class Reference</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>A class to represent packets.
  92. <a href="class_packet.html#details">More...</a></p>
  93. <p><code>#include &lt;<a class="el" href="packet_8h_source.html">packet.h</a>&gt;</code></p>
  94. <table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  96. Public Member Functions</h2></td></tr>
  97. <tr class="memitem:aabcfb963c0d5bc0fa554668f92989622"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#aabcfb963c0d5bc0fa554668f92989622">Packet</a> ()</td></tr>
  98. <tr class="memdesc:aabcfb963c0d5bc0fa554668f92989622"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. The properties of the packet are set as follows: <a href="#aabcfb963c0d5bc0fa554668f92989622">More...</a><br /></td></tr>
  99. <tr class="separator:aabcfb963c0d5bc0fa554668f92989622"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a46516634a765e6fea19a4df08406adc8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a46516634a765e6fea19a4df08406adc8">Packet</a> (string, string, int, int, int, int)</td></tr>
  101. <tr class="memdesc:a46516634a765e6fea19a4df08406adc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor which accepts specification for sa(src_addr), da(dst_addr), sp(src_port), dp(dst_port), oct(octects) and pkt(packets) <a href="#a46516634a765e6fea19a4df08406adc8">More...</a><br /></td></tr>
  102. <tr class="separator:a46516634a765e6fea19a4df08406adc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a3e9aed01edd0023e97276041894c5c1f"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a3e9aed01edd0023e97276041894c5c1f">getSrcAddr</a> ()</td></tr>
  104. <tr class="memdesc:a3e9aed01edd0023e97276041894c5c1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the source addr. <a href="#a3e9aed01edd0023e97276041894c5c1f">More...</a><br /></td></tr>
  105. <tr class="separator:a3e9aed01edd0023e97276041894c5c1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a092161eb22c1ff6ffa2eb9961d3868b0"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a092161eb22c1ff6ffa2eb9961d3868b0">getDstAddr</a> ()</td></tr>
  107. <tr class="memdesc:a092161eb22c1ff6ffa2eb9961d3868b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the destination addr. <a href="#a092161eb22c1ff6ffa2eb9961d3868b0">More...</a><br /></td></tr>
  108. <tr class="separator:a092161eb22c1ff6ffa2eb9961d3868b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:acf4fbcd48861393cbc96c6aeb9e5846f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#acf4fbcd48861393cbc96c6aeb9e5846f">getSrcPort</a> ()</td></tr>
  110. <tr class="memdesc:acf4fbcd48861393cbc96c6aeb9e5846f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the source port. <a href="#acf4fbcd48861393cbc96c6aeb9e5846f">More...</a><br /></td></tr>
  111. <tr class="separator:acf4fbcd48861393cbc96c6aeb9e5846f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a92347c94882b6e5b3209cc70ea0d77b5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a92347c94882b6e5b3209cc70ea0d77b5">getDstPort</a> ()</td></tr>
  113. <tr class="memdesc:a92347c94882b6e5b3209cc70ea0d77b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the destination port. <a href="#a92347c94882b6e5b3209cc70ea0d77b5">More...</a><br /></td></tr>
  114. <tr class="separator:a92347c94882b6e5b3209cc70ea0d77b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:acd8d06afbd5a289a8b92e02d0cf72cc1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd8d06afbd5a289a8b92e02d0cf72cc1"></a>
  116. int&#160;</td><td class="memItemRight" valign="bottom"><b>getOctects</b> ()</td></tr>
  117. <tr class="separator:acd8d06afbd5a289a8b92e02d0cf72cc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a6ee74fd953f6d57d56e48a596d897f05"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a6ee74fd953f6d57d56e48a596d897f05">getPackets</a> ()</td></tr>
  119. <tr class="memdesc:a6ee74fd953f6d57d56e48a596d897f05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the packets. <a href="#a6ee74fd953f6d57d56e48a596d897f05">More...</a><br /></td></tr>
  120. <tr class="separator:a6ee74fd953f6d57d56e48a596d897f05"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a8c939968eb35f357884900bf8794a3d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a8c939968eb35f357884900bf8794a3d7">setSrcAddr</a> (string)</td></tr>
  122. <tr class="memdesc:a8c939968eb35f357884900bf8794a3d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the src_addr. <a href="#a8c939968eb35f357884900bf8794a3d7">More...</a><br /></td></tr>
  123. <tr class="separator:a8c939968eb35f357884900bf8794a3d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:acaa3e1703fe14b9a39d4c4426453e65c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#acaa3e1703fe14b9a39d4c4426453e65c">setDstAddr</a> (string)</td></tr>
  125. <tr class="memdesc:acaa3e1703fe14b9a39d4c4426453e65c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the destination addr. <a href="#acaa3e1703fe14b9a39d4c4426453e65c">More...</a><br /></td></tr>
  126. <tr class="separator:acaa3e1703fe14b9a39d4c4426453e65c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a9844970ffe7eb2ecf6e2407a39f04807"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a9844970ffe7eb2ecf6e2407a39f04807">setSrcPort</a> (int)</td></tr>
  128. <tr class="memdesc:a9844970ffe7eb2ecf6e2407a39f04807"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the source port. <a href="#a9844970ffe7eb2ecf6e2407a39f04807">More...</a><br /></td></tr>
  129. <tr class="separator:a9844970ffe7eb2ecf6e2407a39f04807"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:ab51c81cc6958913652b3fe5316ec6af3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#ab51c81cc6958913652b3fe5316ec6af3">setDstPort</a> (int)</td></tr>
  131. <tr class="memdesc:ab51c81cc6958913652b3fe5316ec6af3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the destination port. <a href="#ab51c81cc6958913652b3fe5316ec6af3">More...</a><br /></td></tr>
  132. <tr class="separator:ab51c81cc6958913652b3fe5316ec6af3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:adc6e90455b92f776ec7583d5e62b50d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc6e90455b92f776ec7583d5e62b50d7"></a>
  134. void&#160;</td><td class="memItemRight" valign="bottom"><b>setOctects</b> (int)</td></tr>
  135. <tr class="separator:adc6e90455b92f776ec7583d5e62b50d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:acfb4620179dba167031a8e8b1cad0c25"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#acfb4620179dba167031a8e8b1cad0c25">setPackets</a> (int)</td></tr>
  137. <tr class="memdesc:acfb4620179dba167031a8e8b1cad0c25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the packets value. <a href="#acfb4620179dba167031a8e8b1cad0c25">More...</a><br /></td></tr>
  138. <tr class="separator:acfb4620179dba167031a8e8b1cad0c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a5b57162c18731c0186027f450670d14e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b57162c18731c0186027f450670d14e"></a>
  140. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a5b57162c18731c0186027f450670d14e">enable</a> ()</td></tr>
  141. <tr class="memdesc:a5b57162c18731c0186027f450670d14e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets that the packet is enabled to be displayed in GUI. <br /></td></tr>
  142. <tr class="separator:a5b57162c18731c0186027f450670d14e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a0c16d1f66f1fd8c99e9e760cf2ce07f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c16d1f66f1fd8c99e9e760cf2ce07f2"></a>
  144. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a0c16d1f66f1fd8c99e9e760cf2ce07f2">disable</a> ()</td></tr>
  145. <tr class="memdesc:a0c16d1f66f1fd8c99e9e760cf2ce07f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets that the packet is disabled to be displayed in GUI. <br /></td></tr>
  146. <tr class="separator:a0c16d1f66f1fd8c99e9e760cf2ce07f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a3c92559f89a09cd5790e8ab5171b509f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3c92559f89a09cd5790e8ab5171b509f"></a>
  148. bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEnabled</b> ()</td></tr>
  149. <tr class="separator:a3c92559f89a09cd5790e8ab5171b509f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. </table><table class="memberdecls">
  151. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  152. Private Attributes</h2></td></tr>
  153. <tr class="memitem:ad22856878226959be10e1a024e3446cc"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#ad22856878226959be10e1a024e3446cc">src_addr</a></td></tr>
  154. <tr class="separator:ad22856878226959be10e1a024e3446cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a4a1c8c11292c6116e393245fbfad00b7"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a4a1c8c11292c6116e393245fbfad00b7">dst_addr</a></td></tr>
  156. <tr class="separator:a4a1c8c11292c6116e393245fbfad00b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a191dd835177b18f84fd64596249008cc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a191dd835177b18f84fd64596249008cc">src_port</a></td></tr>
  158. <tr class="separator:a191dd835177b18f84fd64596249008cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:ae8a78379783d1a2795318ca9118e77e3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#ae8a78379783d1a2795318ca9118e77e3">dst_port</a></td></tr>
  160. <tr class="separator:ae8a78379783d1a2795318ca9118e77e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:a3dfcef408535f5e7ecdb3ef6bc3e9654"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a3dfcef408535f5e7ecdb3ef6bc3e9654">octects</a></td></tr>
  162. <tr class="separator:a3dfcef408535f5e7ecdb3ef6bc3e9654"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:abe4ea1613634961b78de7c609b1f0c75"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#abe4ea1613634961b78de7c609b1f0c75">packets</a></td></tr>
  164. <tr class="separator:abe4ea1613634961b78de7c609b1f0c75"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a72dbd5f3d8e2f802ebb4173c64495cda"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_packet.html#a72dbd5f3d8e2f802ebb4173c64495cda">enabled</a></td></tr>
  166. <tr class="separator:a72dbd5f3d8e2f802ebb4173c64495cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. </table>
  168. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  169. <div class="textblock"><p>A class to represent packets. </p>
  170. <p>The class contains two constructurs and various functions for searching and filtering network flow packets. </p>
  171. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  172. <a class="anchor" id="aabcfb963c0d5bc0fa554668f92989622"></a>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname">Packet::Packet </td>
  178. <td>(</td>
  179. <td class="paramname"></td><td>)</td>
  180. <td></td>
  181. </tr>
  182. </table>
  183. </div><div class="memdoc">
  184. <p>Default constructor. The properties of the packet are set as follows: </p>
  185. <ul>
  186. <li>src_addr: set to the empty string.</li>
  187. <li>dst_addr: set to the empty string.</li>
  188. <li>src_port: set to 0.</li>
  189. <li>dst_port: set to 0.</li>
  190. <li>octects: set to 0.</li>
  191. <li>packets: set to 0.</li>
  192. <li>enabled: set to false. </li>
  193. </ul>
  194. </div>
  195. </div>
  196. <a class="anchor" id="a46516634a765e6fea19a4df08406adc8"></a>
  197. <div class="memitem">
  198. <div class="memproto">
  199. <table class="memname">
  200. <tr>
  201. <td class="memname">Packet::Packet </td>
  202. <td>(</td>
  203. <td class="paramtype">string&#160;</td>
  204. <td class="paramname"><em>sa</em>, </td>
  205. </tr>
  206. <tr>
  207. <td class="paramkey"></td>
  208. <td></td>
  209. <td class="paramtype">string&#160;</td>
  210. <td class="paramname"><em>da</em>, </td>
  211. </tr>
  212. <tr>
  213. <td class="paramkey"></td>
  214. <td></td>
  215. <td class="paramtype">int&#160;</td>
  216. <td class="paramname"><em>sp</em>, </td>
  217. </tr>
  218. <tr>
  219. <td class="paramkey"></td>
  220. <td></td>
  221. <td class="paramtype">int&#160;</td>
  222. <td class="paramname"><em>dp</em>, </td>
  223. </tr>
  224. <tr>
  225. <td class="paramkey"></td>
  226. <td></td>
  227. <td class="paramtype">int&#160;</td>
  228. <td class="paramname"><em>oct</em>, </td>
  229. </tr>
  230. <tr>
  231. <td class="paramkey"></td>
  232. <td></td>
  233. <td class="paramtype">int&#160;</td>
  234. <td class="paramname"><em>pkt</em>&#160;</td>
  235. </tr>
  236. <tr>
  237. <td></td>
  238. <td>)</td>
  239. <td></td><td></td>
  240. </tr>
  241. </table>
  242. </div><div class="memdoc">
  243. <p>Constructor which accepts specification for sa(src_addr), da(dst_addr), sp(src_port), dp(dst_port), oct(octects) and pkt(packets) </p>
  244. <dl class="params"><dt>Parameters</dt><dd>
  245. <table class="params">
  246. <tr><td class="paramname">sa</td><td>source address </td></tr>
  247. <tr><td class="paramname">da</td><td>destination address </td></tr>
  248. <tr><td class="paramname">sp</td><td>source port </td></tr>
  249. <tr><td class="paramname">dp</td><td>destination port </td></tr>
  250. <tr><td class="paramname">oct</td><td>octects </td></tr>
  251. <tr><td class="paramname">pkt</td><td>packets </td></tr>
  252. </table>
  253. </dd>
  254. </dl>
  255. </div>
  256. </div>
  257. <h2 class="groupheader">Member Function Documentation</h2>
  258. <a class="anchor" id="a092161eb22c1ff6ffa2eb9961d3868b0"></a>
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">string Packet::getDstAddr </td>
  264. <td>(</td>
  265. <td class="paramname"></td><td>)</td>
  266. <td></td>
  267. </tr>
  268. </table>
  269. </div><div class="memdoc">
  270. <p>Getter for the destination addr. </p>
  271. <dl class="section return"><dt>Returns</dt><dd>dst address </dd></dl>
  272. </div>
  273. </div>
  274. <a class="anchor" id="a92347c94882b6e5b3209cc70ea0d77b5"></a>
  275. <div class="memitem">
  276. <div class="memproto">
  277. <table class="memname">
  278. <tr>
  279. <td class="memname">string Packet::getDstPort </td>
  280. <td>(</td>
  281. <td class="paramname"></td><td>)</td>
  282. <td></td>
  283. </tr>
  284. </table>
  285. </div><div class="memdoc">
  286. <p>Getter for the destination port. </p>
  287. <dl class="section return"><dt>Returns</dt><dd>dst port </dd></dl>
  288. </div>
  289. </div>
  290. <a class="anchor" id="a6ee74fd953f6d57d56e48a596d897f05"></a>
  291. <div class="memitem">
  292. <div class="memproto">
  293. <table class="memname">
  294. <tr>
  295. <td class="memname">string Packet::getPackets </td>
  296. <td>(</td>
  297. <td class="paramname"></td><td>)</td>
  298. <td></td>
  299. </tr>
  300. </table>
  301. </div><div class="memdoc">
  302. <p>Getter for the packets. </p>
  303. <dl class="section return"><dt>Returns</dt><dd>packets </dd></dl>
  304. </div>
  305. </div>
  306. <a class="anchor" id="a3e9aed01edd0023e97276041894c5c1f"></a>
  307. <div class="memitem">
  308. <div class="memproto">
  309. <table class="memname">
  310. <tr>
  311. <td class="memname">string Packet::getSrcAddr </td>
  312. <td>(</td>
  313. <td class="paramname"></td><td>)</td>
  314. <td></td>
  315. </tr>
  316. </table>
  317. </div><div class="memdoc">
  318. <p>Getter for the source addr. </p>
  319. <dl class="section return"><dt>Returns</dt><dd>src address </dd></dl>
  320. </div>
  321. </div>
  322. <a class="anchor" id="acf4fbcd48861393cbc96c6aeb9e5846f"></a>
  323. <div class="memitem">
  324. <div class="memproto">
  325. <table class="memname">
  326. <tr>
  327. <td class="memname">string Packet::getSrcPort </td>
  328. <td>(</td>
  329. <td class="paramname"></td><td>)</td>
  330. <td></td>
  331. </tr>
  332. </table>
  333. </div><div class="memdoc">
  334. <p>Getter for the source port. </p>
  335. <dl class="section return"><dt>Returns</dt><dd>src port </dd></dl>
  336. </div>
  337. </div>
  338. <a class="anchor" id="acaa3e1703fe14b9a39d4c4426453e65c"></a>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">void Packet::setDstAddr </td>
  344. <td>(</td>
  345. <td class="paramtype">string&#160;</td>
  346. <td class="paramname"><em>addr</em></td><td>)</td>
  347. <td></td>
  348. </tr>
  349. </table>
  350. </div><div class="memdoc">
  351. <p>Setter for the destination addr. </p>
  352. <dl class="params"><dt>Parameters</dt><dd>
  353. <table class="params">
  354. <tr><td class="paramname">addr</td><td>destination address </td></tr>
  355. </table>
  356. </dd>
  357. </dl>
  358. </div>
  359. </div>
  360. <a class="anchor" id="ab51c81cc6958913652b3fe5316ec6af3"></a>
  361. <div class="memitem">
  362. <div class="memproto">
  363. <table class="memname">
  364. <tr>
  365. <td class="memname">void Packet::setDstPort </td>
  366. <td>(</td>
  367. <td class="paramtype">int&#160;</td>
  368. <td class="paramname"><em>port</em></td><td>)</td>
  369. <td></td>
  370. </tr>
  371. </table>
  372. </div><div class="memdoc">
  373. <p>Setter for the destination port. </p>
  374. <dl class="params"><dt>Parameters</dt><dd>
  375. <table class="params">
  376. <tr><td class="paramname">port</td><td>destination port </td></tr>
  377. </table>
  378. </dd>
  379. </dl>
  380. </div>
  381. </div>
  382. <a class="anchor" id="acfb4620179dba167031a8e8b1cad0c25"></a>
  383. <div class="memitem">
  384. <div class="memproto">
  385. <table class="memname">
  386. <tr>
  387. <td class="memname">void Packet::setPackets </td>
  388. <td>(</td>
  389. <td class="paramtype">int&#160;</td>
  390. <td class="paramname"><em>val</em></td><td>)</td>
  391. <td></td>
  392. </tr>
  393. </table>
  394. </div><div class="memdoc">
  395. <p>Setter for the packets value. </p>
  396. <dl class="params"><dt>Parameters</dt><dd>
  397. <table class="params">
  398. <tr><td class="paramname">val</td><td>packets </td></tr>
  399. </table>
  400. </dd>
  401. </dl>
  402. </div>
  403. </div>
  404. <a class="anchor" id="a8c939968eb35f357884900bf8794a3d7"></a>
  405. <div class="memitem">
  406. <div class="memproto">
  407. <table class="memname">
  408. <tr>
  409. <td class="memname">void Packet::setSrcAddr </td>
  410. <td>(</td>
  411. <td class="paramtype">string&#160;</td>
  412. <td class="paramname"><em>addr</em></td><td>)</td>
  413. <td></td>
  414. </tr>
  415. </table>
  416. </div><div class="memdoc">
  417. <p>Setter for the src_addr. </p>
  418. <dl class="params"><dt>Parameters</dt><dd>
  419. <table class="params">
  420. <tr><td class="paramname">addr</td><td>source address </td></tr>
  421. </table>
  422. </dd>
  423. </dl>
  424. </div>
  425. </div>
  426. <a class="anchor" id="a9844970ffe7eb2ecf6e2407a39f04807"></a>
  427. <div class="memitem">
  428. <div class="memproto">
  429. <table class="memname">
  430. <tr>
  431. <td class="memname">void Packet::setSrcPort </td>
  432. <td>(</td>
  433. <td class="paramtype">int&#160;</td>
  434. <td class="paramname"><em>port</em></td><td>)</td>
  435. <td></td>
  436. </tr>
  437. </table>
  438. </div><div class="memdoc">
  439. <p>Setter for the source port. </p>
  440. <dl class="params"><dt>Parameters</dt><dd>
  441. <table class="params">
  442. <tr><td class="paramname">port</td><td>source port </td></tr>
  443. </table>
  444. </dd>
  445. </dl>
  446. </div>
  447. </div>
  448. <h2 class="groupheader">Member Data Documentation</h2>
  449. <a class="anchor" id="a4a1c8c11292c6116e393245fbfad00b7"></a>
  450. <div class="memitem">
  451. <div class="memproto">
  452. <table class="mlabels">
  453. <tr>
  454. <td class="mlabels-left">
  455. <table class="memname">
  456. <tr>
  457. <td class="memname">string Packet::dst_addr</td>
  458. </tr>
  459. </table>
  460. </td>
  461. <td class="mlabels-right">
  462. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  463. </tr>
  464. </table>
  465. </div><div class="memdoc">
  466. <p>dst_addr destination address (direccion destino) </p>
  467. </div>
  468. </div>
  469. <a class="anchor" id="ae8a78379783d1a2795318ca9118e77e3"></a>
  470. <div class="memitem">
  471. <div class="memproto">
  472. <table class="mlabels">
  473. <tr>
  474. <td class="mlabels-left">
  475. <table class="memname">
  476. <tr>
  477. <td class="memname">int Packet::dst_port</td>
  478. </tr>
  479. </table>
  480. </td>
  481. <td class="mlabels-right">
  482. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  483. </tr>
  484. </table>
  485. </div><div class="memdoc">
  486. <p>dst_port destination port (puerto destino) </p>
  487. </div>
  488. </div>
  489. <a class="anchor" id="a72dbd5f3d8e2f802ebb4173c64495cda"></a>
  490. <div class="memitem">
  491. <div class="memproto">
  492. <table class="mlabels">
  493. <tr>
  494. <td class="mlabels-left">
  495. <table class="memname">
  496. <tr>
  497. <td class="memname">bool Packet::enabled</td>
  498. </tr>
  499. </table>
  500. </td>
  501. <td class="mlabels-right">
  502. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  503. </tr>
  504. </table>
  505. </div><div class="memdoc">
  506. <p>enabled in the GUI (disponible en el GUI) </p>
  507. </div>
  508. </div>
  509. <a class="anchor" id="a3dfcef408535f5e7ecdb3ef6bc3e9654"></a>
  510. <div class="memitem">
  511. <div class="memproto">
  512. <table class="mlabels">
  513. <tr>
  514. <td class="mlabels-left">
  515. <table class="memname">
  516. <tr>
  517. <td class="memname">int Packet::octects</td>
  518. </tr>
  519. </table>
  520. </td>
  521. <td class="mlabels-right">
  522. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  523. </tr>
  524. </table>
  525. </div><div class="memdoc">
  526. <p>octets/bytes value (octetos) </p>
  527. </div>
  528. </div>
  529. <a class="anchor" id="abe4ea1613634961b78de7c609b1f0c75"></a>
  530. <div class="memitem">
  531. <div class="memproto">
  532. <table class="mlabels">
  533. <tr>
  534. <td class="mlabels-left">
  535. <table class="memname">
  536. <tr>
  537. <td class="memname">int Packet::packets</td>
  538. </tr>
  539. </table>
  540. </td>
  541. <td class="mlabels-right">
  542. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  543. </tr>
  544. </table>
  545. </div><div class="memdoc">
  546. <p>packets value (paquetes) </p>
  547. </div>
  548. </div>
  549. <a class="anchor" id="ad22856878226959be10e1a024e3446cc"></a>
  550. <div class="memitem">
  551. <div class="memproto">
  552. <table class="mlabels">
  553. <tr>
  554. <td class="mlabels-left">
  555. <table class="memname">
  556. <tr>
  557. <td class="memname">string Packet::src_addr</td>
  558. </tr>
  559. </table>
  560. </td>
  561. <td class="mlabels-right">
  562. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  563. </tr>
  564. </table>
  565. </div><div class="memdoc">
  566. <p>src_addr source address (direccion fuente) </p>
  567. </div>
  568. </div>
  569. <a class="anchor" id="a191dd835177b18f84fd64596249008cc"></a>
  570. <div class="memitem">
  571. <div class="memproto">
  572. <table class="mlabels">
  573. <tr>
  574. <td class="mlabels-left">
  575. <table class="memname">
  576. <tr>
  577. <td class="memname">int Packet::src_port</td>
  578. </tr>
  579. </table>
  580. </td>
  581. <td class="mlabels-right">
  582. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  583. </tr>
  584. </table>
  585. </div><div class="memdoc">
  586. <p>src_port source port (puerto fuente) </p>
  587. </div>
  588. </div>
  589. <hr/>The documentation for this class was generated from the following files:<ul>
  590. <li><a class="el" href="packet_8h_source.html">packet.h</a></li>
  591. <li>packet.cpp</li>
  592. </ul>
  593. </div><!-- contents -->
  594. <!-- start footer part -->
  595. <hr class="footer"/><address class="footer"><small>
  596. Generated on Mon Jun 15 2015 12:46:26 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  597. <img class="footer" src="doxygen.png" alt="doxygen"/>
  598. </a> 1.8.9.1
  599. </small></address>
  600. </body>
  601. </html>