Code Search for Developers
 
 
  

agent__read__config_8h.html from net-snmp at Krugle


Show agent__read__config_8h.html syntax highlighted

<!--#set var="section" value="development" -->
<!--#include virtual="/page-top.html" -->
<!-- CONTENT START -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>agent_read_config.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.11 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>agent_read_config.h File Reference</h1>
<p>
<a href="agent__read__config_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="agent__read__config_8h.html#a0">init_agent_read_config</a> (const char *)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="agent__read__config_8h.html#a1">update_config</a> (void)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="agent__read__config_8h.html#a2">snmpd_register_config_handler</a> (const char *, void(*parser)(const char *, char *), void(*releaser)(void), const char *)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="agent__read__config_8h.html#a3">snmpd_unregister_config_handler</a> (const char *)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="agent__read__config_8h.html#a4">snmpd_store_config</a> (const char *)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a name="a0" doxytag="agent_read_config.h::init_agent_read_config"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void init_agent_read_config </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>app</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="agent__read__config_8c-source.html#l00169">169</a> of file <a class="el" href="agent__read__config_8c-source.html">agent_read_config.c</a>.
<p>
Referenced by <a class="el" href="snmp__vars_8c-source.html#l00217">init_agent</a>().
<p>
<div class="fragment"><pre>00170 {
00171   <font class="keywordflow">if</font> ( app != NULL )
00172       ds_set_string(DS_LIBRARY_ID, DS_LIB_APPTYPE, app);
00173 
00174   register_app_config_handler(<font class="stringliteral">"authtrapenable"</font>,
00175                           snmpd_parse_config_authtrap, NULL,
00176                           <font class="stringliteral">"1 | 2\t\t(1 = enable, 2 = disable)"</font>);
00177 
00178   <font class="keywordflow">if</font> ( ds_get_boolean(DS_APPLICATION_ID, <a class="code" href="ds__agent_8h.html#a1">DS_AGENT_ROLE</a>) == <a class="code" href="snmpd_8h.html#a0">MASTER_AGENT</a> )<font class="keyword"> </font>{
00179       register_app_config_handler(<font class="stringliteral">"trapsink"</font>,
00180                           snmpd_parse_config_trapsink, snmpd_free_trapsinks,
00181                           <font class="stringliteral">"host [community] [port]"</font>);
00182       register_app_config_handler(<font class="stringliteral">"trap2sink"</font>,
00183                           snmpd_parse_config_trap2sink, NULL,
00184                           <font class="stringliteral">"host [community] [port]"</font>);
00185       register_app_config_handler(<font class="stringliteral">"informsink"</font>,
00186                           snmpd_parse_config_informsink, NULL,
00187                           <font class="stringliteral">"host [community] [port]"</font>);
00188       register_app_config_handler(<font class="stringliteral">"trapsess"</font>,
00189                           snmpd_parse_config_trapsess, NULL,
00190                           <font class="stringliteral">"[snmpcmdargs] host"</font>);
00191   }
00192   register_app_config_handler(<font class="stringliteral">"trapcommunity"</font>,
00193                           snmpd_parse_config_trapcommunity,
00194                           snmpd_free_trapcommunity,
00195                           <font class="stringliteral">"community-string"</font>);
00196 <font class="preprocessor">#ifdef HAVE_UNISTD_H</font>
00197   register_app_config_handler(<font class="stringliteral">"agentuser"</font>,
00198                           <a class="code" href="agent__read__config_8c.html#a2">snmpd_set_agent_user</a>, NULL,
00199                           <font class="stringliteral">"userid"</font>);
00200   register_app_config_handler(<font class="stringliteral">"agentgroup"</font>,
00201                           <a class="code" href="agent__read__config_8c.html#a3">snmpd_set_agent_group</a>, NULL,
00202                           <font class="stringliteral">"groupid"</font>);
00203 <font class="preprocessor">#endif</font>
00204   register_app_config_handler(<font class="stringliteral">"agentaddress"</font>,
00205                           <a class="code" href="agent__read__config_8c.html#a4">snmpd_set_agent_address</a>, NULL,
00206                           <font class="stringliteral">"SNMP bind address"</font>);
00207   register_app_config_handler(<font class="stringliteral">"table"</font>,
00208                               config_parse_table_set, NULL, <font class="stringliteral">"tableoid"</font>);
00209   register_app_config_handler(<font class="stringliteral">"add_row"</font>,
00210                               config_parse_add_row, NULL, <font class="stringliteral">"indexes... values..."</font>);
00211   
00212 <font class="preprocessor">#include "mib_module_dot_conf.h"</font>
00213 <font class="preprocessor">#ifdef TESTING</font>
00214   print_config_handlers();
00215 <font class="preprocessor">#endif</font>
00216 }
</pre></div>    </td>
  </tr>
</table>
<a name="a2" doxytag="agent_read_config.h::snmpd_register_config_handler"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void snmpd_register_config_handler </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname">&nbsp; <em>token</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>void(*&nbsp;</td>
          <td class="mdname">&nbsp; <em>parser</em>)(const char *, char *), </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>void(*&nbsp;</td>
          <td class="mdname">&nbsp; <em>releaser</em>)(void), </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname">&nbsp; <em>help</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="agent__read__config_8c-source.html#l00226">226</a> of file <a class="el" href="agent__read__config_8c-source.html">agent_read_config.c</a>.<div class="fragment"><pre>00230 {
00231   DEBUGMSGTL((<font class="stringliteral">"snmpd_register_app_config_handler"</font>,
00232               <font class="stringliteral">"registering .conf token for \"%s\"\n"</font>, token));
00233   register_app_config_handler(token, parser, releaser, help);
00234 }
</pre></div>    </td>
  </tr>
</table>
<a name="a4" doxytag="agent_read_config.h::snmpd_store_config"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void snmpd_store_config </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>line</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="agent__read__config_8c-source.html#l00245">245</a> of file <a class="el" href="agent__read__config_8c-source.html">agent_read_config.c</a>.<div class="fragment"><pre>00246 {
00247   read_app_config_store(line);
00248 }
</pre></div>    </td>
  </tr>
</table>
<a name="a3" doxytag="agent_read_config.h::snmpd_unregister_config_handler"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void snmpd_unregister_config_handler </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>token</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="agent__read__config_8c-source.html#l00237">237</a> of file <a class="el" href="agent__read__config_8c-source.html">agent_read_config.c</a>.<div class="fragment"><pre>00238 {
00239   unregister_app_config_handler(token);
00240 }
</pre></div>    </td>
  </tr>
</table>
<a name="a1" doxytag="agent_read_config.h::update_config"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void update_config </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>void&nbsp;</td>
          <td class="mdname1">&nbsp;          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="agent__read__config_8c-source.html#l00218">218</a> of file <a class="el" href="agent__read__config_8c-source.html">agent_read_config.c</a>.<div class="fragment"><pre>00219 {
00220   free_config();
00221   read_configs();
00222 }
</pre></div>    </td>
  </tr>
</table>
<hr><address><small>Generated on Sat Nov 10 14:09:53 2001 for net-snmp by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.11 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>
<!--#include virtual="/sfbutton.html" -->
<!--#include virtual="/sfbutton.html" -->
<!-- CONTENT END -->
<!--#include virtual="/page-bottom.html" -->





See more files for this project here

net-snmp

net-snmp provides tools and libraries relating to the Simple Network\r\nManagement Protocol including: An extensible agent, An SNMP library,\r\ntools to request or set information from SNMP agents, tools to\r\ngenerate and handle SNMP traps, etc.\r\n

Project homepage: http://sourceforge.net/projects/net-snmp
Programming language(s): C,Perl,Shell Script
License: other

  mfd/
  acconfig_8h-source.html
  acconfig_8h.html
  agent_2snmp__perl_8c-source.html
  agent__callbacks_8h-source.html
  agent__callbacks_8h.html
  agent__handler_8c-source.html
  agent__handler_8c.html
  agent__handler_8h-source.html
  agent__handler_8h.html
  agent__index_8c-source.html
  agent__index_8c.html
  agent__index_8h-source.html
  agent__index_8h.html
  agent__module__config_8h-source.html
  agent__read__config_8c-source.html
  agent__read__config_8c.html
  agent__read__config_8h-source.html
  agent__read__config_8h.html
  agent__registry_8c-source.html
  agent__registry_8c.html
  agent__registry_8h-source.html
  agent__registry_8h.html
  agent__trap_8c-source.html
  agent__trap_8c.html
  agent__trap_8h-source.html
  agent__trap_8h.html
  all__helpers_8c-source.html
  all__helpers_8h-source.html
  annotated.html
  asn1_8c-source.html
  asn1_8h-source.html
  auto__nlist_8c-source.html
  auto__nlist_8c.html
  auto__nlist_8h-source.html
  auto__nlist_8h.html
  autonlist_8h-source.html
  autonlist_8h.html
  baby__steps_8c-source.html
  baby__steps_8h-source.html
  blah.html
  bulk__to__next_8c-source.html
  bulk__to__next_8h-source.html
  cache__handler_8c-source.html
  cache__handler_8h-source.html
  callback_8c-source.html
  callback_8h-source.html
  check__varbind_8c-source.html
  check__varbind_8h-source.html
  cmu__compat_8c-source.html
  cmu__compat_8h-source.html
  config_8h-source.html
  config_8h.html
  config__api_8h-source.html
  container_8c-source.html
  container_8h-source.html
  container__binary__array_8c-source.html
  container__binary__array_8h-source.html
  container__iterator_8c-source.html
  container__iterator_8h-source.html
  container__list__ssll_8c-source.html
  container__list__ssll_8h-source.html
  container__null_8c-source.html
  container__null_8h-source.html
  data__list_8c-source.html
  data__list_8h-source.html
  data__set_8c-example.html
  data__set_8c-source.html
  data__set_8h-source.html
  debug__handler_8c-source.html
  debug__handler_8h-source.html
  default__store_8c-source.html
  default__store_8h-source.html
  default_store.html
  definitions_8h-source.html
  delayed__instance_8c-example.html
  delayed__instance_8c-source.html
  delayed__instance_8h-source.html
  deprecated.html
  dir_000000.html
  dir_000001.html
  dir_000002.html
  dir_000003.html
  dir_000004.html
  dir_000005.html
  dir_000006.html
  dir_000007.html
  dir_000008.html
  doxygen.css
  doxygen.gif
  doxygen.png
  ds__agent_8h-source.html
  ds__agent_8h.html
  example_8c-source.html
  example_8h-source.html
  examples.html
  factory_8h-source.html
  fd__event__manager_8c-source.html
  fd__event__manager_8h-source.html
  file__utils_8c-source.html
  file__utils_8h-source.html
  files.html