2014-02-19 23:45:00 +00:00
<!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.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;" >
2014-02-20 00:30:40 +00:00
< td id = "projectlogo" > < img alt = "Logo" src = "../../Logo_netsukuku.jpg" / > < / td >
2014-02-19 23:45:00 +00:00
< 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('dd/dd9/andns_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.h< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< a href = "../../dd/dd9/andns_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 >   < span class = "preprocessor" > #ifndef ANDNS_H< / span > < / div >
< div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > 21< / span >   < span class = "preprocessor" > #define ANDNS_H< / span > < / div >
< div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > 22< / span >   < / div >
< div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   < span class = "preprocessor" > #include < stdio.h> < / span > < / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > 24< / span >   < span class = "preprocessor" > #include < sys/socket.h> < / span > < / div >
< div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > 25< / span >   < span class = "preprocessor" > #include < netdb.h> < / span > < / div >
< div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > 26< / span >   < span class = "preprocessor" > #include " < a class = "code" href = "../../df/d92/dnslib_8h.html" > dnslib.h< / a > " < / span > < / div >
< div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   < span class = "preprocessor" > #include " < a class = "code" href = "../../da/d94/andns__lib_8h.html" > andns_lib.h< / a > " < / span > < / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   < span class = "preprocessor" > #include " < a class = "code" href = "../../d6/d4a/inet_8h.html" > inet.h< / a > " < / span > < / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   < / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#afb945b9ea115da5e949e13cc99da86b1" > 30< / a > < / span >   < span class = "preprocessor" > #define ANDNS_TIMEOUT 15< / span > < / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   < / div >
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a9ffd051a017f698fcf815adeae6cde69" > 32< / a > < / span >   < span class = "preprocessor" > #define MAXNSSERVERS 3< / span > < / div >
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a2eb68ada0356c733bf3842a6ab5a4529" > 33< / a > < / span >   < span class = "preprocessor" > #define DNS_REPLY_TIMEOUT 10 < / span > < span class = "comment" > /* seconds */< / span > < span class = "preprocessor" > < / span > < / div >
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > 34< / span >   < / div >
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ab1d3f5c08428c20521a92ca2fa20f46c" > 35< / a > < / span >   < span class = "preprocessor" > #define DNS_PORT 53< / span > < / div >
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#af7f98e1d3ce09c1628ba3334b0e32829" > 36< / a > < / span >   < span class = "preprocessor" > #define DNS_PORT_STR " 53" < / span > < / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > 37< / span >   < / div >
< div class = "line" > < a name = "l00038" > < / a > < span class = "lineno" > 38< / span >   < span class = "comment" > /* PREFIX TO QUERY THE INET REALM */< / span > < / div >
< div class = "line" > < a name = "l00039" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ae3120483f02820a26dd66e4c4fdb3d56" > 39< / a > < / span >   < span class = "preprocessor" > #define INET_REALM_PREFIX " .INT" < / span > < / div >
< div class = "line" > < a name = "l00040" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#af677d7083f12ffbb35d6e67a1c9ef405" > 40< / a > < / span >   < span class = "preprocessor" > #define NTK_REALM_PREFIX " .NTK" < / span > < / div >
< div class = "line" > < a name = "l00041" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a43e367d97240e6669d5c5d0012c95b3c" > 41< / a > < / span >   < span class = "preprocessor" > #define PTR_INET_REALM_PREFIX " INT." < / span > < / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a451f4b4d57de0e725ee39f93277e64f9" > 42< / a > < / span >   < span class = "preprocessor" > #define PTR_NTK_REALM_PREFIX " NTK." < / span > < / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a7331067075b99b331e36fb7ac7db09b8" > 43< / a > < / span >   < span class = "preprocessor" > #define REALM_PREFIX_LEN 4< / 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 = "../../dd/dd9/andns_8h.html#a957880db3b2497cbe16f1f69129a497c" > 45< / a > < / span >   < span class = "preprocessor" > #define DNS_PROTO 0< / span > < / div >
< div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ace8ba5259fa2ff091aa3aedfbb4e2cb9" > 46< / a > < / span >   < span class = "preprocessor" > #define ANDNS_PROTO 1< / span > < / div >
< div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   < / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a2886d25d5d94720331b4cf39cb81c37e" > 48< / a > < / span >   < span class = "preprocessor" > #define NK_DNS 0< / span > < / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a1551800f2e195346f530995a7effd624" > 49< / a > < / span >   < span class = "preprocessor" > #define NK_NTK 1< / span > < / div >
< div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ad3fbec33ed22683ae6ae968e62debe0b" > 50< / a > < / span >   < span class = "preprocessor" > #define NK_INET 2< / span > < / div >
< div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a3a51d3bacf2ff13ce7f94f7690e829ee" > 51< / a > < / span >   < span class = "preprocessor" > #define GET_NK_BIT(msg) (*((msg+3))> > 4)& 0x03< / span > < / div >
< div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < / div >
< div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a204f703d440cc58988ec2ba09f79d9c9" > 53< / a > < / span >   < span class = "preprocessor" > #define RCODE_NOERR 0 < / span > < / div >
< div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#aa6d49814f998dc5f8d420a14a8f9bd21" > 54< / a > < / span >   < span class = "preprocessor" > #define RCODE_EINTRPRT 1< / span > < / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ab43abcb5638319b886fee639a99d20a1" > 55< / a > < / span >   < span class = "preprocessor" > #define RCODE_ESRVFAIL 2< / span > < / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a53851c693e3513509bb187774f26db8f" > 56< / a > < / span >   < span class = "preprocessor" > #define RCODE_ENSDMN 3< / span > < / div >
< div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#ae7bf34a4b69a4b7c61b5b3b1352b743c" > 57< / a > < / span >   < span class = "preprocessor" > #define RCODE_ENIMPL 4< / span > < / div >
< div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > < a class = "line" href = "../../dd/dd9/andns_8h.html#a4b48cbaf0656f6ddfb7bdd3375eb33e3" > 58< / a > < / span >   < span class = "preprocessor" > #define RCODE_ERFSD 5< / span > < / div >
< div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   < / div >
< div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > 60< / span >   < / div >
< div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   < / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   < span class = "comment" > /* FUNCTIONS */< / 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" > 64< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a06279c082d2dfb4436b0b575ee0bf485" > store_ns< / a > (< span class = "keywordtype" > char< / span > *ns);< / div >
< div class = "line" > < a name = "l00065" > < / a > < span class = "lineno" > 65< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a412c450840e3bb78ac14b32b3db878a8" > collect_resolv_conf< / a > (< span class = "keywordtype" > char< / span > *resolve_conf);< / div >
< div class = "line" > < a name = "l00066" > < / a > < span class = "lineno" > 66< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a14f73f295437c3ab586d2f19cf20799f" > reset_andns_ns< / a > (< span class = "keywordtype" > void< / span > );< / div >
< div class = "line" > < a name = "l00067" > < / a > < span class = "lineno" > 67< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a5a4d6d7f4f8ffb407a416f1bab193258" > andns_init< / a > (< span class = "keywordtype" > int< / span > restricted, < span class = "keywordtype" > char< / span > *resolv_conf,< span class = "keywordtype" > int< / span > < a class = "code" href = "../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc" > family< / a > );< / div >
< div class = "line" > < a name = "l00068" > < / a > < span class = "lineno" > 68< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a7d0899aadc62060e73c4ad5745dbfaad" > andns_close< / a > (< span class = "keywordtype" > void< / span > );< / div >
< div class = "line" > < a name = "l00069" > < / a > < span class = "lineno" > 69< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a65c36ebb80b180a09b9a78c73ee5c106" > ns_general_send< / a > (< span class = "keywordtype" > char< / span > *msg,< span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > *answer,< span class = "keywordtype" > int< / span > anslen);< / div >
< div class = "line" > < a name = "l00070" > < / a > < span class = "lineno" > 70< / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a4f773865e30cee5adfced0cd497c64e9" > dpktacpy< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *dst,< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *src,< span class = "keyword" > const< / span > < span class = "keywordtype" > char< / span > *prefix);< / div >
< div class = "line" > < a name = "l00071" > < / a > < span class = "lineno" > 71< / span >   < a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > * < a class = "code" href = "../../dd/dd9/andns_8h.html#a16cafd9f581c898639a72d2ec78a42a7" > dpktcpy< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *src,< span class = "keyword" > const< / span > < span class = "keywordtype" > char< / span > *prefix);< / div >
< div class = "line" > < a name = "l00072" > < / a > < span class = "lineno" > 72< / span >   < span class = "keywordtype" > char< / span > * < a class = "code" href = "../../dd/dd9/andns_8h.html#ab15133eaae804d339f84d9c759c0697e" > rm_realm_prefix< / a > (< span class = "keywordtype" > char< / span > *from,< span class = "keywordtype" > char< / span > *dst,< span class = "keywordtype" > int< / span > < a class = "code" href = "../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26" > type< / a > );< / div >
< div class = "line" > < a name = "l00073" > < / a > < span class = "lineno" > 73< / span >   < a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > * < a class = "code" href = "../../dd/dd9/andns_8h.html#a6b05a164ac280146566ad4b912845951" > dpktcpy_rm_pref< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *src);< / div >
< div class = "line" > < a name = "l00074" > < / a > < span class = "lineno" > 74< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#ad2d760371a7d8f72ee021dcf12997c2d" > andns_gethostbyname< / a > (< span class = "keywordtype" > char< / span > *hname, < a class = "code" href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > *ip);< / div >
< div class = "line" > < a name = "l00075" > < / a > < span class = "lineno" > 75< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a1dc287a0b8b0db15f31309ea0cb8e383" > andns_realm< / a > (< a class = "code" href = "../../d6/d40/structdns__pkt__qst.html" > dns_pkt_qst< / a > *dpq,< span class = "keywordtype" > int< / span > *prefixed);< / div >
< div class = "line" > < a name = "l00076" > < / a > < span class = "lineno" > 76< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#ab43667541accf07092016e32181edf94" > is_prefixed< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *dp);< / div >
< div class = "line" > < a name = "l00077" > < / a > < span class = "lineno" > 77< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#aae58fed9c96a1eb5a5411c76510ba3ac" > dns_forward< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *dp,< span class = "keywordtype" > char< / span > *msg,< span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > * answer);< / div >
< div class = "line" > < a name = "l00078" > < / a > < span class = "lineno" > 78< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a81431a7e5716758c3bbefd17f8e68898" > inet_rslv< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *dp,< span class = "keywordtype" > char< / span > *msg,< span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > *answer);< / div >
< div class = "line" > < a name = "l00079" > < / a > < span class = "lineno" > 79< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a77c1322dbf52a1bacabe97028c9ce8d2" > nk_rslv< / a > (< a class = "code" href = "../../d9/d5a/structandns__pkt.html" > andns_pkt< / a > *ap,< span class = "keywordtype" > char< / span > *msg,< span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > *answer);< / div >
< div class = "line" > < a name = "l00080" > < / a > < span class = "lineno" > 80< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a21a8f0e04e19b66f878b3d4536c685ca" > qtype_a_to_d< / a > (< a class = "code" href = "../../d9/d5a/structandns__pkt.html" > andns_pkt< / a > *ap);< / div >
< div class = "line" > < a name = "l00081" > < / a > < span class = "lineno" > 81< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#ace63c5b658eb33f8b5076fa0506e8afb" > apqsttodpqst< / a > (< a class = "code" href = "../../d9/d5a/structandns__pkt.html" > andns_pkt< / a > *ap,< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > **dpsrc);< / div >
< div class = "line" > < a name = "l00082" > < / a > < span class = "lineno" > 82< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a1220da16c538185a3258cedab47c254a" > dpanswtoapansw< / a > (< a class = "code" href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > *dp,< a class = "code" href = "../../d9/d5a/structandns__pkt.html" > andns_pkt< / a > *ap);< / div >
< div class = "line" > < a name = "l00083" > < / a > < span class = "lineno" > 83< / span >   < span class = "keywordtype" > int< / span > < a class = "code" href = "../../dd/dd9/andns_8h.html#a36956c4fc77c5a1b3dfcda3cc0a9051e" > nk_forward< / a > (< a class = "code" href = "../../d9/d5a/structandns__pkt.html" > andns_pkt< / a > *ap,< span class = "keywordtype" > char< / span > *msg,< span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > *answer);< / div >
< div class = "line" > < a name = "l00084" > < / a > < span class = "lineno" > 84< / span >   < span class = "keywordtype" > char< / span > *< a class = "code" href = "../../dd/dd9/andns_8h.html#ad55d591cf7a444daa6b9cea7f8ae29bc" > andns_rslv< / a > (< span class = "keywordtype" > char< / span > *msg, < span class = "keywordtype" > int< / span > msglen,< span class = "keywordtype" > char< / span > *answer, < span class = "keywordtype" > int< / span > *answ_len);< / div >
< div class = "line" > < a name = "l00085" > < / a > < span class = "lineno" > 85< / span >   < / div >
< div class = "line" > < a name = "l00086" > < / a > < span class = "lineno" > 86< / span >   < span class = "preprocessor" > #endif < / span > < span class = "comment" > /* ANDNS_H */< / span > < span class = "preprocessor" > < / span > < / div >
< div class = "ttc" id = "andns_8h_html_a1220da16c538185a3258cedab47c254a" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a1220da16c538185a3258cedab47c254a" > dpanswtoapansw< / a > < / div > < div class = "ttdeci" > int dpanswtoapansw(dns_pkt *dp, andns_pkt *ap)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:496< / div > < / div >
< div class = "ttc" id = "andns_8h_html_ace63c5b658eb33f8b5076fa0506e8afb" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#ace63c5b658eb33f8b5076fa0506e8afb" > apqsttodpqst< / a > < / div > < div class = "ttdeci" > int apqsttodpqst(andns_pkt *ap, dns_pkt **dpsrc)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:440< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a412c450840e3bb78ac14b32b3db878a8" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a412c450840e3bb78ac14b32b3db878a8" > collect_resolv_conf< / a > < / div > < div class = "ttdeci" > int collect_resolv_conf(char *resolve_conf)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:121< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a21a8f0e04e19b66f878b3d4536c685ca" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a21a8f0e04e19b66f878b3d4536c685ca" > qtype_a_to_d< / a > < / div > < div class = "ttdeci" > int qtype_a_to_d(andns_pkt *ap)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:424< / div > < / div >
< div class = "ttc" id = "andns_8h_html_ab43667541accf07092016e32181edf94" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#ab43667541accf07092016e32181edf94" > is_prefixed< / a > < / div > < div class = "ttdeci" > int is_prefixed(dns_pkt *dp)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:412< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a14f73f295437c3ab586d2f19cf20799f" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a14f73f295437c3ab586d2f19cf20799f" > reset_andns_ns< / a > < / div > < div class = "ttdeci" > void reset_andns_ns(void)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:159< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a5a4d6d7f4f8ffb407a416f1bab193258" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a5a4d6d7f4f8ffb407a416f1bab193258" > andns_init< / a > < / div > < div class = "ttdeci" > int andns_init(int restricted, char *resolv_conf, int family)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:175< / div > < / div >
< div class = "ttc" id = "structdns__pkt__qst_html" > < div class = "ttname" > < a href = "../../d6/d40/structdns__pkt__qst.html" > dns_pkt_qst< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > dnslib.h:89< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a7d0899aadc62060e73c4ad5745dbfaad" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a7d0899aadc62060e73c4ad5745dbfaad" > andns_close< / a > < / div > < div class = "ttdeci" > void andns_close(void)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:228< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a36956c4fc77c5a1b3dfcda3cc0a9051e" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a36956c4fc77c5a1b3dfcda3cc0a9051e" > nk_forward< / a > < / div > < div class = "ttdeci" > int nk_forward(andns_pkt *ap, char *msg, int msglen, char *answer)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:851< / div > < / div >
< div class = "ttc" id = "structinet__prefix_html" > < div class = "ttname" > < a href = "../../da/d1d/structinet__prefix.html" > inet_prefix< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > inet.h:73< / div > < / div >
< div class = "ttc" id = "krnl__route_8c_html_ac765329451135abec74c45e1897abf26" > < div class = "ttname" > < a href = "../../d8/d91/krnl__route_8c.html#ac765329451135abec74c45e1897abf26" > type< / a > < / div > < div class = "ttdeci" > int type< / div > < div class = "ttdef" > < b > Definition:< / b > krnl_route.c:49< / div > < / div >
< div class = "ttc" id = "dnslib_8h_html" > < div class = "ttname" > < a href = "../../df/d92/dnslib_8h.html" > dnslib.h< / a > < / div > < / div >
< div class = "ttc" id = "andns_8h_html_a16cafd9f581c898639a72d2ec78a42a7" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a16cafd9f581c898639a72d2ec78a42a7" > dpktcpy< / a > < / div > < div class = "ttdeci" > dns_pkt * dpktcpy(dns_pkt *src, const char *prefix)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:304< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a06279c082d2dfb4436b0b575ee0bf485" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a06279c082d2dfb4436b0b575ee0bf485" > store_ns< / a > < / div > < div class = "ttdeci" > int store_ns(char *ns)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:96< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a4f773865e30cee5adfced0cd497c64e9" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a4f773865e30cee5adfced0cd497c64e9" > dpktacpy< / a > < / div > < div class = "ttdeci" > void dpktacpy(dns_pkt *dst, dns_pkt *src, const char *prefix)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:257< / div > < / div >
< div class = "ttc" id = "andns_8h_html_ab15133eaae804d339f84d9c759c0697e" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#ab15133eaae804d339f84d9c759c0697e" > rm_realm_prefix< / a > < / div > < div class = "ttdeci" > char * rm_realm_prefix(char *from, char *dst, int type)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:331< / div > < / div >
< div class = "ttc" id = "structdns__pkt_html" > < div class = "ttname" > < a href = "../../dd/d18/structdns__pkt.html" > dns_pkt< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > dnslib.h:111< / div > < / div >
< div class = "ttc" id = "andns_8h_html_ad2d760371a7d8f72ee021dcf12997c2d" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#ad2d760371a7d8f72ee021dcf12997c2d" > andns_gethostbyname< / a > < / div > < div class = "ttdeci" > int andns_gethostbyname(char *hname, inet_prefix *ip)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:570< / div > < / div >
< div class = "ttc" id = "andns_8h_html_aae58fed9c96a1eb5a5411c76510ba3ac" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#aae58fed9c96a1eb5a5411c76510ba3ac" > dns_forward< / a > < / div > < div class = "ttdeci" > int dns_forward(dns_pkt *dp, char *msg, int msglen, char *answer)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:627< / div > < / div >
< div class = "ttc" id = "andns__lib_8h_html" > < div class = "ttname" > < a href = "../../da/d94/andns__lib_8h.html" > andns_lib.h< / a > < / div > < / div >
< div class = "ttc" id = "inet_8h_html" > < div class = "ttname" > < a href = "../../d6/d4a/inet_8h.html" > inet.h< / a > < / div > < / div >
< div class = "ttc" id = "andns_8h_html_ad55d591cf7a444daa6b9cea7f8ae29bc" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#ad55d591cf7a444daa6b9cea7f8ae29bc" > andns_rslv< / a > < / div > < div class = "ttdeci" > char * andns_rslv(char *msg, int msglen, char *answer, int *answ_len)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:910< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a65c36ebb80b180a09b9a78c73ee5c106" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a65c36ebb80b180a09b9a78c73ee5c106" > ns_general_send< / a > < / div > < div class = "ttdeci" > int ns_general_send(char *msg, int msglen, char *answer, int anslen)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:236< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a1dc287a0b8b0db15f31309ea0cb8e383" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a1dc287a0b8b0db15f31309ea0cb8e383" > andns_realm< / a > < / div > < div class = "ttdeci" > int andns_realm(dns_pkt_qst *dpq, int *prefixed)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:369< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a77c1322dbf52a1bacabe97028c9ce8d2" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a77c1322dbf52a1bacabe97028c9ce8d2" > nk_rslv< / a > < / div > < div class = "ttdeci" > int nk_rslv(andns_pkt *ap, char *msg, int msglen, char *answer)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:761< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a81431a7e5716758c3bbefd17f8e68898" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a81431a7e5716758c3bbefd17f8e68898" > inet_rslv< / a > < / div > < div class = "ttdeci" > int inet_rslv(dns_pkt *dp, char *msg, int msglen, char *answer)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:694< / div > < / div >
< div class = "ttc" id = "if_8c_html_a4417150d9f858949bd9ea8794995ebcc" > < div class = "ttname" > < a href = "../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc" > family< / a > < / div > < div class = "ttdeci" > int family< / div > < div class = "ttdef" > < b > Definition:< / b > if.c:34< / div > < / div >
< div class = "ttc" id = "andns_8h_html_a6b05a164ac280146566ad4b912845951" > < div class = "ttname" > < a href = "../../dd/dd9/andns_8h.html#a6b05a164ac280146566ad4b912845951" > dpktcpy_rm_pref< / a > < / div > < div class = "ttdeci" > dns_pkt * dpktcpy_rm_pref(dns_pkt *src)< / div > < div class = "ttdef" > < b > Definition:< / b > andns.c:357< / 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 = "../../dd/dd9/andns_8h.html" > andns.h< / a > < / li >
2014-02-20 00:30:40 +00:00
< li class = "footer" > Generated on Wed Feb 19 2014 16:28:39 for The Netsukuku Project by
2014-02-19 23:45:00 +00:00
< 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 >