<!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"/> <title>GNU Radio 3.2.2 C++ API: usrp2::pktfilter Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">GNU Radio 3.2.2 C++ API</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('classusrp2_1_1pktfilter.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <h1>usrp2::pktfilter Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="usrp2::pktfilter" --> <p><code>#include <<a class="el" href="pktfilter_8h_source.html">pktfilter.h</a>></code></p> <p><a href="classusrp2_1_1pktfilter-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#a3cfe2510c2ebfbb1c0f0db77785dd3ee">pktfilter</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#a625a771baf342d359620e37815662460">~pktfilter</a> ()</td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#a52df9baab1a92deea28e8d9f51b352c8">make_ethertype</a> (unsigned short ethertype)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a filter that harvests packets with the specified ethertype. <a href="#a52df9baab1a92deea28e8d9f51b352c8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#aee9f75c0eea4ca9d93e4c8f28ac02973">make_ethertype_inbound</a> (unsigned short ethertype, const unsigned char *our_mac)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a filter that harvests inbound packets with the specified ethertype. <a href="#aee9f75c0eea4ca9d93e4c8f28ac02973"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#a984d6b75eee48327b7386bbeef1a54e0">make_ethertype_inbound_target</a> (unsigned short ethertype, const unsigned char *usrp_mac)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a filter that harvests inbound packets with the specified ethertype and source MAC address. <a href="#a984d6b75eee48327b7386bbeef1a54e0"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#a28dd16aad776bfa6bda70a1471f7bdfd">d_len</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct sock_filter * </td><td class="memItemRight" valign="bottom"><a class="el" href="classusrp2_1_1pktfilter.html#af7e99eea6ad368da83b6cde736be6080">d_inst</a></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a3cfe2510c2ebfbb1c0f0db77785dd3ee"></a><!-- doxytag: member="usrp2::pktfilter::pktfilter" ref="a3cfe2510c2ebfbb1c0f0db77785dd3ee" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">usrp2::pktfilter::pktfilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a625a771baf342d359620e37815662460"></a><!-- doxytag: member="usrp2::pktfilter::~pktfilter" ref="a625a771baf342d359620e37815662460" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">usrp2::pktfilter::~pktfilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a52df9baab1a92deea28e8d9f51b352c8"></a><!-- doxytag: member="usrp2::pktfilter::make_ethertype" ref="a52df9baab1a92deea28e8d9f51b352c8" args="(unsigned short ethertype)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a>* usrp2::pktfilter::make_ethertype </td> <td>(</td> <td class="paramtype">unsigned short </td> <td class="paramname"><em>ethertype</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return a filter that harvests packets with the specified ethertype. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">ethertype</td><td>the ethertype we're looking for. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aee9f75c0eea4ca9d93e4c8f28ac02973"></a><!-- doxytag: member="usrp2::pktfilter::make_ethertype_inbound" ref="aee9f75c0eea4ca9d93e4c8f28ac02973" args="(unsigned short ethertype, const unsigned char *our_mac)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a>* usrp2::pktfilter::make_ethertype_inbound </td> <td>(</td> <td class="paramtype">unsigned short </td> <td class="paramname"><em>ethertype</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const unsigned char * </td> <td class="paramname"><em>our_mac</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return a filter that harvests inbound packets with the specified ethertype. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">ethertype</td><td>the ethertype we're looking for </td></tr> <tr><td class="paramname">our_mac</td><td>our MAC address so we can avoid pkts we sent </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a984d6b75eee48327b7386bbeef1a54e0"></a><!-- doxytag: member="usrp2::pktfilter::make_ethertype_inbound_target" ref="a984d6b75eee48327b7386bbeef1a54e0" args="(unsigned short ethertype, const unsigned char *usrp_mac)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a>* usrp2::pktfilter::make_ethertype_inbound_target </td> <td>(</td> <td class="paramtype">unsigned short </td> <td class="paramname"><em>ethertype</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const unsigned char * </td> <td class="paramname"><em>usrp_mac</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return a filter that harvests inbound packets with the specified ethertype and source MAC address. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">ethertype</td><td>the ethertype we're looking for </td></tr> <tr><td class="paramname">usrp_mac</td><td>the source MAC address </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="af7e99eea6ad368da83b6cde736be6080"></a><!-- doxytag: member="usrp2::pktfilter::d_inst" ref="af7e99eea6ad368da83b6cde736be6080" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct sock_filter* <a class="el" href="classusrp2_1_1pktfilter.html#af7e99eea6ad368da83b6cde736be6080">usrp2::pktfilter::d_inst</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a28dd16aad776bfa6bda70a1471f7bdfd"></a><!-- doxytag: member="usrp2::pktfilter::d_len" ref="a28dd16aad776bfa6bda70a1471f7bdfd" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned <a class="el" href="classusrp2_1_1pktfilter.html#a28dd16aad776bfa6bda70a1471f7bdfd">usrp2::pktfilter::d_len</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="pktfilter_8h_source.html">pktfilter.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>usrp2</b> </li> <li class="navelem"><a class="el" href="classusrp2_1_1pktfilter.html">pktfilter</a> </li> <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li> </ul> </div> </body> </html>