Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 550bbe86d83a7870fdddc73c68e5d2b2 > files > 313

libunbound-devel-1.3.4-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>unbound: local_zone Struct Reference</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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>local_zone Struct Reference</h1><!-- doxytag: class="local_zone" -->Local zone.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;localzone.h&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e2f5e991171598ffda6eb00867639b9c"></a><!-- doxytag: member="local_zone::node" ref="e2f5e991171598ffda6eb00867639b9c" args="" -->
<a class="el" href="structrbnode__t.html">rbnode_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#e2f5e991171598ffda6eb00867639b9c">node</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">rbtree node, key is name and class <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structlocal__zone.html">local_zone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#8a04416954675f130c6341dc998531b7">parent</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parent zone, if any.  <a href="#8a04416954675f130c6341dc998531b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b9963c4d383356fbf2aad8572c8e00c6"></a><!-- doxytag: member="local_zone::name" ref="b9963c4d383356fbf2aad8572c8e00c6" args="" -->
uint8_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#b9963c4d383356fbf2aad8572c8e00c6">name</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">zone name, in uncompressed wireformat <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9192c93f2a9fbf337c32174d73a0a652"></a><!-- doxytag: member="local_zone::namelen" ref="9192c93f2a9fbf337c32174d73a0a652" args="" -->
size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#9192c93f2a9fbf337c32174d73a0a652">namelen</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">length of zone name <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e1b0cf6d506e8b92a92a0779f772f7d"></a><!-- doxytag: member="local_zone::namelabs" ref="0e1b0cf6d506e8b92a92a0779f772f7d" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#0e1b0cf6d506e8b92a92a0779f772f7d">namelabs</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of labels in zone name <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#5dad3e64b5a0e752649628ca6b085c8c">dclass</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the class of this zone.  <a href="#5dad3e64b5a0e752649628ca6b085c8c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="406773a563dfa3ad04a65ffe35f3cee5"></a><!-- doxytag: member="local_zone::lock" ref="406773a563dfa3ad04a65ffe35f3cee5" args="" -->
lock_rw_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#406773a563dfa3ad04a65ffe35f3cee5">lock</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">lock on the data in the structure For the node, parent, name, namelen, namelabs, dclass, you need to also hold the zones_tree lock to change them (or to delete this zone) <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8688f00d6cf86f91b4306fd04ce9caf0"></a><!-- doxytag: member="local_zone::type" ref="8688f00d6cf86f91b4306fd04ce9caf0" args="" -->
enum <a class="el" href="localzone_8h.html#d4936d63a4fd091d968d5331e1592e2d">localzone_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#8688f00d6cf86f91b4306fd04ce9caf0">type</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">how to process zone <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structregional.html">regional</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#3eb571f7c78223b6a57bf9bdfa2e62bf">region</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">in this region the zone's data is allocated.  <a href="#3eb571f7c78223b6a57bf9bdfa2e62bf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c271955d4fdff4a319205241bdbba6e"></a><!-- doxytag: member="local_zone::data" ref="8c271955d4fdff4a319205241bdbba6e" args="" -->
<a class="el" href="structrbtree__t.html">rbtree_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#8c271955d4fdff4a319205241bdbba6e">data</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">local data for this zone rbtree of struct <a class="el" href="structlocal__data.html" title="Local data.">local_data</a> <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structub__packed__rrset__key.html">ub_packed_rrset_key</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlocal__zone.html#a5ebcf375ad9bf759e97da877d0a822e">soa</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">if data contains zone apex SOA data, this is a ptr to it.  <a href="#a5ebcf375ad9bf759e97da877d0a822e"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Local zone. 
<p>
A locally served authoritative zone. <hr><h2>Field Documentation</h2>
<a class="anchor" name="8a04416954675f130c6341dc998531b7"></a><!-- doxytag: member="local_zone::parent" ref="8a04416954675f130c6341dc998531b7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlocal__zone.html">local_zone</a>* <a class="el" href="structlocal__zone.html#8a04416954675f130c6341dc998531b7">local_zone::parent</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
parent zone, if any. 
<p>

<p>Referenced by <a class="el" href="localzone_8c_source.html#l00706">init_parents()</a>, <a class="el" href="localzone_8c_source.html#l00147">local_zone_create()</a>, <a class="el" href="localzone_8c_source.html#l01186">local_zones_add_zone()</a>, <a class="el" href="localzone_8c_source.html#l01214">local_zones_del_zone()</a>, <a class="el" href="localzone_8c_source.html#l00881">local_zones_lookup()</a>, and <a class="el" href="localzone_8c_source.html#l01162">set_kiddo_parents()</a>.</p>

</div>
</div><p>
<a class="anchor" name="5dad3e64b5a0e752649628ca6b085c8c"></a><!-- doxytag: member="local_zone::dclass" ref="5dad3e64b5a0e752649628ca6b085c8c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="structlocal__zone.html#5dad3e64b5a0e752649628ca6b085c8c">local_zone::dclass</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
the class of this zone. 
<p>
uses 'dclass' to not conflict with c++ keyword class. 
<p>Referenced by <a class="el" href="localzone_8c_source.html#l00706">init_parents()</a>, <a class="el" href="localzone_8c_source.html#l00097">local_zone_cmp()</a>, <a class="el" href="localzone_8c_source.html#l00147">local_zone_create()</a>, <a class="el" href="localzone_8c_source.html#l00914">local_zones_find()</a>, <a class="el" href="localzone_8c_source.html#l00881">local_zones_lookup()</a>, <a class="el" href="localzone_8c_source.html#l00942">local_zones_print()</a>, <a class="el" href="localzone_8c_source.html#l00441">lz_enter_rr_into_zone()</a>, <a class="el" href="localzone_8c_source.html#l00541">lz_exists()</a>, and <a class="el" href="localzone_8c_source.html#l01162">set_kiddo_parents()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3eb571f7c78223b6a57bf9bdfa2e62bf"></a><!-- doxytag: member="local_zone::region" ref="3eb571f7c78223b6a57bf9bdfa2e62bf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structregional.html">regional</a>* <a class="el" href="structlocal__zone.html#3eb571f7c78223b6a57bf9bdfa2e62bf">local_zone::region</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
in this region the zone's data is allocated. 
<p>
the struct <a class="el" href="structlocal__zone.html" title="Local zone.">local_zone</a> itself is malloced. 
<p>Referenced by <a class="el" href="localzone_8c_source.html#l00147">local_zone_create()</a>, <a class="el" href="localzone_8c_source.html#l00086">local_zone_delete()</a>, <a class="el" href="localzone_8c_source.html#l00441">lz_enter_rr_into_zone()</a>, and <a class="el" href="localzone_8c_source.html#l00405">lz_find_create_node()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a5ebcf375ad9bf759e97da877d0a822e"></a><!-- doxytag: member="local_zone::soa" ref="a5ebcf375ad9bf759e97da877d0a822e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structub__packed__rrset__key.html">ub_packed_rrset_key</a>* <a class="el" href="structlocal__zone.html#a5ebcf375ad9bf759e97da877d0a822e">local_zone::soa</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
if data contains zone apex SOA data, this is a ptr to it. 
<p>

<p>Referenced by <a class="el" href="localzone_8c_source.html#l01294">local_zones_del_data()</a>, <a class="el" href="localzone_8c_source.html#l00441">lz_enter_rr_into_zone()</a>, and <a class="el" href="localzone_8c_source.html#l01063">lz_zone_answer()</a>.</p>

</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>services/<a class="el" href="localzone_8h.html">localzone.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:34 2009 for unbound by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>