lwres_config.html revision 2eeb74d1cf5355dd98f6d507a10086e16bb08c4b
cc834bbccfad9340ee1ff96ef19770b691ebc5fcrbb - Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj - Copyright (C) 2000, 2001 Internet Software Consortium.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj - Permission to use, copy, modify, and/or distribute this software for any
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick - purpose with or without fee is hereby granted, provided that the above
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick - copyright notice and this permission notice appear in all copies.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard - PERFORMANCE OF THIS SOFTWARE.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="lwres_config">
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj<a name="idp60783312"></a><div class="titlepage"></div>
10b386767f6c87b45937244371cb751f0b454d16wrowe lwres_conf_init,
75960f20f88dad6bc67892c711c429946063d133stoddard lwres_conf_clear,
75960f20f88dad6bc67892c711c429946063d133stoddard lwres_conf_parse,
75960f20f88dad6bc67892c711c429946063d133stoddard lwres_conf_print,
75960f20f88dad6bc67892c711c429946063d133stoddard lwres_conf_get
75960f20f88dad6bc67892c711c429946063d133stoddard — lightweight resolver configuration
10b386767f6c87b45937244371cb751f0b454d16wrowe<pre class="funcsynopsisinfo">#include <lwres/lwres.h></pre>
10b386767f6c87b45937244371cb751f0b454d16wrowe<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr>
10b386767f6c87b45937244371cb751f0b454d16wrowe<td>lwres_context_t *<var class="pdparam">ctx</var><code>)</code>;</td>
f6a6245816cd866361da8c576b1f47c7a54b6610fanf<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr>
641cb23141f2238ed09e3b9fa79189225f8a2bcbrbb<td>lwres_context_t *<var class="pdparam">ctx</var><code>)</code>;</td>
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
8bed76428f56e5c643174a2d6807c3f18016af5cbjhlwres_result_t
8bed76428f56e5c643174a2d6807c3f18016af5cbjh<td>lwres_context_t *<var class="pdparam">ctx</var>, </td>
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard<td>const char *<var class="pdparam">filename</var><code>)</code>;</td>
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
10b386767f6c87b45937244371cb751f0b454d16wrowelwres_result_t
10b386767f6c87b45937244371cb751f0b454d16wrowe<td>lwres_context_t *<var class="pdparam">ctx</var>, </td>
10b386767f6c87b45937244371cb751f0b454d16wrowe<td>FILE *<var class="pdparam">fp</var><code>)</code>;</td>
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr>
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardlwres_conf_t *
56ca30c968906053ae61acb218420667bb58d996rbb<td>lwres_context_t *<var class="pdparam">ctx</var><code>)</code>;</td>
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard creates an empty
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard structure for lightweight resolver context
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard <p><code class="function">lwres_conf_clear()</code>
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard frees up all the internal memory used by
0bff2f28ef945280c17099c142126178a78e1e54manoj structure in resolver context
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard <p><code class="function">lwres_conf_parse()</code>
f03d292915be9977eaf74e9be7b0404aec226f84manoj opens the file
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb and parses it to initialise the resolver context
ff849e4163ed879288f0df15f78b6c9d278ec804fanf prints the
9805ac88e1befa6dea11d8513023f150d8f8e807fanf structure for resolver context
db3ccce11afac4fc1d4f51a65424412f7480c46cgstein returns <span class="errorcode">LWRES_R_SUCCESS</span>
db3ccce11afac4fc1d4f51a65424412f7480c46cgstein if it successfully read and parsed
93c5cba06b623ebe8e4372e886eece12d9a80c3egstein It returns <span class="errorcode">LWRES_R_FAILURE</span>
93c5cba06b623ebe8e4372e886eece12d9a80c3egstein could not be opened or contained incorrect
93c5cba06b623ebe8e4372e886eece12d9a80c3egstein resolver statements.
be386cf0beed1c3331e47f0736d92b9744a21f3agstein returns <span class="errorcode">LWRES_R_SUCCESS</span>
be386cf0beed1c3331e47f0736d92b9744a21f3agstein unless an error occurred when converting the network addresses to a
be386cf0beed1c3331e47f0736d92b9744a21f3agstein numeric host address string.
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgstein If this happens, the function returns