Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3a718fcad37ff363f65d6a6e994e272 > files > 173

ldns-devel-1.6.12-1.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type"
content="text/html;charset=iso-8859-1">
<title>ldns documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div class="logo">
<img src="LogoInGradientBar2-y100.png"/>
</div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_7a7a565456b510ac01baf8655647d8a2.html">ldns</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">host2wire.h</div>  </div>
</div>
<div class="contents">
<a href="host2wire_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * host2wire.h - 2wire conversion routines</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * a Net::DNS like library for C</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * (c) NLnet Labs, 2005-2006</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * See the file LICENSE for the license</span>
<a name="l00009"></a>00009 <span class="comment"> */</span>
<a name="l00010"></a>00010 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef LDNS_HOST2WIRE_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define LDNS_HOST2WIRE_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;<a class="code" href="common_8h.html" title="Common definitions for LDNS.">ldns/common.h</a>&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;<a class="code" href="error_8h.html" title="Defines error numbers and functions to translate those to a readable string.">ldns/error.h</a>&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="rr_8h.html" title="Contains the definition of ldns_rr and functions to manipulate those.">ldns/rr.h</a>&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="rdata_8h.html" title="Defines ldns_rdf and functions to manipulate those.">ldns/rdata.h</a>&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="packet_8h.html" title="Contains the definition of ldns_pkt and its parts, as well as functions to manipulate those...">ldns/packet.h</a>&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="buffer_8h.html" title="This file contains the definition of ldns_buffer, and functions to manipulate those.">ldns/buffer.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;ctype.h&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="util_8h.html">ldns/util.h</a>&quot;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00032"></a>00032 <span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#aa84f3dd72e98883b193e332ce7bbf9ab" title="Copies the dname data to the buffer in wire format.">ldns_dname2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *buffer, <span class="keyword">const</span> <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *name);
<a name="l00041"></a>00041 
<a name="l00048"></a>00048 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a0147a3a16d5a149a6aee49cc967a9897" title="Copies the rdata data to the buffer in wire format.">ldns_rdf2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output, <span class="keyword">const</span> <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *rdf);
<a name="l00049"></a>00049 
<a name="l00058"></a>00058 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a4aa34f5ab334033bffbebad8daaa6684" title="Copies the rdata data to the buffer in wire format If the rdata is a dname, the letters will be lower...">ldns_rdf2buffer_wire_canonical</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output,
<a name="l00059"></a>00059                                                                    <span class="keyword">const</span> <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *rdf);
<a name="l00060"></a>00060 
<a name="l00069"></a>00069 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#ac590684e9355bca1742de1e351654048" title="Copies the rr data to the buffer in wire format.">ldns_rr2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output,
<a name="l00070"></a>00070                                                   <span class="keyword">const</span> <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *rr,
<a name="l00071"></a>00071                                                   <span class="keywordtype">int</span> section);
<a name="l00072"></a>00072 
<a name="l00083"></a>00083 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a184a3e6ef580e65fdbe7ec5d2d0fb4da" title="Copies the rr data to the buffer in wire format, in canonical format according to RFC3597 (every dnam...">ldns_rr2buffer_wire_canonical</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output,
<a name="l00084"></a>00084                                                                   <span class="keyword">const</span> <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *rr,
<a name="l00085"></a>00085                                                                   <span class="keywordtype">int</span> section);
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 
<a name="l00095"></a>00095 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a2c9c3a23cf907d632f9f85aa72f2bbf0" title="Converts a rrsig to wireformat BUT EXCLUDE the rrsig rdata This is needed in DNSSEC verification...">ldns_rrsig2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output, <span class="keyword">const</span> <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *sigrr);
<a name="l00096"></a>00096 
<a name="l00107"></a>00107 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#abf2bee8d29d4a8e29e4f64ea79b7c645" title="Converts an rr&#39;s rdata to wireformat, while excluding the ownername and all the stuff before the rdat...">ldns_rr_rdata2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output, <span class="keyword">const</span> <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *rr);
<a name="l00108"></a>00108 
<a name="l00115"></a>00115 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#aa40d4e3f29ccf46535901c5d5010054b" title="Copies the packet data to the buffer in wire format.">ldns_pkt2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output, <span class="keyword">const</span> <a class="code" href="structldns__struct__pkt.html" title="DNS packet.">ldns_pkt</a> *pkt);
<a name="l00116"></a>00116 
<a name="l00123"></a>00123 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a2b65b6f4ecb3364639d46ce3a8276153" title="Copies the rr_list data to the buffer in wire format.">ldns_rr_list2buffer_wire</a>(<a class="code" href="structldns__struct__buffer.html" title="implementation of buffers to ease operations">ldns_buffer</a> *output, <span class="keyword">const</span> <a class="code" href="structldns__struct__rr__list.html" title="List or Set of Resource Records.">ldns_rr_list</a> *rrlist);
<a name="l00124"></a>00124 
<a name="l00135"></a>00135 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a772e160d3d0c4eefc02c59107e19f09a" title="Allocates an array of uint8_t at dest, and puts the wireformat of the given rdf in that array...">ldns_rdf2wire</a>(uint8_t **dest, <span class="keyword">const</span> <a class="code" href="structldns__struct__rdf.html" title="Resource record data field.">ldns_rdf</a> *rdf, <span class="keywordtype">size_t</span> *size);
<a name="l00136"></a>00136 
<a name="l00150"></a>00150 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#aae486b38af7f9bb7997c8291c44adba7" title="Allocates an array of uint8_t at dest, and puts the wireformat of the given rr in that array...">ldns_rr2wire</a>(uint8_t **dest, <span class="keyword">const</span> <a class="code" href="structldns__struct__rr.html" title="Resource Record.">ldns_rr</a> *rr, <span class="keywordtype">int</span>, <span class="keywordtype">size_t</span> *size);
<a name="l00151"></a>00151 
<a name="l00158"></a>00158 <a class="code" href="error_8h.html#aaa6d98f86f535cf87b83b89e91f488f9">ldns_status</a> <a class="code" href="host2wire_8c.html#a2e9c17a2c51bbe8c8a41527211e7157c" title="Allocates an array of uint8_t at dest, and puts the wireformat of the given packet in that array...">ldns_pkt2wire</a>(uint8_t **dest, <span class="keyword">const</span> <a class="code" href="structldns__struct__pkt.html" title="DNS packet.">ldns_pkt</a> *p, <span class="keywordtype">size_t</span> *size);
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span>}
<a name="l00162"></a>00162 <span class="preprocessor">#endif</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00164"></a>00164 <span class="preprocessor">#endif </span><span class="comment">/* LDNS_HOST2WIRE_H */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Jan 11 2012 for ldns by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>