mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
f97a6e4a6f
missvaleska@missvaleska-GA-970A-D3:~/Documents/Netsukuku/NtkDoc/html$ git status# On branch gh-pages Doxygen generated Documentation
301 lines
52 KiB
HTML
301 lines
52 KiB
HTML
<!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"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.6"/>
|
|
<title>The Netsukuku Project: src/andns_lib.h Source File</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../jquery.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../resize.js"></script>
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</script>
|
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">The Netsukuku Project
|
|
 <span id="projectnumber">0.0.9</span>
|
|
</div>
|
|
<div id="projectbrief">An Alternative routing method</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.6 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="../../index.html"><span>Main Page</span></a></li>
|
|
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="../../search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="../../files.html"><span>File List</span></a></li>
|
|
<li><a href="../../globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){initNavTree('da/d94/andns__lib_8h_source.html','../../');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">andns_lib.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<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>  <span class="comment">/**************************************</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * AUTHOR: Federico Tomassini *</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) Federico Tomassini *</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Contact effetom@gmail.com *</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> ***********************************************</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> ******* BEGIN 3/2006 ********</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">*************************************************************************</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* *</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* This program is free software; you can redistribute it and/or modify *</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* it under the terms of the GNU General Public License as published by *</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* the Free Software Foundation; either version 2 of the License, or *</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* (at your option) any later version. *</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* *</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* This program is distributed in the hope that it will be useful, *</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of *</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">* GNU General Public License for more details. *</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">* *</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">************************************************************************/</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef ANDNS_LIB_H</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define ANDNS_LIB_H</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <string.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <stdint.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <sys/types.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#accee2fec1e0bd3a1e0b79205b71a37f3"> 28</a></span> <span class="preprocessor">#define ANDNS_MAX_QUESTION_LEN 263 </span><span class="comment">/* TODO */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#af6abd671e7c02d18c573e6d9bc7eff01"> 29</a></span> <span class="preprocessor">#define ANDNS_MAX_ANSWER_LEN 516</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a27c1bba5cec7f38f1d08ca46b89ed6cc"> 30</a></span> <span class="preprocessor">#define ANDNS_MAX_ANSWERS_NUM 256</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5123f9e9dafe6d1c566fc03365f543f0"> 31</a></span> <span class="preprocessor">#define ANDNS_MAX_PK_LEN ANDNS_MAX_QUESTION_LEN+\</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"> ANDNS_MAX_ANSWERS_NUM*ANDNS_MAX_ANSWER_LEN</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac338df774a09d5fa4fa9f4ab8e73106d"> 34</a></span> <span class="preprocessor">#define ANDNS_MAX_DATA_LEN 512</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a29e675c7a05a4301729790f9235d4cf0"> 35</a></span> <span class="preprocessor">#define ANDNS_MAX_QST_LEN 512</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aac2f525f4aeaeb97779b751b548a215d"> 36</a></span> <span class="preprocessor">#define ANNDS_DNS_MAZ_QST_LEN 255</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5915fae57d9aad5fc3cdbf8981377349"> 37</a></span> <span class="preprocessor">#define ANDNS_MAX_ANSW_IP_LEN 20</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a9530adc60bd3f0ee2cd169a7d09e40c1"> 38</a></span> <span class="preprocessor">#define ANDNS_MAX_ANSW_H_LEN 516</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7e28e77a514cd14cb38a7cf8dd3e1c4c"> 40</a></span> <span class="preprocessor">#define ANDNS_HASH_H 16</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a173694ac8826a2acbb63cf6f30507c48"> 42</a></span> <span class="preprocessor">#define ANDNS_COMPR_LEVEL Z_BEST_COMPRESSION</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a102a5fe9ec9149e304abb81fcbe350a3"> 43</a></span> <span class="preprocessor">#define ANDNS_COMPR_THRESHOLD 1000</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html"> 45</a></span> <span class="keyword">struct </span><a class="code" href="../../d0/d50/structandns__pkt__data.html">andns_pkt_data</a></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a233153d206df9f34c1c78213d64541af"> 47</a></span>  uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a233153d206df9f34c1c78213d64541af">m</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a43665f74fe37e71cf9c16c1ab3f027c6"> 48</a></span>  uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a43665f74fe37e71cf9c16c1ab3f027c6">wg</a>;</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a5e7c195b47f8ae92687e33b55801a78b"> 49</a></span>  uint8_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a5e7c195b47f8ae92687e33b55801a78b">prio</a>;</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a4221045ab5bbfd653dcdc5be7aae413f"> 50</a></span>  uint16_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a4221045ab5bbfd653dcdc5be7aae413f">rdlength</a>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#a878cf43a63889233c3fd84cf563204b2"> 51</a></span>  uint16_t <a class="code" href="../../d0/d50/structandns__pkt__data.html#a878cf43a63889233c3fd84cf563204b2">service</a>;</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#ab518f9c6ab56302c3654f18548a4ed5c"> 52</a></span>  <span class="keywordtype">char</span> *<a class="code" href="../../d0/d50/structandns__pkt__data.html#ab518f9c6ab56302c3654f18548a4ed5c">rdata</a>;</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d0/d50/structandns__pkt__data.html#aaa4a624267df925bdfc073142269388b"> 53</a></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#aaa4a624267df925bdfc073142269388b">next</a>;</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> };</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a962a49bbb7907afd223604edfeec7f1d"> 55</a></span> <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>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ab66e1b48f3e56a2fa3cb52ce081165da"> 56</a></span> <span class="preprocessor">#define ANDNS_PKT_DATA_SZ sizeof(andns_pkt_data)</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aa665bac79894c56938eab3485371c721"> 57</a></span> <span class="preprocessor">#define APD_ALIGN(apd) (apd)->rdata=(char*)xmalloc((apd)->rdlength+1); \</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> memset((apd)->rdata,0,(apd)->rdlength+1)</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#abb4e9fffbdcb232c0a1a9555300fdb9a"> 59</a></span> <span class="preprocessor">#define APD_MAIN_IP 1<<0</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac4c101f3dc9dace2014faf67251dc4b1"> 60</a></span> <span class="preprocessor">#define APD_IP 1<<1</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a6acdca91851c6f277dea6a8ec5660faa"> 61</a></span> <span class="preprocessor">#define APD_TCP 1<<2</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a9b07bcfa24a6d1a1d3b77175ce6904aa"> 62</a></span> <span class="preprocessor">#define APD_UDP 1<<3</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html"> 64</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d9/d5a/structandns__pkt.html">andns_pkt</a></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> {</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#add2f3fc275e046a0dc749c2762ae4784"> 66</a></span>  uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#add2f3fc275e046a0dc749c2762ae4784">id</a>;</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a5ac4b37a54cbe1aecaf3e6e3f9936d3e"> 67</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a5ac4b37a54cbe1aecaf3e6e3f9936d3e">r</a>;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#af10e798e4b992d52cecab31af88765ba"> 68</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#af10e798e4b992d52cecab31af88765ba">qr</a>;</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a1064393c232715cbefe850d6e8ee1988"> 69</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a1064393c232715cbefe850d6e8ee1988">p</a>;</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a14e2aab0d2ec73eb98c13df1e71b1cd6"> 70</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a14e2aab0d2ec73eb98c13df1e71b1cd6">z</a>;</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#afca8c06599ff5ae268465434c015cd89"> 71</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#afca8c06599ff5ae268465434c015cd89">qtype</a>;</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a0f227d59958631836d932d04cb9ae403"> 72</a></span>  uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a0f227d59958631836d932d04cb9ae403">ancount</a>;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a59810e0e3ee9df7b6729588f4ea6875c"> 73</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a59810e0e3ee9df7b6729588f4ea6875c">ipv</a>;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a169be62c541af405709f9dd486b3146a"> 74</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a169be62c541af405709f9dd486b3146a">nk</a>;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a16afae2ed2b5e0a3a07453444efae0d6"> 75</a></span>  uint8_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a16afae2ed2b5e0a3a07453444efae0d6">rcode</a>;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#a05c43f087134a3acfec69e4ae0f4fe95"> 76</a></span>  uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#a05c43f087134a3acfec69e4ae0f4fe95">service</a>; </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#aaa5cb90431e164453ef7acf7c498c260"> 77</a></span>  uint16_t <a class="code" href="../../d9/d5a/structandns__pkt.html#aaa5cb90431e164453ef7acf7c498c260">qstlength</a>;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#ae6afbb26d11009f2a6e770e3ddf21a58"> 78</a></span>  <span class="keywordtype">char</span> *<a class="code" href="../../d9/d5a/structandns__pkt.html#ae6afbb26d11009f2a6e770e3ddf21a58">qstdata</a>;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d9/d5a/structandns__pkt.html#ad473d1cd205071766b45b487b302172a"> 79</a></span>  <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>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> } <a class="code" href="../../da/d94/andns__lib_8h.html#a289aea568de4a29a9e8579fa6acd414e">andns_pkt</a>;</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a94d7b24e16fe3e769d501420b115dc9e"> 81</a></span> <span class="preprocessor">#define ANDNS_PKT_SZ sizeof(andns_pkt)</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ac0d09e0c1a985048593e4d15ac7e1113"> 82</a></span> <span class="preprocessor">#define AP_ALIGN(ap) (ap)->qstdata=(char*)xmalloc((ap)->qstlength)</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a2c4a306ee239cda5f968384068ceacd7"> 84</a></span> <span class="preprocessor">#define ANDNS_HDR_SZ 4</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a790be2c9f642b130e276557ba75717ff"> 85</a></span> <span class="preprocessor">#define ANDNS_HDR_Z 4</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#afe2fc071f4e245291180abc499c702d2"> 86</a></span> <span class="preprocessor">#define ANDNS_MAX_SZ ANDNS_HDR_SZ+ANDNS_MAX_QST_LEN+ANDNS_MAX_QST_LEN+4</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a608b77fdfa77619fdbefa03d752bba82"> 89</a></span> <span class="preprocessor">#define ANDNS_SET_RCODE(s,c) *((s)+3)=(((*((s)+3))&0xf0)|c)</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#abdf6311b13091efb68769903c92576b1"> 90</a></span> <span class="preprocessor">#define ANDNS_SET_QR(s) (*((s)+2))|=0x80</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#ae67b4156fe399bd8f5250c31c7da5d45"> 91</a></span> <span class="preprocessor">#define ANDNS_SET_ANCOUNT(s,n) *(s+2)|=((n)>>1);*(s+3)|=((n)<<7);</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a3a2c206ad64cf0a0e38d8df605a1ccd4"> 92</a></span> <span class="preprocessor">#define ANDNS_SET_Z(s) *(s+3)|=0x20;</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a0746430750e9536d848431d5861428a4"> 93</a></span> <span class="preprocessor">#define ANDNS_UNSET_Z(s) *(s+3)&=0xdf;</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment">/* ANDNS PROTO-TYPE */</span></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a4cf6e579ba44429f1de0c558d1b5d417"> 96</a></span> <span class="preprocessor">#define ANDNS_PROTO_TCP 0</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a0e0722cdcf97922db8c42e91e1c34237"> 97</a></span> <span class="preprocessor">#define ANDNS_PROTO_UDP 1</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment">/* ANDNS QUERY-TYPE */</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a352aba0ec4846048c2c763fb7a51f779"> 99</a></span> <span class="preprocessor">#define AT_A 0 </span><span class="comment">/* h->ip */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7443dd2f51a6005ccd8c78f216702ac4"> 100</a></span> <span class="preprocessor">#define AT_PTR 1 </span><span class="comment">/* ip->h */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aa50990d194707c048a1c1d2b04583e6d"> 101</a></span> <span class="preprocessor">#define AT_G 2 </span><span class="comment">/* global */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment">/* RCODES: The rcodes are portable between ANDNS and DNS */</span></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#af202351a0134f79b7a0f12bec3572000"> 103</a></span> <span class="preprocessor">#define ANDNS_RCODE_NOERR 0 </span><span class="comment">/* No error */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a3287360f3872270d08712c725fb95c04"> 104</a></span> <span class="preprocessor">#define ANDNS_RCODE_EINTRPRT 1 </span><span class="comment">/* Intepret error */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aac3504b838178621863fb51d440c09b1"> 105</a></span> <span class="preprocessor">#define ANDNS_RCODE_ESRVFAIL 2 </span><span class="comment">/* Server failure */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#aae6a7845c9bab390846a53e5692ead13"> 106</a></span> <span class="preprocessor">#define ANDNS_RCODE_ENSDMN 3 </span><span class="comment">/* No such domain */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a7773e0f33bf2fdea1d50c90c25f7d08b"> 107</a></span> <span class="preprocessor">#define ANDNS_RCODE_ENIMPL 4 </span><span class="comment">/* Not implemented */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a36c8aadaf4affb6f0e3afbc657bf4af9"> 108</a></span> <span class="preprocessor">#define ANDNS_RCODE_ERFSD 5 </span><span class="comment">/* Refused */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">/* REALMS TO SEARCH */</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a5829c83ba0c4a6814f54033dc47e8c4b"> 110</a></span> <span class="preprocessor">#define NTK_REALM 1</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a20fef4be241fc42dcc2acba2a567cd95"> 111</a></span> <span class="preprocessor">#define INET_REALM 2</span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">/* IP VERSION */</span></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a295542c539035871e7d07059bbbf1d60"> 113</a></span> <span class="preprocessor">#define ANDNS_IPV4 0</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../da/d94/andns__lib_8h.html#a838733c0a29903c4454247ae53134a0e"> 114</a></span> <span class="preprocessor">#define ANDNS_IPV6 1</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <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>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <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>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <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>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <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>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <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>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <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>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <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>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <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>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <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>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <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>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <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>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <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>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <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>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <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>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <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>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <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>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <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>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <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>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <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>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#endif </span><span class="comment">/* ANDNS_LIB_H */</span><span class="preprocessor"></span></div>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<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>
|
|
<li class="footer">Generated on Wed Feb 19 2014 14:19:07 for The Netsukuku Project by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|