ped_main.c File Reference

Contains main entry point. More...

#include <sync/common.h>
#include "ped_config.h"
#include "ped_conn.h"
#include "ped_daemon_name.h"
#include "ped_kcom.h"
#include "ped_schedule.h"
#include "ped_policy_table.h"
#include "ped_ssd.h"
#include "ped_snmp.h"
#include "ped_service_route.h"
#include "ped_filter.h"

Go to the source code of this file.


static int ped_init (evContext ctx)
int main (int argc, char **argv)


const parse_menu_t master_menu []
const char * ped_top_config []
evContext ped_ctx
 Event context for ped.

Detailed Description

Contains main entry point.

Contains the main entry point and registers the application as a JunOS daemon

Definition in file ped_main.c.

Function Documentation

int main ( int  argc,
char **  argv 

Intializes ped's environment

[in] argc Number of command line arguments
[in] argv String array of command line arguments
0 upon successful exit of the application or non-zero upon failure

Definition at line 790 of file ped_main.c.

References DNAME_PED, master_menu, ped_config_read(), ped_init(), and ped_top_config.

static int ped_init ( evContext  ctx  )  [static]

Callback for the first initialization of the RE-SDK Application

[in] ctx Newly created event context
SUCCESS if successful, or EFAIL if failed.

Definition at line 750 of file ped_main.c.

References init_config(), init_dfw(), init_server(), init_table(), netsnmp_subagent_init(), ped_ctx, ped_kcom_init(), ped_schedule_init(), ped_schedule_reset(), ped_ssd_init(), and service_route_init().

Referenced by main().

Variable Documentation

const parse_menu_t master_menu[]

main menu of commands

Definition at line 460 of file ped_ui.c.

Referenced by main().

const char* ped_top_config[]

Path to PED config

Definition at line 46 of file ped_config.c.

Referenced by main(), and ped_config_read().

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:06 2010 for SDK Your Net Corporation Policy Manager Example: Policy Enforcement Daemon 1.0 by Doxygen 1.5.1