Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 6e7a2755bd78c9deedab199b86e675f3 > files > 3207

gnuradio-doc-3.2.2-9.fc14.x86_64.rpm

<!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: eth_buffer.h Source File</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('eth__buffer_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>eth_buffer.h</h1>  </div>
</div>
<div class="contents">
<a href="eth__buffer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright 2008 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * This file is part of GNU Radio</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * GNU Radio is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment"> * the Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00010"></a>00010 <span class="comment"> * any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * GNU Radio is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00015"></a>00015 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> * </span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU General Public License along</span>
<a name="l00018"></a>00018 <span class="comment"> * with this program; if not, write to the Free Software Foundation, Inc.,</span>
<a name="l00019"></a>00019 <span class="comment"> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef INCLUDED_USRP2_ETH_BUFFER_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_USRP2_ETH_BUFFER_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="pktfilter_8h.html">pktfilter.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="eth__common_8h.html">eth_common.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;boost/utility.hpp&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;memory&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>usrp2 {
<a name="l00032"></a>00032 
<a name="l00033"></a>00033   <span class="keyword">class </span>ethernet;
<a name="l00034"></a>00034   <span class="keyword">class </span>data_handler;
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">  /*!</span>
<a name="l00037"></a>00037 <span class="comment">   * \brief high-performance interface to send and receive raw</span>
<a name="l00038"></a>00038 <span class="comment">   * ethernet frames with out-of-order retirement of received frames.</span>
<a name="l00039"></a>00039 <span class="comment">   *</span>
<a name="l00040"></a>00040 <span class="comment">   * On many systems it should be possible to implement this on top of libpcap</span>
<a name="l00041"></a>00041 <span class="comment">   *</span>
<a name="l00042"></a>00042 <span class="comment">   * \internal</span>
<a name="l00043"></a>00043 <span class="comment">   */</span>
<a name="l00044"></a>00044   <span class="keyword">class </span>eth_buffer : boost::noncopyable 
<a name="l00045"></a><a class="code" href="classusrp2_1_1eth__buffer.html">00045</a>   {
<a name="l00046"></a>00046     
<a name="l00047"></a>00047     <span class="keywordtype">int</span>           d_fd;                 <span class="comment">// socket file descriptor</span>
<a name="l00048"></a>00048     uint8_t       d_mac[6];             <span class="comment">// our mac address</span>
<a name="l00049"></a>00049     <span class="keywordtype">bool</span>          d_using_tpring;       <span class="comment">// using kernel mapped packet ring</span>
<a name="l00050"></a>00050     <span class="keywordtype">size_t</span>        d_buflen;             <span class="comment">// length of our buffer</span>
<a name="l00051"></a>00051     uint8_t      *d_buf;                <span class="comment">// packet ring</span>
<a name="l00052"></a>00052     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  d_frame_nr;           <span class="comment">// max frames on ring</span>
<a name="l00053"></a>00053     <span class="keywordtype">size_t</span>        d_frame_size;         <span class="comment">// frame storage size</span>
<a name="l00054"></a>00054     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  d_head;               <span class="comment">// pointer to next frame</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056     <a class="code" href="classstd_1_1vector.html">std::vector&lt;uint8_t *&gt;</a>  d_ring;     <span class="comment">// pointers into buffer</span>
<a name="l00057"></a>00057     std::auto_ptr&lt;ethernet&gt; d_ethernet; <span class="comment">// our underlying interface</span>
<a name="l00058"></a>00058   
<a name="l00059"></a>00059     <span class="keywordtype">bool</span> frame_available();
<a name="l00060"></a>00060 
<a name="l00061"></a>00061     <span class="keywordtype">void</span> inc_head()
<a name="l00062"></a>00062     {
<a name="l00063"></a>00063       <span class="keywordflow">if</span> (d_head + 1 &gt;= d_frame_nr)
<a name="l00064"></a>00064         d_head = 0;
<a name="l00065"></a>00065       <span class="keywordflow">else</span>
<a name="l00066"></a>00066         d_head = d_head + 1;
<a name="l00067"></a>00067     }
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 
<a name="l00070"></a>00070   <span class="keyword">public</span>:
<a name="l00071"></a>00071 
<a name="l00072"></a>00072     <span class="keyword">enum</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45">result</a> {
<a name="l00073"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45">00073</a>       <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45ad3aa4af7536660c66b632ff5d85e73ca">EB_OK</a>,            <span class="comment">//&lt; everything&#39;s fine</span>
<a name="l00074"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45ad3aa4af7536660c66b632ff5d85e73ca">00074</a>       <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a10545517ae4f02d2d9ddcb40f83b38f1">EB_ERROR</a>,         <span class="comment">//&lt; A non-recoverable error occurred</span>
<a name="l00075"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a10545517ae4f02d2d9ddcb40f83b38f1">00075</a>       <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a45ef72e13adefd1ffb07ace7315dc203">EB_WOULD_BLOCK</a>,   <span class="comment">//&lt; A timeout of 0 was specified and nothing was ready</span>
<a name="l00076"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a45ef72e13adefd1ffb07ace7315dc203">00076</a>       <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a190277c8167ab2eb9cc79a2230a63d34">EB_TIMED_OUT</a>,     <span class="comment">//&lt; The timeout expired before anything was ready</span>
<a name="l00077"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45a190277c8167ab2eb9cc79a2230a63d34">00077</a>     };
<a name="l00078"></a>00078 
<a name="l00079"></a>00079     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a4aba555d732872e1896535ebdde78677">MAX_PKTLEN</a> = 1512;
<a name="l00080"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a4aba555d732872e1896535ebdde78677">00080</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a023f047905eeee79720d02debc23b5ce">MIN_PKTLEN</a> = 64;
<a name="l00081"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a023f047905eeee79720d02debc23b5ce">00081</a> <span class="comment"></span>
<a name="l00082"></a>00082 <span class="comment">    /*!</span>
<a name="l00083"></a>00083 <span class="comment">     * \param rx_bufsize is a hint as to the number of bytes of memory</span>
<a name="l00084"></a>00084 <span class="comment">     * to allocate for received ethernet frames (0 -&gt; reasonable default)</span>
<a name="l00085"></a>00085 <span class="comment">     */</span>
<a name="l00086"></a>00086     <a class="code" href="classusrp2_1_1eth__buffer.html#a6e63920c66f80cd4a9460f28b1bc0142">eth_buffer</a>(<span class="keywordtype">size_t</span> rx_bufsize = 0);
<a name="l00087"></a>00087     <a class="code" href="classusrp2_1_1eth__buffer.html#a668accecd6b8c8d8db3cb60e35a256da">~eth_buffer</a>();
<a name="l00088"></a>00088     <span class="comment"></span>
<a name="l00089"></a>00089 <span class="comment">    /*!</span>
<a name="l00090"></a>00090 <span class="comment">     * \brief open the specified interface</span>
<a name="l00091"></a>00091 <span class="comment">     *</span>
<a name="l00092"></a>00092 <span class="comment">     * \param ifname ethernet interface name, e.g., &quot;eth0&quot;</span>
<a name="l00093"></a>00093 <span class="comment">     * \param protocol is the ethertype protocol number in network order.</span>
<a name="l00094"></a>00094 <span class="comment">     *    Use 0 to receive all protocols.</span>
<a name="l00095"></a>00095 <span class="comment">     */</span>
<a name="l00096"></a>00096     <span class="keywordtype">bool</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a73d14155717516c604af41b7cd336253" title="open the specified interface">open</a>(<span class="keyword">const</span> std::string &amp;ifname, <span class="keywordtype">int</span> protocol);
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">    /*!</span>
<a name="l00099"></a>00099 <span class="comment">     * \brief close the interface</span>
<a name="l00100"></a>00100 <span class="comment">     */</span>
<a name="l00101"></a>00101     <span class="keywordtype">bool</span> <a class="code" href="classusrp2_1_1eth__buffer.html#abeda1fa51e80d23b292ea6f8fb676cf3" title="close the interface">close</a>();
<a name="l00102"></a>00102 <span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">    /*!</span>
<a name="l00104"></a>00104 <span class="comment">     * \brief attach packet filter to socket to restrict which packets read sees.</span>
<a name="l00105"></a>00105 <span class="comment">     * \param pf        the packet filter</span>
<a name="l00106"></a>00106 <span class="comment">     */</span>
<a name="l00107"></a>00107     <span class="keywordtype">bool</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a8678b219ef6740446b2f895eafd48697" title="attach packet filter to socket to restrict which packets read sees.">attach_pktfilter</a>(<a class="code" href="classusrp2_1_1pktfilter.html">pktfilter</a> *pf);
<a name="l00108"></a>00108 <span class="comment"></span>
<a name="l00109"></a>00109 <span class="comment">    /*!</span>
<a name="l00110"></a>00110 <span class="comment">     * \brief return 6 byte string containing our MAC address</span>
<a name="l00111"></a>00111 <span class="comment">     */</span>
<a name="l00112"></a>00112     <span class="keyword">const</span> uint8_t *<a class="code" href="classusrp2_1_1eth__buffer.html#a410d450bf9c0c27830f8ce9a810a0e90" title="return 6 byte string containing our MAC address">mac</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_mac; }
<a name="l00113"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a410d450bf9c0c27830f8ce9a810a0e90">00113</a> <span class="comment"></span>
<a name="l00114"></a>00114 <span class="comment">    /*!</span>
<a name="l00115"></a>00115 <span class="comment">     * \brief Call \p f for each frame in the receive buffer.</span>
<a name="l00116"></a>00116 <span class="comment">     * \param f is the frame data handler</span>
<a name="l00117"></a>00117 <span class="comment">     * \param timeout (in ms) controls behavior when there are no frames to read</span>
<a name="l00118"></a>00118 <span class="comment">     *</span>
<a name="l00119"></a>00119 <span class="comment">     * If \p timeout is 0, rx_frames will not wait for frames if none are </span>
<a name="l00120"></a>00120 <span class="comment">     * available, and f will not be invoked.  If \p timeout is -1 (the </span>
<a name="l00121"></a>00121 <span class="comment">     * default), rx_frames will block indefinitely until frames are </span>
<a name="l00122"></a>00122 <span class="comment">     * available.  If \p timeout is positive, it indicates the number of</span>
<a name="l00123"></a>00123 <span class="comment">     * milliseconds to wait for a frame to become available.  Once the</span>
<a name="l00124"></a>00124 <span class="comment">     * timeout has expired, rx_frames will return, f never having been </span>
<a name="l00125"></a>00125 <span class="comment">     * invoked.</span>
<a name="l00126"></a>00126 <span class="comment">     *</span>
<a name="l00127"></a>00127 <span class="comment">     * \p f will be called on each ethernet frame that is available.</span>
<a name="l00128"></a>00128 <span class="comment">     * \p f returns a bit mask with one of the following set or cleared:</span>
<a name="l00129"></a>00129 <span class="comment">     * </span>
<a name="l00130"></a>00130 <span class="comment">     * data_handler::KEEP  - hold onto the frame and present it again during </span>
<a name="l00131"></a>00131 <span class="comment">     *                       the next call to rx_frames, otherwise discard it</span>
<a name="l00132"></a>00132 <span class="comment">     *</span>
<a name="l00133"></a>00133 <span class="comment">     * data_handler::DONE -  return from rx_frames now even though more frames</span>
<a name="l00134"></a>00134 <span class="comment">     *                       might be available; otherwise continue if more </span>
<a name="l00135"></a>00135 <span class="comment">     *                       frames are ready.</span>
<a name="l00136"></a>00136 <span class="comment">     *</span>
<a name="l00137"></a>00137 <span class="comment">     * The idea of holding onto a frame for the next iteration allows</span>
<a name="l00138"></a>00138 <span class="comment">     * the caller to scan the received packet stream for particular</span>
<a name="l00139"></a>00139 <span class="comment">     * classes of frames (such as command replies) leaving the rest</span>
<a name="l00140"></a>00140 <span class="comment">     * intact.  On the next call all kept frames, followed by any new</span>
<a name="l00141"></a>00141 <span class="comment">     * frames received, will be presented in order to \p f.  </span>
<a name="l00142"></a>00142 <span class="comment">     * See usrp2.cc for an example of the pattern.</span>
<a name="l00143"></a>00143 <span class="comment">     *</span>
<a name="l00144"></a>00144 <span class="comment">     * \returns EB_OK if at least one frame was received</span>
<a name="l00145"></a>00145 <span class="comment">     * \returns EB_WOULD_BLOCK if \p timeout is 0 and the call would have blocked</span>
<a name="l00146"></a>00146 <span class="comment">     * \returns EB_TIMED_OUT if timeout occurred</span>
<a name="l00147"></a>00147 <span class="comment">     * \returns EB_ERROR if there was an unrecoverable error.</span>
<a name="l00148"></a>00148 <span class="comment">     */</span>
<a name="l00149"></a>00149     <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45">result</a> <a class="code" href="classusrp2_1_1eth__buffer.html#a7ecd08e04d735bb31f22cc8e3c97a82a" title="Call f for each frame in the receive buffer.">rx_frames</a>(<a class="code" href="classusrp2_1_1data__handler.html" title="Abstract function object called to handle received data blocks.">data_handler</a> *f, <span class="keywordtype">int</span> timeout=-1);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151     <span class="comment">/*</span>
<a name="l00152"></a>00152 <span class="comment">     * \brief Release frame from buffer</span>
<a name="l00153"></a>00153 <span class="comment">     *</span>
<a name="l00154"></a>00154 <span class="comment">     * Call to release a frame previously held by a data_handler::KEEP.</span>
<a name="l00155"></a>00155 <span class="comment">     * The pointer may be offset from the base of the frame up to its length.</span>
<a name="l00156"></a>00156 <span class="comment">     */</span>
<a name="l00157"></a>00157     <span class="keywordtype">void</span> <a class="code" href="classusrp2_1_1eth__buffer.html#af4df95fb86af1aaea600de085e3ba4aa">release_frame</a>(<span class="keywordtype">void</span> *p);
<a name="l00158"></a>00158 
<a name="l00159"></a>00159     <span class="comment">/*</span>
<a name="l00160"></a>00160 <span class="comment">     * \brief Write an ethernet frame to the interface.</span>
<a name="l00161"></a>00161 <span class="comment">     *</span>
<a name="l00162"></a>00162 <span class="comment">     * \param base points to the beginning of the frame (the 14-byte ethernet header).</span>
<a name="l00163"></a>00163 <span class="comment">     * \param len is the length of the frame in bytes.</span>
<a name="l00164"></a>00164 <span class="comment">     * \param flags is 0 or the bitwise-or of values from eth_flags</span>
<a name="l00165"></a>00165 <span class="comment">     *</span>
<a name="l00166"></a>00166 <span class="comment">     * The frame must begin with a 14-byte ethernet header.</span>
<a name="l00167"></a>00167 <span class="comment">     *</span>
<a name="l00168"></a>00168 <span class="comment">     * \returns EB_OK if the frame was successfully enqueued.</span>
<a name="l00169"></a>00169 <span class="comment">     * \returns EB_WOULD_BLOCK if flags contains EF_DONT_WAIT and the call would have blocked.</span>
<a name="l00170"></a>00170 <span class="comment">     * \returns EB_ERROR if there was an unrecoverable error.</span>
<a name="l00171"></a>00171 <span class="comment">     */</span>
<a name="l00172"></a>00172     <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45">result</a> <a class="code" href="classusrp2_1_1eth__buffer.html#a599931ad82bf9a7f4f0519b3fa0658a9">tx_frame</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *base, <span class="keywordtype">size_t</span> len, <span class="keywordtype">int</span> flags=0);
<a name="l00173"></a>00173 
<a name="l00174"></a>00174     <span class="comment">/*</span>
<a name="l00175"></a>00175 <span class="comment">     * \brief Write an ethernet frame to the interface using scatter/gather.</span>
<a name="l00176"></a>00176 <span class="comment">     *</span>
<a name="l00177"></a>00177 <span class="comment">     * \param iov points to an array of iovec structs</span>
<a name="l00178"></a>00178 <span class="comment">     * \param iovcnt is the number of entries</span>
<a name="l00179"></a>00179 <span class="comment">     * \param flags is 0 or the bitwise-or of values from eth_flags</span>
<a name="l00180"></a>00180 <span class="comment">     *</span>
<a name="l00181"></a>00181 <span class="comment">     * The frame must begin with a 14-byte ethernet header.</span>
<a name="l00182"></a>00182 <span class="comment">     *</span>
<a name="l00183"></a>00183 <span class="comment">     * \returns EB_OK if the frame was successfully enqueued.</span>
<a name="l00184"></a>00184 <span class="comment">     * \returns EB_WOULD_BLOCK if flags contains EF_DONT_WAIT and the call would have blocked.</span>
<a name="l00185"></a>00185 <span class="comment">     * \returns EB_ERROR if there was an unrecoverable error.</span>
<a name="l00186"></a>00186 <span class="comment">     */</span>
<a name="l00187"></a>00187     <a class="code" href="classusrp2_1_1eth__buffer.html#a89b3a731769e02e794a7901e5ab32d45">result</a> <a class="code" href="classusrp2_1_1eth__buffer.html#a0c89b83a7ec4e905ac17f5141a3b6bdd">tx_framev</a>(<span class="keyword">const</span> eth_iovec *iov, <span class="keywordtype">int</span> iovcnt, <span class="keywordtype">int</span> flags=0);
<a name="l00188"></a>00188 
<a name="l00189"></a>00189     <span class="comment">/*</span>
<a name="l00190"></a>00190 <span class="comment">     * \brief Returns maximum possible number of frames in buffer</span>
<a name="l00191"></a>00191 <span class="comment">     */</span>
<a name="l00192"></a>00192     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1eth__buffer.html#a0e210e740dc81abac2f4ea05c5c5fb8f">max_frames</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_frame_nr; }
<a name="l00193"></a><a class="code" href="classusrp2_1_1eth__buffer.html#a0e210e740dc81abac2f4ea05c5c5fb8f">00193</a> 
<a name="l00194"></a>00194   };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 };  <span class="comment">// namespace usrp2</span>
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_USRP2_ETH_BUFFER_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="eth__buffer_8h.html">eth_buffer.h</a>      </li>
      <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by&#160;
<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>