You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

andns__lib_8h_source.html 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.6"/>
  7. <title>The Netsukuku Project: src/andns_lib.h Source File</title>
  8. <link href="../../tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="../../jquery.js"></script>
  10. <script type="text/javascript" src="../../dynsections.js"></script>
  11. <link href="../../navtree.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="../../resize.js"></script>
  13. <script type="text/javascript" src="../../navtree.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(initResizable);
  16. $(window).load(resizeHeight);
  17. </script>
  18. <link href="../../search/search.css" rel="stylesheet" type="text/css"/>
  19. <script type="text/javascript" src="../../search/search.js"></script>
  20. <script type="text/javascript">
  21. $(document).ready(function() { searchBox.OnSelectItem(0); });
  22. </script>
  23. <link href="../../doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectlogo"><img alt="Logo" src="../../Logo_netsukuku.jpg"/></td>
  32. <td style="padding-left: 0.5em;">
  33. <div id="projectname">The Netsukuku Project
  34. &#160;<span id="projectnumber">0.0.9</span>
  35. </div>
  36. <div id="projectbrief">An Alternative routing method</div>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. <!-- end header part -->
  43. <!-- Generated by Doxygen 1.8.6 -->
  44. <script type="text/javascript">
  45. var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
  46. </script>
  47. <div id="navrow1" class="tabs">
  48. <ul class="tablist">
  49. <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
  50. <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
  51. <li class="current"><a href="../../files.html"><span>Files</span></a></li>
  52. <li>
  53. <div id="MSearchBox" class="MSearchBoxInactive">
  54. <span class="left">
  55. <img id="MSearchSelect" src="../../search/mag_sel.png"
  56. onmouseover="return searchBox.OnSearchSelectShow()"
  57. onmouseout="return searchBox.OnSearchSelectHide()"
  58. alt=""/>
  59. <input type="text" id="MSearchField" value="Search" accesskey="S"
  60. onfocus="searchBox.OnSearchFieldFocus(true)"
  61. onblur="searchBox.OnSearchFieldFocus(false)"
  62. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  63. </span><span class="right">
  64. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
  65. </span>
  66. </div>
  67. </li>
  68. </ul>
  69. </div>
  70. <div id="navrow2" class="tabs2">
  71. <ul class="tablist">
  72. <li><a href="../../files.html"><span>File&#160;List</span></a></li>
  73. <li><a href="../../globals.html"><span>Globals</span></a></li>
  74. </ul>
  75. </div>
  76. </div><!-- top -->
  77. <div id="side-nav" class="ui-resizable side-nav-resizable">
  78. <div id="nav-tree">
  79. <div id="nav-tree-contents">
  80. <div id="nav-sync" class="sync"></div>
  81. </div>
  82. </div>
  83. <div id="splitbar" style="-moz-user-select:none;"
  84. class="ui-resizable-handle">
  85. </div>
  86. </div>
  87. <script type="text/javascript">
  88. $(document).ready(function(){initNavTree('da/d94/andns__lib_8h_source.html','../../');});
  89. </script>
  90. <div id="doc-content">
  91. <!-- window showing the filter options -->
  92. <div id="MSearchSelectWindow"
  93. onmouseover="return searchBox.OnSearchSelectShow()"
  94. onmouseout="return searchBox.OnSearchSelectHide()"
  95. onkeydown="return searchBox.OnSearchSelectKey(event)">
  96. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>
  97. <!-- iframe showing the search results (closed by default) -->
  98. <div id="MSearchResultsWindow">
  99. <iframe src="javascript:void(0)" frameborder="0"
  100. name="MSearchResults" id="MSearchResults">
  101. </iframe>
  102. </div>
  103. <div class="header">
  104. <div class="headertitle">
  105. <div class="title">andns_lib.h</div> </div>
  106. </div><!--header-->
  107. <div class="contents">
  108. <a href="../../da/d94/andns__lib_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; <span class="comment">/**************************************</span></div>
  109. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * AUTHOR: Federico Tomassini *</span></div>
  110. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright (C) Federico Tomassini *</span></div>
  111. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Contact effetom@gmail.com *</span></div>
  112. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> ***********************************************</span></div>
  113. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> ******* BEGIN 3/2006 ********</span></div>
  114. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">*************************************************************************</span></div>
  115. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">* *</span></div>
  116. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">* This program is free software; you can redistribute it and/or modify *</span></div>
  117. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* it under the terms of the GNU General Public License as published by *</span></div>
  118. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* the Free Software Foundation; either version 2 of the License, or *</span></div>
  119. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">* (at your option) any later version. *</span></div>
  120. <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">* *</span></div>
  121. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">* This program is distributed in the hope that it will be useful, *</span></div>
  122. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of *</span></div>
  123. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span></div>
  124. <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">* GNU General Public License for more details. *</span></div>
  125. <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">* *</span></div>
  126. <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">************************************************************************/</span></div>
  127. <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div>
  128. <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#ifndef ANDNS_LIB_H</span></div>
  129. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#define ANDNS_LIB_H</span></div>
  130. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
  131. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
  132. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
  133. <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;sys/types.h&gt;</span></div>
  134. <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
  135. <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#accee2fec1e0bd3a1e0b79205b71a37f3"> 28</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_QUESTION_LEN 263 </span><span class="comment">/* TODO */</span><span class="preprocessor"></span></div>
  136. <div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#af6abd671e7c02d18c573e6d9bc7eff01"> 29</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_ANSWER_LEN 516</span></div>
  137. <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a27c1bba5cec7f38f1d08ca46b89ed6cc"> 30</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_ANSWERS_NUM 256</span></div>
  138. <div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5123f9e9dafe6d1c566fc03365f543f0"> 31</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_PK_LEN ANDNS_MAX_QUESTION_LEN+\</span></div>
  139. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor"> ANDNS_MAX_ANSWERS_NUM*ANDNS_MAX_ANSWER_LEN</span></div>
  140. <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
  141. <div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac338df774a09d5fa4fa9f4ab8e73106d"> 34</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_DATA_LEN 512</span></div>
  142. <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a29e675c7a05a4301729790f9235d4cf0"> 35</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_QST_LEN 512</span></div>
  143. <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aac2f525f4aeaeb97779b751b548a215d"> 36</a></span>&#160;<span class="preprocessor">#define ANNDS_DNS_MAZ_QST_LEN 255</span></div>
  144. <div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5915fae57d9aad5fc3cdbf8981377349"> 37</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_ANSW_IP_LEN 20</span></div>
  145. <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a9530adc60bd3f0ee2cd169a7d09e40c1"> 38</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_ANSW_H_LEN 516</span></div>
  146. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
  147. <div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7e28e77a514cd14cb38a7cf8dd3e1c4c"> 40</a></span>&#160;<span class="preprocessor">#define ANDNS_HASH_H 16</span></div>
  148. <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
  149. <div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a173694ac8826a2acbb63cf6f30507c48"> 42</a></span>&#160;<span class="preprocessor">#define ANDNS_COMPR_LEVEL Z_BEST_COMPRESSION</span></div>
  150. <div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a102a5fe9ec9149e304abb81fcbe350a3"> 43</a></span>&#160;<span class="preprocessor">#define ANDNS_COMPR_THRESHOLD 1000</span></div>
  151. <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
  152. <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html"> 45</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a></div>
  153. <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{</div>
  154. <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a233153d206df9f34c1c78213d64541af"> 47</a></span>&#160; uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a233153d206df9f34c1c78213d64541af">m</a>;</div>
  155. <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a43665f74fe37e71cf9c16c1ab3f027c6"> 48</a></span>&#160; uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a43665f74fe37e71cf9c16c1ab3f027c6">wg</a>;</div>
  156. <div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a5e7c195b47f8ae92687e33b55801a78b"> 49</a></span>&#160; uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a5e7c195b47f8ae92687e33b55801a78b">prio</a>;</div>
  157. <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a4221045ab5bbfd653dcdc5be7aae413f"> 50</a></span>&#160; uint16_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a4221045ab5bbfd653dcdc5be7aae413f">rdlength</a>;</div>
  158. <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a878cf43a63889233c3fd84cf563204b2"> 51</a></span>&#160; uint16_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a878cf43a63889233c3fd84cf563204b2">service</a>;</div>
  159. <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#ab518f9c6ab56302c3654f18548a4ed5c"> 52</a></span>&#160; <span class="keywordtype">char</span> *<a class="code" href="../../d0/d50/structandns__pkt__data.html#ab518f9c6ab56302c3654f18548a4ed5c">rdata</a>;</div>
  160. <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#aaa4a624267df925bdfc073142269388b"> 53</a></span>&#160; <span class="keyword">struct </span><a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a> *<a class="code" href="../../d0/d50/structandns__pkt__data.html#aaa4a624267df925bdfc073142269388b">next</a>;</div>
  161. <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;};</div>
  162. <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a962a49bbb7907afd223604edfeec7f1d"> 55</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a> <a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a>;</div>
  163. <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ab66e1b48f3e56a2fa3cb52ce081165da"> 56</a></span>&#160;<span class="preprocessor">#define ANDNS_PKT_DATA_SZ sizeof(andns_pkt_data)</span></div>
  164. <div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aa665bac79894c56938eab3485371c721"> 57</a></span>&#160;<span class="preprocessor">#define APD_ALIGN(apd) (apd)-&gt;rdata=(char*)xmalloc((apd)-&gt;rdlength+1); \</span></div>
  165. <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor"> memset((apd)-&gt;rdata,0,(apd)-&gt;rdlength+1)</span></div>
  166. <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#abb4e9fffbdcb232c0a1a9555300fdb9a"> 59</a></span>&#160;<span class="preprocessor">#define APD_MAIN_IP 1&lt;&lt;0</span></div>
  167. <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac4c101f3dc9dace2014faf67251dc4b1"> 60</a></span>&#160;<span class="preprocessor">#define APD_IP 1&lt;&lt;1</span></div>
  168. <div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a6acdca91851c6f277dea6a8ec5660faa"> 61</a></span>&#160;<span class="preprocessor">#define APD_TCP 1&lt;&lt;2</span></div>
  169. <div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a9b07bcfa24a6d1a1d3b77175ce6904aa"> 62</a></span>&#160;<span class="preprocessor">#define APD_UDP 1&lt;&lt;3</span></div>
  170. <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
  171. <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html"> 64</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a></div>
  172. <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;{</div>
  173. <div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#add2f3fc275e046a0dc749c2762ae4784"> 66</a></span>&#160; uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#add2f3fc275e046a0dc749c2762ae4784">id</a>;</div>
  174. <div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a5ac4b37a54cbe1aecaf3e6e3f9936d3e"> 67</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a5ac4b37a54cbe1aecaf3e6e3f9936d3e">r</a>;</div>
  175. <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#af10e798e4b992d52cecab31af88765ba"> 68</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#af10e798e4b992d52cecab31af88765ba">qr</a>;</div>
  176. <div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a1064393c232715cbefe850d6e8ee1988"> 69</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a1064393c232715cbefe850d6e8ee1988">p</a>;</div>
  177. <div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a14e2aab0d2ec73eb98c13df1e71b1cd6"> 70</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a14e2aab0d2ec73eb98c13df1e71b1cd6">z</a>;</div>
  178. <div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#afca8c06599ff5ae268465434c015cd89"> 71</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#afca8c06599ff5ae268465434c015cd89">qtype</a>;</div>
  179. <div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a0f227d59958631836d932d04cb9ae403"> 72</a></span>&#160; uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a0f227d59958631836d932d04cb9ae403">ancount</a>;</div>
  180. <div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a59810e0e3ee9df7b6729588f4ea6875c"> 73</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a59810e0e3ee9df7b6729588f4ea6875c">ipv</a>;</div>
  181. <div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a169be62c541af405709f9dd486b3146a"> 74</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a169be62c541af405709f9dd486b3146a">nk</a>;</div>
  182. <div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a16afae2ed2b5e0a3a07453444efae0d6"> 75</a></span>&#160; uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a16afae2ed2b5e0a3a07453444efae0d6">rcode</a>;</div>
  183. <div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a05c43f087134a3acfec69e4ae0f4fe95"> 76</a></span>&#160; uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a05c43f087134a3acfec69e4ae0f4fe95">service</a>; </div>
  184. <div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#aaa5cb90431e164453ef7acf7c498c260"> 77</a></span>&#160; uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#aaa5cb90431e164453ef7acf7c498c260">qstlength</a>;</div>
  185. <div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#ae6afbb26d11009f2a6e770e3ddf21a58"> 78</a></span>&#160; <span class="keywordtype">char</span> *<a class="code" href="../../d9/d5a/structandns__pkt.html#ae6afbb26d11009f2a6e770e3ddf21a58">qstdata</a>;</div>
  186. <div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#ad473d1cd205071766b45b487b302172a"> 79</a></span>&#160; <a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a> *<a class="code" href="../../d9/d5a/structandns__pkt.html#ad473d1cd205071766b45b487b302172a">pkt_answ</a>;</div>
  187. <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;} <a class="code" href="../../da/d94/andns__lib_8h.html#a289aea568de4a29a9e8579fa6acd414e">andns_pkt</a>;</div>
  188. <div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a94d7b24e16fe3e769d501420b115dc9e"> 81</a></span>&#160;<span class="preprocessor">#define ANDNS_PKT_SZ sizeof(andns_pkt)</span></div>
  189. <div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac0d09e0c1a985048593e4d15ac7e1113"> 82</a></span>&#160;<span class="preprocessor">#define AP_ALIGN(ap) (ap)-&gt;qstdata=(char*)xmalloc((ap)-&gt;qstlength)</span></div>
  190. <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
  191. <div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a2c4a306ee239cda5f968384068ceacd7"> 84</a></span>&#160;<span class="preprocessor">#define ANDNS_HDR_SZ 4</span></div>
  192. <div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a790be2c9f642b130e276557ba75717ff"> 85</a></span>&#160;<span class="preprocessor">#define ANDNS_HDR_Z 4</span></div>
  193. <div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#afe2fc071f4e245291180abc499c702d2"> 86</a></span>&#160;<span class="preprocessor">#define ANDNS_MAX_SZ ANDNS_HDR_SZ+ANDNS_MAX_QST_LEN+ANDNS_MAX_QST_LEN+4</span></div>
  194. <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
  195. <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div>
  196. <div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a608b77fdfa77619fdbefa03d752bba82"> 89</a></span>&#160;<span class="preprocessor">#define ANDNS_SET_RCODE(s,c) *((s)+3)=(((*((s)+3))&amp;0xf0)|c)</span></div>
  197. <div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#abdf6311b13091efb68769903c92576b1"> 90</a></span>&#160;<span class="preprocessor">#define ANDNS_SET_QR(s) (*((s)+2))|=0x80</span></div>
  198. <div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ae67b4156fe399bd8f5250c31c7da5d45"> 91</a></span>&#160;<span class="preprocessor">#define ANDNS_SET_ANCOUNT(s,n) *(s+2)|=((n)&gt;&gt;1);*(s+3)|=((n)&lt;&lt;7);</span></div>
  199. <div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a3a2c206ad64cf0a0e38d8df605a1ccd4"> 92</a></span>&#160;<span class="preprocessor">#define ANDNS_SET_Z(s) *(s+3)|=0x20;</span></div>
  200. <div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a0746430750e9536d848431d5861428a4"> 93</a></span>&#160;<span class="preprocessor">#define ANDNS_UNSET_Z(s) *(s+3)&amp;=0xdf;</span></div>
  201. <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
  202. <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="comment">/* ANDNS PROTO-TYPE */</span></div>
  203. <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a4cf6e579ba44429f1de0c558d1b5d417"> 96</a></span>&#160;<span class="preprocessor">#define ANDNS_PROTO_TCP 0</span></div>
  204. <div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a0e0722cdcf97922db8c42e91e1c34237"> 97</a></span>&#160;<span class="preprocessor">#define ANDNS_PROTO_UDP 1</span></div>
  205. <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="comment">/* ANDNS QUERY-TYPE */</span></div>
  206. <div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a352aba0ec4846048c2c763fb7a51f779"> 99</a></span>&#160;<span class="preprocessor">#define AT_A 0 </span><span class="comment">/* h-&gt;ip */</span><span class="preprocessor"></span></div>
  207. <div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7443dd2f51a6005ccd8c78f216702ac4"> 100</a></span>&#160;<span class="preprocessor">#define AT_PTR 1 </span><span class="comment">/* ip-&gt;h */</span><span class="preprocessor"></span></div>
  208. <div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aa50990d194707c048a1c1d2b04583e6d"> 101</a></span>&#160;<span class="preprocessor">#define AT_G 2 </span><span class="comment">/* global */</span><span class="preprocessor"></span></div>
  209. <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="comment">/* RCODES: The rcodes are portable between ANDNS and DNS */</span></div>
  210. <div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#af202351a0134f79b7a0f12bec3572000"> 103</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_NOERR 0 </span><span class="comment">/* No error */</span><span class="preprocessor"></span></div>
  211. <div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a3287360f3872270d08712c725fb95c04"> 104</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_EINTRPRT 1 </span><span class="comment">/* Intepret error */</span><span class="preprocessor"></span></div>
  212. <div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aac3504b838178621863fb51d440c09b1"> 105</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_ESRVFAIL 2 </span><span class="comment">/* Server failure */</span><span class="preprocessor"></span></div>
  213. <div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aae6a7845c9bab390846a53e5692ead13"> 106</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_ENSDMN 3 </span><span class="comment">/* No such domain */</span><span class="preprocessor"></span></div>
  214. <div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7773e0f33bf2fdea1d50c90c25f7d08b"> 107</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_ENIMPL 4 </span><span class="comment">/* Not implemented */</span><span class="preprocessor"></span></div>
  215. <div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a36c8aadaf4affb6f0e3afbc657bf4af9"> 108</a></span>&#160;<span class="preprocessor">#define ANDNS_RCODE_ERFSD 5 </span><span class="comment">/* Refused */</span><span class="preprocessor"></span></div>
  216. <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="comment">/* REALMS TO SEARCH */</span></div>
  217. <div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5829c83ba0c4a6814f54033dc47e8c4b"> 110</a></span>&#160;<span class="preprocessor">#define NTK_REALM 1</span></div>
  218. <div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a20fef4be241fc42dcc2acba2a567cd95"> 111</a></span>&#160;<span class="preprocessor">#define INET_REALM 2</span></div>
  219. <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment">/* IP VERSION */</span></div>
  220. <div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a295542c539035871e7d07059bbbf1d60"> 113</a></span>&#160;<span class="preprocessor">#define ANDNS_IPV4 0</span></div>
  221. <div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a838733c0a29903c4454247ae53134a0e"> 114</a></span>&#160;<span class="preprocessor">#define ANDNS_IPV6 1</span></div>
  222. <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
  223. <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#acb4c3610fc4810a2e44f1f8554d7bffd">andns_compress</a>(<span class="keywordtype">char</span> *src,<span class="keywordtype">int</span> srclen);</div>
  224. <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="keywordtype">char</span>* <a class="code" href="../../da/d94/andns__lib_8h.html#ab37e95cc279a372002d8cca033fa3640">andns_uncompress</a>(<span class="keywordtype">char</span> *src,<span class="keywordtype">int</span> srclen,<span class="keywordtype">int</span> *dstlen) ;</div>
  225. <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#aa02481f0335a2ecf592bb3e0e8b7f622">a_hdr_u</a>(<span class="keywordtype">char</span> *buf,<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap);</div>
  226. <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a80ef74d55672d12e171882f884f92234">a_qst_u</a>(<span class="keywordtype">char</span> *buf,<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">int</span> limitlen);</div>
  227. <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a5ddeffd9e29677aa568ee674a2507d48">a_answ_u</a>(<span class="keywordtype">char</span> *buf,<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">int</span> limitlen);</div>
  228. <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a4d06dfd1b127ce60289c63809371c705">a_answs_u</a>(<span class="keywordtype">char</span> *buf,<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">int</span> limitlen);</div>
  229. <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a1741ef8f9940010d3f4f0a310f607973">a_u</a>(<span class="keywordtype">char</span> *buf,<span class="keywordtype">int</span> pktlen,<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> **app);</div>
  230. <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a03000f7fe91fa92a17b6553a7de95197">a_hdr_p</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">char</span> *buf);</div>
  231. <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a1e135c544b646743571d4ec449253de8">a_qst_p</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">char</span> *buf,<span class="keywordtype">int</span> limitlen);</div>
  232. <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a6eaa4af888ca2574e65551442145d1c9">a_answ_p</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a> *apd,<span class="keywordtype">char</span> *buf,<span class="keywordtype">int</span> limitlen);</div>
  233. <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a691d78584a8ae13fd55fb084d642989f">a_answs_p</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap,<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> limitlen);</div>
  234. <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/d94/andns__lib_8h.html#aa81f323a0d18821cb8b37b74cb89e56b">a_p</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap, <span class="keywordtype">char</span> *buf);</div>
  235. <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a>* <a class="code" href="../../da/d94/andns__lib_8h.html#a583d89a788cc10e486e750f39cd04c37">create_andns_pkt</a>(<span class="keywordtype">void</span>);</div>
  236. <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a>* <a class="code" href="../../da/d94/andns__lib_8h.html#a1342a1908a09c410638f53e3de482114">create_andns_pkt_data</a>(<span class="keywordtype">void</span>);</div>
  237. <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a>* <a class="code" href="../../da/d94/andns__lib_8h.html#a59841c5dcf628766466cbe6553f1d80b">andns_add_answ</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap);</div>
  238. <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d94/andns__lib_8h.html#a9b467f6edffa6791730a90fc1318146c">destroy_andns_pkt_data</a>(<a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a> *apd);</div>
  239. <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d94/andns__lib_8h.html#af907edbde8bd60a53714835fc76fc690">andns_del_answ</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap);</div>
  240. <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d94/andns__lib_8h.html#ab2b78fd0fecd54eb2cb4ba25aaa7499a">destroy_andns_pkt_datas</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap);</div>
  241. <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/d94/andns__lib_8h.html#ac221d30c29b9c3846c67c6c09511add4">destroy_andns_pkt</a>(<a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a> *ap);</div>
  242. <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div>
  243. <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ANDNS_LIB_H */</span><span class="preprocessor"></span></div>
  244. <div class="ttc" id="andns__lib_8h_html_a5ddeffd9e29677aa568ee674a2507d48"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a5ddeffd9e29677aa568ee674a2507d48">a_answ_u</a></div><div class="ttdeci">int a_answ_u(char *buf, andns_pkt *ap, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:186</div></div>
  245. <div class="ttc" id="structandns__pkt_html_a0f227d59958631836d932d04cb9ae403"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a0f227d59958631836d932d04cb9ae403">andns_pkt::ancount</a></div><div class="ttdeci">uint16_t ancount</div><div class="ttdef"><b>Definition:</b> andns_lib.h:72</div></div>
  246. <div class="ttc" id="andns__lib_8h_html_af907edbde8bd60a53714835fc76fc690"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#af907edbde8bd60a53714835fc76fc690">andns_del_answ</a></div><div class="ttdeci">void andns_del_answ(andns_pkt *ap)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:578</div></div>
  247. <div class="ttc" id="structandns__pkt__data_html_a233153d206df9f34c1c78213d64541af"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#a233153d206df9f34c1c78213d64541af">andns_pkt_data::m</a></div><div class="ttdeci">uint8_t m</div><div class="ttdef"><b>Definition:</b> andns_lib.h:47</div></div>
  248. <div class="ttc" id="structandns__pkt_html_ad473d1cd205071766b45b487b302172a"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#ad473d1cd205071766b45b487b302172a">andns_pkt::pkt_answ</a></div><div class="ttdeci">andns_pkt_data * pkt_answ</div><div class="ttdef"><b>Definition:</b> andns_lib.h:79</div></div>
  249. <div class="ttc" id="andns__lib_8h_html_aa02481f0335a2ecf592bb3e0e8b7f622"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#aa02481f0335a2ecf592bb3e0e8b7f622">a_hdr_u</a></div><div class="ttdeci">int a_hdr_u(char *buf, andns_pkt *ap)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:93</div></div>
  250. <div class="ttc" id="structandns__pkt_html_add2f3fc275e046a0dc749c2762ae4784"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#add2f3fc275e046a0dc749c2762ae4784">andns_pkt::id</a></div><div class="ttdeci">uint16_t id</div><div class="ttdef"><b>Definition:</b> andns_lib.h:66</div></div>
  251. <div class="ttc" id="andns__lib_8h_html_a6eaa4af888ca2574e65551442145d1c9"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a6eaa4af888ca2574e65551442145d1c9">a_answ_p</a></div><div class="ttdeci">int a_answ_p(andns_pkt *ap, andns_pkt_data *apd, char *buf, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:417</div></div>
  252. <div class="ttc" id="andns__lib_8h_html_a59841c5dcf628766466cbe6553f1d80b"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a59841c5dcf628766466cbe6553f1d80b">andns_add_answ</a></div><div class="ttdeci">andns_pkt_data * andns_add_answ(andns_pkt *ap)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:557</div></div>
  253. <div class="ttc" id="andns__lib_8h_html_ac221d30c29b9c3846c67c6c09511add4"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#ac221d30c29b9c3846c67c6c09511add4">destroy_andns_pkt</a></div><div class="ttdeci">void destroy_andns_pkt(andns_pkt *ap)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:604</div></div>
  254. <div class="ttc" id="andns__lib_8h_html_a9b467f6edffa6791730a90fc1318146c"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a9b467f6edffa6791730a90fc1318146c">destroy_andns_pkt_data</a></div><div class="ttdeci">void destroy_andns_pkt_data(andns_pkt_data *apd)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:572</div></div>
  255. <div class="ttc" id="andns__lib_8h_html_a289aea568de4a29a9e8579fa6acd414e"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a289aea568de4a29a9e8579fa6acd414e">andns_pkt</a></div><div class="ttdeci">struct andns_pkt andns_pkt</div></div>
  256. <div class="ttc" id="structandns__pkt__data_html_ab518f9c6ab56302c3654f18548a4ed5c"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#ab518f9c6ab56302c3654f18548a4ed5c">andns_pkt_data::rdata</a></div><div class="ttdeci">char * rdata</div><div class="ttdef"><b>Definition:</b> andns_lib.h:52</div></div>
  257. <div class="ttc" id="structandns__pkt_html_a169be62c541af405709f9dd486b3146a"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a169be62c541af405709f9dd486b3146a">andns_pkt::nk</a></div><div class="ttdeci">uint8_t nk</div><div class="ttdef"><b>Definition:</b> andns_lib.h:74</div></div>
  258. <div class="ttc" id="structandns__pkt__data_html_aaa4a624267df925bdfc073142269388b"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#aaa4a624267df925bdfc073142269388b">andns_pkt_data::next</a></div><div class="ttdeci">struct andns_pkt_data * next</div><div class="ttdef"><b>Definition:</b> andns_lib.h:53</div></div>
  259. <div class="ttc" id="andns__lib_8h_html_acb4c3610fc4810a2e44f1f8554d7bffd"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#acb4c3610fc4810a2e44f1f8554d7bffd">andns_compress</a></div><div class="ttdeci">int andns_compress(char *src, int srclen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:30</div></div>
  260. <div class="ttc" id="structandns__pkt_html_aaa5cb90431e164453ef7acf7c498c260"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#aaa5cb90431e164453ef7acf7c498c260">andns_pkt::qstlength</a></div><div class="ttdeci">uint16_t qstlength</div><div class="ttdef"><b>Definition:</b> andns_lib.h:77</div></div>
  261. <div class="ttc" id="structandns__pkt_html_a16afae2ed2b5e0a3a07453444efae0d6"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a16afae2ed2b5e0a3a07453444efae0d6">andns_pkt::rcode</a></div><div class="ttdeci">uint8_t rcode</div><div class="ttdef"><b>Definition:</b> andns_lib.h:75</div></div>
  262. <div class="ttc" id="andns__lib_8h_html_a4d06dfd1b127ce60289c63809371c705"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a4d06dfd1b127ce60289c63809371c705">a_answs_u</a></div><div class="ttdeci">int a_answs_u(char *buf, andns_pkt *ap, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:261</div></div>
  263. <div class="ttc" id="structandns__pkt__data_html_a878cf43a63889233c3fd84cf563204b2"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#a878cf43a63889233c3fd84cf563204b2">andns_pkt_data::service</a></div><div class="ttdeci">uint16_t service</div><div class="ttdef"><b>Definition:</b> andns_lib.h:51</div></div>
  264. <div class="ttc" id="structandns__pkt_html_a59810e0e3ee9df7b6729588f4ea6875c"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a59810e0e3ee9df7b6729588f4ea6875c">andns_pkt::ipv</a></div><div class="ttdeci">uint8_t ipv</div><div class="ttdef"><b>Definition:</b> andns_lib.h:73</div></div>
  265. <div class="ttc" id="andns__lib_8h_html_aa81f323a0d18821cb8b37b74cb89e56b"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#aa81f323a0d18821cb8b37b74cb89e56b">a_p</a></div><div class="ttdeci">int a_p(andns_pkt *ap, char *buf)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:504</div></div>
  266. <div class="ttc" id="andns__lib_8h_html_a1342a1908a09c410638f53e3de482114"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a1342a1908a09c410638f53e3de482114">create_andns_pkt_data</a></div><div class="ttdeci">andns_pkt_data * create_andns_pkt_data(void)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:550</div></div>
  267. <div class="ttc" id="structandns__pkt_html_a5ac4b37a54cbe1aecaf3e6e3f9936d3e"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a5ac4b37a54cbe1aecaf3e6e3f9936d3e">andns_pkt::r</a></div><div class="ttdeci">uint8_t r</div><div class="ttdef"><b>Definition:</b> andns_lib.h:67</div></div>
  268. <div class="ttc" id="andns__lib_8h_html_a03000f7fe91fa92a17b6553a7de95197"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a03000f7fe91fa92a17b6553a7de95197">a_hdr_p</a></div><div class="ttdeci">int a_hdr_p(andns_pkt *ap, char *buf)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:341</div></div>
  269. <div class="ttc" id="andns__lib_8h_html_a1741ef8f9940010d3f4f0a310f607973"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a1741ef8f9940010d3f4f0a310f607973">a_u</a></div><div class="ttdeci">int a_u(char *buf, int pktlen, andns_pkt **app)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:294</div></div>
  270. <div class="ttc" id="andns__lib_8h_html_a691d78584a8ae13fd55fb084d642989f"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a691d78584a8ae13fd55fb084d642989f">a_answs_p</a></div><div class="ttdeci">int a_answs_p(andns_pkt *ap, char *buf, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:479</div></div>
  271. <div class="ttc" id="structandns__pkt_html_a05c43f087134a3acfec69e4ae0f4fe95"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a05c43f087134a3acfec69e4ae0f4fe95">andns_pkt::service</a></div><div class="ttdeci">uint16_t service</div><div class="ttdef"><b>Definition:</b> andns_lib.h:76</div></div>
  272. <div class="ttc" id="andns__lib_8h_html_ab37e95cc279a372002d8cca033fa3640"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#ab37e95cc279a372002d8cca033fa3640">andns_uncompress</a></div><div class="ttdeci">char * andns_uncompress(char *src, int srclen, int *dstlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:57</div></div>
  273. <div class="ttc" id="andns__lib_8h_html_a1e135c544b646743571d4ec449253de8"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a1e135c544b646743571d4ec449253de8">a_qst_p</a></div><div class="ttdeci">int a_qst_p(andns_pkt *ap, char *buf, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:370</div></div>
  274. <div class="ttc" id="structandns__pkt_html_afca8c06599ff5ae268465434c015cd89"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#afca8c06599ff5ae268465434c015cd89">andns_pkt::qtype</a></div><div class="ttdeci">uint8_t qtype</div><div class="ttdef"><b>Definition:</b> andns_lib.h:71</div></div>
  275. <div class="ttc" id="structandns__pkt_html_a1064393c232715cbefe850d6e8ee1988"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a1064393c232715cbefe850d6e8ee1988">andns_pkt::p</a></div><div class="ttdeci">uint8_t p</div><div class="ttdef"><b>Definition:</b> andns_lib.h:69</div></div>
  276. <div class="ttc" id="structandns__pkt__data_html"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a></div><div class="ttdef"><b>Definition:</b> andns_lib.h:45</div></div>
  277. <div class="ttc" id="structandns__pkt__data_html_a4221045ab5bbfd653dcdc5be7aae413f"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#a4221045ab5bbfd653dcdc5be7aae413f">andns_pkt_data::rdlength</a></div><div class="ttdeci">uint16_t rdlength</div><div class="ttdef"><b>Definition:</b> andns_lib.h:50</div></div>
  278. <div class="ttc" id="structandns__pkt__data_html_a43665f74fe37e71cf9c16c1ab3f027c6"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#a43665f74fe37e71cf9c16c1ab3f027c6">andns_pkt_data::wg</a></div><div class="ttdeci">uint8_t wg</div><div class="ttdef"><b>Definition:</b> andns_lib.h:48</div></div>
  279. <div class="ttc" id="structandns__pkt_html_a14e2aab0d2ec73eb98c13df1e71b1cd6"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#a14e2aab0d2ec73eb98c13df1e71b1cd6">andns_pkt::z</a></div><div class="ttdeci">uint8_t z</div><div class="ttdef"><b>Definition:</b> andns_lib.h:70</div></div>
  280. <div class="ttc" id="structandns__pkt_html_af10e798e4b992d52cecab31af88765ba"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#af10e798e4b992d52cecab31af88765ba">andns_pkt::qr</a></div><div class="ttdeci">uint8_t qr</div><div class="ttdef"><b>Definition:</b> andns_lib.h:68</div></div>
  281. <div class="ttc" id="andns__lib_8h_html_a80ef74d55672d12e171882f884f92234"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a80ef74d55672d12e171882f884f92234">a_qst_u</a></div><div class="ttdeci">int a_qst_u(char *buf, andns_pkt *ap, int limitlen)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:129</div></div>
  282. <div class="ttc" id="structandns__pkt_html_ae6afbb26d11009f2a6e770e3ddf21a58"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html#ae6afbb26d11009f2a6e770e3ddf21a58">andns_pkt::qstdata</a></div><div class="ttdeci">char * qstdata</div><div class="ttdef"><b>Definition:</b> andns_lib.h:78</div></div>
  283. <div class="ttc" id="structandns__pkt__data_html_a5e7c195b47f8ae92687e33b55801a78b"><div class="ttname"><a href="../../d0/d50/structandns__pkt__data.html#a5e7c195b47f8ae92687e33b55801a78b">andns_pkt_data::prio</a></div><div class="ttdeci">uint8_t prio</div><div class="ttdef"><b>Definition:</b> andns_lib.h:49</div></div>
  284. <div class="ttc" id="andns__lib_8h_html_ab2b78fd0fecd54eb2cb4ba25aaa7499a"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#ab2b78fd0fecd54eb2cb4ba25aaa7499a">destroy_andns_pkt_datas</a></div><div class="ttdeci">void destroy_andns_pkt_datas(andns_pkt *ap)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:594</div></div>
  285. <div class="ttc" id="andns__lib_8h_html_a583d89a788cc10e486e750f39cd04c37"><div class="ttname"><a href="../../da/d94/andns__lib_8h.html#a583d89a788cc10e486e750f39cd04c37">create_andns_pkt</a></div><div class="ttdeci">andns_pkt * create_andns_pkt(void)</div><div class="ttdef"><b>Definition:</b> andns_lib.c:542</div></div>
  286. <div class="ttc" id="structandns__pkt_html"><div class="ttname"><a href="../../d9/d5a/structandns__pkt.html">andns_pkt</a></div><div class="ttdef"><b>Definition:</b> andns_lib.h:64</div></div>
  287. </div><!-- fragment --></div><!-- contents -->
  288. </div><!-- doc-content -->
  289. <!-- start footer part -->
  290. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  291. <ul>
  292. <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../da/d94/andns__lib_8h.html">andns_lib.h</a></li>
  293. <li class="footer">Generated on Wed Feb 19 2014 16:28:39 for The Netsukuku Project by
  294. <a href="http://www.doxygen.org/index.html">
  295. <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  296. </ul>
  297. </div>
  298. </body>
  299. </html>