netsukuku/d7/df8/log_8c.html

567 lines
49 KiB
HTML
Raw Permalink Normal View History

<!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/log.c File Reference</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>
<td style="padding-left: 0.5em;">
<div id="projectname">The Netsukuku Project
&#160;<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&#160;Page</span></a></li>
<li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<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&#160;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('d7/df8/log_8c.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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>
<!-- 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="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">log.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;syslog.h&gt;</code><br/>
<code>#include &lt;errno.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="../../d7/d7f/log_8h_source.html">log.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for log.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d6f/log_8c__incl.png" border="0" usemap="#src_2log_8c" alt=""/></div>
<map name="src_2log_8c" id="src_2log_8c">
<area shape="rect" id="node13" href="../../d7/d7f/log_8h.html" title="log.h" alt="" coords="445,83,496,112"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a06b66b768c027d4392a2ffd763b4ff21"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a06b66b768c027d4392a2ffd763b4ff21">log_init</a> (char *prog, int dbg, int log_stderr)</td></tr>
<tr class="separator:a06b66b768c027d4392a2ffd763b4ff21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5696077659f78f01928e949726d9b53e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a5696077659f78f01928e949726d9b53e">log_to_file</a> (char *filename)</td></tr>
<tr class="separator:a5696077659f78f01928e949726d9b53e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32f684e2d9d47ca24806b88e58498931"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a32f684e2d9d47ca24806b88e58498931">close_log_file</a> (void)</td></tr>
<tr class="separator:a32f684e2d9d47ca24806b88e58498931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a677da14e8c4326bde43622f233f1ead3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a677da14e8c4326bde43622f233f1ead3">fatal</a> (const char *fmt,...)</td></tr>
<tr class="separator:a677da14e8c4326bde43622f233f1ead3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33c8a42a58a6379397850b60be22028"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#ac33c8a42a58a6379397850b60be22028">error</a> (const char *fmt,...)</td></tr>
<tr class="separator:ac33c8a42a58a6379397850b60be22028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea4dca1a8e24794377ba1bf45fbbfce8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#aea4dca1a8e24794377ba1bf45fbbfce8">loginfo</a> (const char *fmt,...)</td></tr>
<tr class="separator:aea4dca1a8e24794377ba1bf45fbbfce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a983d6ac9e7105eb38445c20ff5e72135"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a983d6ac9e7105eb38445c20ff5e72135">debug</a> (int lvl, const char *fmt,...)</td></tr>
<tr class="separator:a983d6ac9e7105eb38445c20ff5e72135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bd4b0345d9f0035edbe68f3795319de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de">print_log</a> (int level, const char *fmt, va_list args)</td></tr>
<tr class="separator:a3bd4b0345d9f0035edbe68f3795319de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a41c7f076fa8d3ed8e5c77170ec02e811"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a41c7f076fa8d3ed8e5c77170ec02e811">__argv0</a></td></tr>
<tr class="separator:a41c7f076fa8d3ed8e5c77170ec02e811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a133c9f113bbbe0fc6098d1a47b34d43d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a133c9f113bbbe0fc6098d1a47b34d43d">dbg_lvl</a></td></tr>
<tr class="separator:a133c9f113bbbe0fc6098d1a47b34d43d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a939fd6f11b99204d748646272e8c962b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a939fd6f11b99204d748646272e8c962b">log_to_stderr</a></td></tr>
<tr class="separator:a939fd6f11b99204d748646272e8c962b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7105775420483c638899c72d15fe31b2"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a7105775420483c638899c72d15fe31b2">log_facility</a> =LOG_DAEMON</td></tr>
<tr class="separator:a7105775420483c638899c72d15fe31b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78baa2f713ef3ba71cd151bcd2a3f7c4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a78baa2f713ef3ba71cd151bcd2a3f7c4">log_file_opened</a> =0</td></tr>
<tr class="separator:a78baa2f713ef3ba71cd151bcd2a3f7c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab936051f5aaca44c6c3c41dee0d19c36"><td class="memItemLeft" align="right" valign="top">FILE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#ab936051f5aaca44c6c3c41dee0d19c36">log_file</a></td></tr>
<tr class="separator:ab936051f5aaca44c6c3c41dee0d19c36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a828360a818a9746cdf00f4daca63267d"><td class="memItemLeft" align="right" valign="top">FILE *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/df8/log_8c.html#a828360a818a9746cdf00f4daca63267d">log_fd</a></td></tr>
<tr class="separator:a828360a818a9746cdf00f4daca63267d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a32f684e2d9d47ca24806b88e58498931"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void close_log_file </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a32f684e2d9d47ca24806b88e58498931_icgraph.png" border="0" usemap="#d7/df8/log_8c_a32f684e2d9d47ca24806b88e58498931_icgraph" alt=""/></div>
<map name="d7/df8/log_8c_a32f684e2d9d47ca24806b88e58498931_icgraph" id="d7/df8/log_8c_a32f684e2d9d47ca24806b88e58498931_icgraph">
<area shape="rect" id="node3" href="../../d7/d7f/log_8h.html#aa3a011c011c75624b8a329e4a9a0fc17" title="fatal" alt="" coords="156,1235,201,1264"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#afc0f24a5b798975732d4f238dccc42ef" title="andna_load_caches" alt="" coords="271,5,407,35"/><area shape="rect" id="node7" href="../../d6/de1/andns__net_8h.html#a9f0f84aac1723d4aff67f0c8049ba013" title="w_socket" alt="" coords="300,160,377,189"/><area shape="rect" id="node9" href="../../d6/de1/andns__net_8h.html#a50a2a14b83ff471e7374fa7b731be19b" title="w_connect" alt="" coords="505,135,591,164"/><area shape="rect" id="node11" href="../../d6/de1/andns__net_8h.html#a4f93b369bf1954796a452384355d423d" title="serial_connect" alt="" coords="669,135,776,164"/><area shape="rect" id="node13" href="../../d6/de1/andns__net_8h.html#aa577f4e612c57b8ee36d7ee144e4454e" title="host_connect" alt="" coords="825,96,924,125"/><area shape="rect" id="node18" href="../../d6/de1/andns__net_8h.html#a817c42151172f843cbc695820c85641d" title="w_send" alt="" coords="305,264,372,293"/><area shape="rect" id="node20" href="../../d6/de1/andns__net_8h.html#a47d34cf4c1f9bf2edfea1d4410dbe2d8" title="w_send_timeout" alt="" coords="489,291,607,320"/><area shape="rect" id="node22" href="../../d6/de1/andns__net_8h.html#a0f43c36471630ec8c3775908acf3c2f9" title="w_recv" alt="" coords="307,368,371,397"/><area shape="rect" id="node24" href="../../d6/de1/andns__net_8h.html#a89a79c4f515c2c8ab1e8841dc24966c1" title="w_recv_timeout" alt="" coords="491,395,605,424"/><area shape="rect" id="node28" href="../../d7/d99/conf_8c.html#a42eee1f93095d4c6a5b5f2ec80778043" title="parse_config_line" alt="" coords="277,472,400,501"/><area shape="rect" id="node30" href="../../df/d77/conf_8h.html#a5613125090be341b2026a5677e5b08c5" title="load_config_file" alt="" coords="492,499,604,528"/><area shape="rect" id="node33" href="../../d0/d51/daemon_8h.html#a40481bac75cf84001629622bb8a5f2c0" title="udp_daemon" alt="" coords="500,1156,596,1185"/><area shape="rect" id="node35" href="../../d0/d51/daemon_8h.html#a6bfa338bfc8ec41ee95e77a666e26114" title="tcp_daemon" alt="" coords="828,1776,921,1805"/><area shape="rect" id="node37" href="../../db/d6b/dns__wrapper_8c.html#aeaa4cae89e7a3eefe83d0ae4cc63b35a" title="dns_wrapper_daemon" alt="" coords="264,680,413,709"/><area shape="rect" id="node39" href="../../d3/dc7/hook_8c.html#a2ea386ad9474cd89fe393552276feef2" title="hook_set_all_ips" alt="" coords="280,733,397,763"/><area shape="rect" id="node41" href="../../d3/dc7/hook_8c.html#a7503e6bf75bee5edba1dd37e8878911a" title="hook_first_radar_scan" alt="" coords="264,787,413,816"/><area shape="rect" id="node43" href="../../d3/dc7/hook_8c.html#a121f2311c11a2ea89f57e07d064f33b9" title="hook_get_free_nodes" alt="" coords="265,840,412,869"/><area shape="rect" id="node45" href="../../d3/dc7/hook_8c.html#a00d0f0c666be6f5b1d58632b4b5d222c" title="hook_get_ext_map" alt="" coords="273,893,404,923"/><area shape="rect" id="node47" href="../../d3/dc7/hook_8c.html#ab77263b0b4d7970fb36fdd74ebd0df3a" title="hook_get_int_map" alt="" coords="275,947,403,976"/><area shape="rect" id="node49" href="../../d3/dc7/hook_8c.html#a5e32a215ed05b1ef1f870ce105f67640" title="hook_finish" alt="" coords="295,1000,383,1029"/><area shape="rect" id="node51" href="../../da/dd7/igs_8h.html#a184ab033bb2e2c1f856df5430ba87a80" title="init_internet_gateway\l_search" alt="" coords="476,1562,620,1609"/><area shape="rect" id="node53" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="669,1601,776,1631"/><area shape="rect" id="node55" href="../../da/dd7/igs_8h.html#a7b3d293ed96b781f5b351d0f054bbf0d" title="igw_exec_masquerade_sh" alt="" coords="251,1579,427,1608"/><area shape="rect" id="node58" href="../../d6/d4a/inet_8h.html#a9c6d94fc49adc3223bb0df762343784d" title="inet_setip_raw" alt="" coords="285,1208,392,1237"/><area shape="rect" id="node60" href="../../d6/d4a/inet_8h.html#a506ae02de352f1e470295f64ba3bd0da" title="inet_setip_bcast" alt="" coords="280,1261,397,1291"/><area shape
</div>
</p>
</div>
</div>
<a class="anchor" id="a983d6ac9e7105eb38445c20ff5e72135"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void debug </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>lvl</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a983d6ac9e7105eb38445c20ff5e72135_cgraph.png" border="0" usemap="#d7/df8/log_8c_a983d6ac9e7105eb38445c20ff5e72135_cgraph" alt=""/></div>
<map name="d7/df8/log_8c_a983d6ac9e7105eb38445c20ff5e72135_cgraph" id="d7/df8/log_8c_a983d6ac9e7105eb38445c20ff5e72135_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="113,5,183,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ac33c8a42a58a6379397850b60be22028"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void error </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_ac33c8a42a58a6379397850b60be22028_cgraph.png" border="0" usemap="#d7/df8/log_8c_ac33c8a42a58a6379397850b60be22028_cgraph" alt=""/></div>
<map name="d7/df8/log_8c_ac33c8a42a58a6379397850b60be22028_cgraph" id="d7/df8/log_8c_ac33c8a42a58a6379397850b60be22028_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="103,5,172,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a677da14e8c4326bde43622f233f1ead3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void fatal </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flush the stream if we want to read something </p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a677da14e8c4326bde43622f233f1ead3_cgraph.png" border="0" usemap="#d7/df8/log_8c_a677da14e8c4326bde43622f233f1ead3_cgraph" alt=""/></div>
<map name="d7/df8/log_8c_a677da14e8c4326bde43622f233f1ead3_cgraph" id="d7/df8/log_8c_a677da14e8c4326bde43622f233f1ead3_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="117,5,187,35"/><area shape="rect" id="node5" href="../../d7/df8/log_8c.html#a32f684e2d9d47ca24806b88e58498931" title="close_log_file" alt="" coords="101,59,203,88"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a06b66b768c027d4392a2ffd763b4ff21"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log_init </td>
<td>(</td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>prog</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>dbg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>log_stderr</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a06b66b768c027d4392a2ffd763b4ff21_icgraph.png" border="0" usemap="#d7/df8/log_8c_a06b66b768c027d4392a2ffd763b4ff21_icgraph" alt=""/></div>
<map name="d7/df8/log_8c_a06b66b768c027d4392a2ffd763b4ff21_icgraph" id="d7/df8/log_8c_a06b66b768c027d4392a2ffd763b4ff21_icgraph">
<area shape="rect" id="node3" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="117,5,168,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a5696077659f78f01928e949726d9b53e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int log_to_file </td>
<td>(</td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_cgraph.png" border="0" usemap="#d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_cgraph" alt=""/></div>
<map name="d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_cgraph" id="d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#ac33c8a42a58a6379397850b60be22028" title="error" alt="" coords="136,5,184,35"/><area shape="rect" id="node5" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="233,5,303,35"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_icgraph.png" border="0" usemap="#d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_icgraph" alt=""/></div>
<map name="d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_icgraph" id="d7/df8/log_8c_a5696077659f78f01928e949726d9b53e_icgraph">
<area shape="rect" id="node3" href="../../d4/d3b/netsukuku_8c.html#a0318e97f40679e849d9259e5edb4dfce" title="parse_options" alt="" coords="137,5,239,35"/><area shape="rect" id="node5" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="288,32,339,61"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="aea4dca1a8e24794377ba1bf45fbbfce8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void loginfo </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_cgraph.png" border="0" usemap="#d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_cgraph" alt=""/></div>
<map name="d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_cgraph" id="d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_cgraph">
<area shape="rect" id="node3" href="../../d7/df8/log_8c.html#a3bd4b0345d9f0035edbe68f3795319de" title="print_log" alt="" coords="116,5,185,35"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_icgraph.png" border="0" usemap="#d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_icgraph" alt=""/></div>
<map name="d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_icgraph" id="d7/df8/log_8c_aea4dca1a8e24794377ba1bf45fbbfce8_icgraph">
<area shape="rect" id="node3" href="../../d5/d05/andna_8h.html#a481b301ec0adb5a8a6d176919ba5ac3e" title="andna_resolvconf_modify" alt="" coords="123,1334,293,1363"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#aa7b53282a673cbc82c998a3cf4e5aff2" title="andna_init" alt="" coords="397,1229,477,1258"/><area shape="rect" id="node7" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="820,1178,927,1207"/><area shape="rect" id="node9" href="../../d9/d88/ntkresolv_8h.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1013,855,1064,885"/><area shape="rect" id="node12" href="../../d5/d05/andna_8h.html#a533e80474668ec6d63b4e5302b910a6c" title="andna_hook" alt="" coords="163,851,253,881"/><area shape="rect" id="node21" href="../../d4/d18/andna_8c.html#abac5b6d2df2140ec17abb62d9ce8cbbc" title="andna_min_update_retry" alt="" coords="127,545,289,574"/><area shape="rect" id="node23" href="../../d5/d05/andna_8h.html#a22751676386bfd17dd30f88528ee0f12" title="andna_update_hnames" alt="" coords="360,570,515,599"/><area shape="rect" id="node25" href="../../d4/d3b/netsukuku_8c.html#a678f7ec6e159e6bee076921c8d709847" title="reload_hostname_thread" alt="" coords="575,699,737,729"/><area shape="rect" id="node32" href="../../d5/d05/andna_8h.html#ac5e2e3a07b8b99edbc9501aae6e5b1ff" title="andna_maintain_hnames\l_active" alt="" coords="125,955,291,1001"/><area shape="rect" id="node35" href="../../d7/d74/andna__cache_8h.html#a251759601e094b59de67ebee59725c4c" title="lcl_new_keyring" alt="" coords="151,1177,265,1206"/><area shape="rect" id="node38" href="../../dd/dd9/andns_8h.html#a5a4d6d7f4f8ffb407a416f1bab193258" title="andns_init" alt="" coords="168,1281,248,1310"/><area shape="rect" id="node41" href="../../d3/dc7/hook_8c.html#a2ea386ad9474cd89fe393552276feef2" title="hook_set_all_ips" alt="" coords="149,313,267,342"/><area shape="rect" id="node43" href="../../d3/dc7/hook_8c.html#acce6e668cf071bc363f3237daebc95d0" title="create_new_qgroup" alt="" coords="371,183,504,213"/><area shape="rect" id="node45" href="../../d3/dc7/hook_8c.html#a7503e6bf75bee5edba1dd37e8878911a" title="hook_first_radar_scan" alt="" coords="581,179,731,209"/><area shape="rect" id="node47" href="../../d6/d34/hook_8h.html#af10a487801fab9a28a3cfb6759fe138f" title="netsukuku_hook" alt="" coords="815,338,932,367"/><area shape="rect" id="node51" href="../../d3/dc7/hook_8c.html#a121f2311c11a2ea89f57e07d064f33b9" title="hook_get_free_nodes" alt="" coords="583,233,729,262"/><area shape="rect" id="node66" href="../../d3/dc7/hook_8c.html#a0513b13a5cbb9ed7d89f6594e639b264" title="hook_get_bnode_map" alt="" coords="581,390,731,419"/><area shape="rect" id="node69" href="../../d3/dc7/hook_8c.html#ab614c177efbb9179f168fd7d13bff83d" title="hook_get_igw" alt="" coords="387,442,488,471"/><area shape="rect" id="node72" href="../../d3/dc7/hook_8c.html#a5e32a215ed05b1ef1f870ce105f67640" title="hook_finish" alt="" coords="612,126,700,155"/><area shape="rect" id="node76" href="../../d7/de2/if_8c.html#a6996d5c570a8cdc3b4cdeef2fe1d9e10" title="get_all_up_ifs" alt="" coords="157,1542,259,1571"/><area shape="rect" id="node81" href="../../da/dd7/igs_8h.html#a184ab033bb2e2c1f856df5430ba87a80" title="init_internet_gateway\l_search" alt="" coords="584,1128,728,1175"/><area shape="rect" id="node84" href="../../da/dd7/igs_8h.html#af0c6fb918f055c28c21d5a17fe02db09" title="igw_check_inet_conn_t" alt="" coords="359,1021,516,1050"/><area shape="rect" id="node87" href="../../da/dd7/igs_8h.html#ac87ed2fc7a66e73c5fef763321862295" title="igw_monitor_igws_t" alt="" coords="805,907,941,937"/><area shape="rect" id="node90" href="../../d3/de6/mark_8h.html#a1241770376c64ee1ee386784a6e6c1d0" title="mark_init" alt="" coords="400,1074,475,1103"/><area shape="rect" id="node93" href="../../d3/de6/mark_8h.html#abce88ee61b36a36e1e58278165d6004d" title="mark_close" alt="" coords="393,1490,481,1519"/><area shape="rect" id="node100" href="../../d4/d08/misc_8h.html#a8acb91fe62e69e1e7be98dd06b2410a2" title="exec_root_script" alt="" coords="149
</div>
</p>
</div>
</div>
<a class="anchor" id="a3bd4b0345d9f0035edbe68f3795319de"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void print_log </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fmt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">va_list&#160;</td>
<td class="paramname"><em>args</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/df8/log_8c_a3bd4b0345d9f0035edbe68f3795319de_icgraph.png" border="0" usemap="#d7/df8/log_8c_a3bd4b0345d9f0035edbe68f3795319de_icgraph" alt=""/></div>
<map name="d7/df8/log_8c_a3bd4b0345d9f0035edbe68f3795319de_icgraph" id="d7/df8/log_8c_a3bd4b0345d9f0035edbe68f3795319de_icgraph">
<area shape="rect" id="node3" href="../../d7/d7f/log_8h.html#aa3a011c011c75624b8a329e4a9a0fc17" title="fatal" alt="" coords="133,1630,179,1660"/><area shape="rect" id="node105" href="../../d7/d7f/log_8h.html#ace046b3f15f31d2cdb41c1126fd00517" title="error" alt="" coords="132,793,180,822"/><area shape="rect" id="node116" href="../../d7/d7f/log_8h.html#aa9955711b196ecf88b51fbe15dd5fdc0" title="loginfo" alt="" coords="127,1186,185,1216"/><area shape="rect" id="node126" href="../../d7/d7f/log_8h.html#a098435395274a2e7cc89086439430d58" title="debug" alt="" coords="128,396,184,425"/><area shape="rect" id="node5" href="../../d5/d05/andna_8h.html#afc0f24a5b798975732d4f238dccc42ef" title="andna_load_caches" alt="" coords="255,714,391,744"/><area shape="rect" id="node7" href="../../d6/de1/andns__net_8h.html#a9f0f84aac1723d4aff67f0c8049ba013" title="w_socket" alt="" coords="284,240,361,269"/><area shape="rect" id="node9" href="../../d6/de1/andns__net_8h.html#a50a2a14b83ff471e7374fa7b731be19b" title="w_connect" alt="" coords="489,265,575,294"/><area shape="rect" id="node11" href="../../d6/de1/andns__net_8h.html#a4f93b369bf1954796a452384355d423d" title="serial_connect" alt="" coords="653,541,760,570"/><area shape="rect" id="node13" href="../../d6/de1/andns__net_8h.html#aa577f4e612c57b8ee36d7ee144e4454e" title="host_connect" alt="" coords="809,1221,908,1250"/><area shape="rect" id="node18" href="../../d6/de1/andns__net_8h.html#a817c42151172f843cbc695820c85641d" title="w_send" alt="" coords="289,344,356,373"/><area shape="rect" id="node20" href="../../d6/de1/andns__net_8h.html#a47d34cf4c1f9bf2edfea1d4410dbe2d8" title="w_send_timeout" alt="" coords="473,344,591,373"/><area shape="rect" id="node22" href="../../d6/de1/andns__net_8h.html#a0f43c36471630ec8c3775908acf3c2f9" title="w_recv" alt="" coords="291,608,355,637"/><area shape="rect" id="node24" href="../../d6/de1/andns__net_8h.html#a89a79c4f515c2c8ab1e8841dc24966c1" title="w_recv_timeout" alt="" coords="475,608,589,637"/><area shape="rect" id="node28" href="../../d7/d99/conf_8c.html#a42eee1f93095d4c6a5b5f2ec80778043" title="parse_config_line" alt="" coords="261,2602,384,2632"/><area shape="rect" id="node30" href="../../df/d77/conf_8h.html#a5613125090be341b2026a5677e5b08c5" title="load_config_file" alt="" coords="476,2629,588,2658"/><area shape="rect" id="node33" href="../../d0/d51/daemon_8h.html#a40481bac75cf84001629622bb8a5f2c0" title="udp_daemon" alt="" coords="275,661,371,690"/><area shape="rect" id="node35" href="../../d0/d51/daemon_8h.html#a6bfa338bfc8ec41ee95e77a666e26114" title="tcp_daemon" alt="" coords="276,554,369,584"/><area shape="rect" id="node37" href="../../db/d6b/dns__wrapper_8c.html#aeaa4cae89e7a3eefe83d0ae4cc63b35a" title="dns_wrapper_daemon" alt="" coords="248,501,397,530"/><area shape="rect" id="node39" href="../../d3/dc7/hook_8c.html#a2ea386ad9474cd89fe393552276feef2" title="hook_set_all_ips" alt="" coords="264,1346,381,1376"/><area shape="rect" id="node41" href="../../d3/dc7/hook_8c.html#a7503e6bf75bee5edba1dd37e8878911a" title="hook_first_radar_scan" alt="" coords="248,1400,397,1429"/><area shape="rect" id="node43" href="../../d3/dc7/hook_8c.html#a121f2311c11a2ea89f57e07d064f33b9" title="hook_get_free_nodes" alt="" coords="249,1133,396,1162"/><area shape="rect" id="node45" href="../../d3/dc7/hook_8c.html#a00d0f0c666be6f5b1d58632b4b5d222c" title="hook_get_ext_map" alt="" coords="257,2389,388,2418"/><area shape="rect" id="node47" href="../../d3/dc7/hook_8c.html#ab77263b0b4d7970fb36fdd74ebd0df3a" title="hook_get_int_map" alt="" coords="259,2496,387,2525"/><area shape="rect" id="node49" href="../../d3/dc7/hook_8c.html#a5e32a215ed05b1ef1f870ce105f67640" title="hook_finish" alt="" coords="279,1186,367,1216"/><area shape="rect" id="node51" href="../../da/dd7/igs_8h.html#a184ab033bb2e2c1f856df5430ba87a80" title="init_internet_gateway\l_search" alt="" coords="460,944,604,991"/><area shape="rect" id="node53" href="../../d4/d3b/netsukuku_8c.html#a110d67ecacf72375eea84dc00338030c" title="init_netsukuku" alt="" coords="653,912,760,941"/><area shape="rect" id="node55" href="
</div>
</p>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a41c7f076fa8d3ed8e5c77170ec02e811"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* __argv0</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a133c9f113bbbe0fc6098d1a47b34d43d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int dbg_lvl</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a7105775420483c638899c72d15fe31b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int log_facility =LOG_DAEMON</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a828360a818a9746cdf00f4daca63267d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">FILE * log_fd</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab936051f5aaca44c6c3c41dee0d19c36"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">FILE* log_file</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a78baa2f713ef3ba71cd151bcd2a3f7c4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int log_file_opened =0</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a939fd6f11b99204d748646272e8c962b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int log_to_stderr</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</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="../../d7/df8/log_8c.html">log.c</a></li>
2014-02-20 00:30:40 +00:00
<li class="footer">Generated on Wed Feb 19 2014 16:29:25 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>