ipprobe-mt_config.c File Reference

Load and store the configuration data. More...

#include <string.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <isc/eventlib.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/ip_icmp.h>
#include <jnx/aux_types.h>
#include <jnx/bits.h>
#include <jnx/patricia.h>
#include <jnx/pconn.h>
#include <jnx/junos_trace.h>
#include <ddl/dax.h>
#include "ipprobe-mt.h"

Go to the source code of this file.

Functions

static LIST_HEAD (probe_params_s)
static void probe_params_clear (void)
probe_params_tprobe_params_get (char *name)
int config_read (int check)

Variables

static uint16_t probe_mngr_port
static uint16_t rspd_mngr_port


Detailed Description

Load and store the configuration data.

These functions will parse and load the configuration data.

Definition in file ipprobe-mt_config.c.


Function Documentation

int config_read ( int  check  ) 

Read daemon configuration from the database.

Parameters:
[in] check 1 if this function being invoked because of a commit check
Returns:
0 on success, -1 on failure
Note:
Do not use ERRMSG during config check.

Definition at line 98 of file ipprobe-mt_config.c.

References probe_mngr_port, PROBE_MNGR_PORT_DEFAULT, probe_params_clear(), PROBE_TRACE, rspd_mngr_port, and RSPD_MNGR_PORT_DEFAULT.

Referenced by main().

static LIST_HEAD ( probe_params_s   )  [static]

Invoke functions which depend on configuration.

Definition at line 46 of file ipprobe-mt_config.c.

References probe_mngr_open(), probe_mngr_port, rspd_mngr_open(), and rspd_mngr_port.


Variable Documentation

uint16_t probe_mngr_port [static]

The TCP port for probe manager

Definition at line 42 of file ipprobe-mt_config.c.

Referenced by config_read(), and LIST_HEAD().

uint16_t rspd_mngr_port [static]

The UDP port for responder manager

Definition at line 43 of file ipprobe-mt_config.c.

Referenced by config_read(), and LIST_HEAD().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:00 2010 for SDK Your Net Corporation IP Probe MT: ipprobe-mt 1.0 by Doxygen 1.5.1