Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 87b89b73c41f4440bb86afd421c7548f > files > 124

libnl-devel-1.1-14.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>libnl: Class Based Queueing (CBQ)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<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">libnl&#160;<span id="projectnumber">1.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>Class Based Queueing (CBQ)</h1>  </div>
<div class="ingroups"><a class="el" href="group__qdisc__api.html">Queueing Discipline Modules</a> &#124; <a class="el" href="group__class__api.html">Class Modules</a></div></div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cbq.html#gad082d2d1a6b09da6ceee70fcf2f12fde">nl_ovl_strategy2str</a> (int type, char *buf, size_t len)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a CBQ OVL strategy to a character string.  <a href="#gad082d2d1a6b09da6ceee70fcf2f12fde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cbq.html#gab681dba2e94e1e9dd0fd106b3364802f">nl_str2ovl_strategy</a> (const char *name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a string to a CBQ OVL strategy.  <a href="#gab681dba2e94e1e9dd0fd106b3364802f"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gad082d2d1a6b09da6ceee70fcf2f12fde"></a><!-- doxytag: member="cbq.c::nl_ovl_strategy2str" ref="gad082d2d1a6b09da6ceee70fcf2f12fde" args="(int type, char *buf, size_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* nl_ovl_strategy2str </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>CBQ OVL strategy </td></tr>
    <tr><td class="paramname">buf</td><td>destination buffer </td></tr>
    <tr><td class="paramname">len</td><td>length of destination buffer</td></tr>
  </table>
  </dd>
</dl>
<p>Converts a CBQ OVL strategy to a character string and stores in the provided buffer. Returns the destination buffer or the type encoded in hex if no match was found. </p>

<p>Definition at line <a class="el" href="cbq_8c_source.html#l00049">49</a> of file <a class="el" href="cbq_8c_source.html">cbq.c</a>.</p>
<div class="fragment"><pre class="fragment">{
        <span class="keywordflow">return</span> __type2str(type, buf, len, ovl_strategies,
                            ARRAY_SIZE(ovl_strategies));
}
</pre></div>
</div>
</div>
<a class="anchor" id="gab681dba2e94e1e9dd0fd106b3364802f"></a><!-- doxytag: member="cbq.c::nl_str2ovl_strategy" ref="gab681dba2e94e1e9dd0fd106b3364802f" args="(const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int nl_str2ovl_strategy </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>CBQ OVL stragegy name</td></tr>
  </table>
  </dd>
</dl>
<p>Converts a CBQ OVL stragegy name to it's corresponding CBQ OVL strategy type. Returns the type or -1 if none was found. </p>

<p>Definition at line <a class="el" href="cbq_8c_source.html#l00062">62</a> of file <a class="el" href="cbq_8c_source.html">cbq.c</a>.</p>
<div class="fragment"><pre class="fragment">{
        <span class="keywordflow">return</span> __str2type(name, ovl_strategies, ARRAY_SIZE(ovl_strategies));
}
</pre></div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Mar 21 2011 for libnl by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>