ped_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ped_config.h 346460 2009-11-14 05:06:47Z ssiano $
00003  *
00004  * This code is provided as is by Juniper Networks SDK Developer Support.
00005  * It is provided with no warranties or guarantees, and Juniper Networks
00006  * will not provide support or maintenance of this code in any fashion.
00007  * The code is provided only to help a developer better understand how
00008  * the SDK can be used.
00009  *
00010  * Copyright (c) 2007-2008, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00021 #ifndef __PED_CONFIG_H__
00022 #define __PED_CONFIG_H__
00023 
00024 #include <jnx/patricia.h>
00025 #include <sync/psd_ipc.h>
00026 
00027 /*** Constants ***/
00028 
00029 /*** Data Structures ***/
00030 
00035 typedef struct ped_cond_s {
00036     patnode    node;                           
00037     char       condition_name[MAX_COND_NAME_LEN + 1]; 
00038     char       ifname[MAX_IF_NAME_LEN + 1];    
00039     uint8_t    af;                             
00040 } ped_cond_t;
00041 
00042 /*** GLOBAL/EXTERNAL Functions ***/
00043 
00048 void init_config(void);
00049 
00050 
00054 void clear_config(void);
00055 
00056 
00063 ped_cond_t *first_condition(void);
00064 
00065 
00076 ped_cond_t *next_condition(ped_cond_t *data);
00077 
00078 
00094 boolean find_matching_condition(char * ifname, uint8_t af);
00095 
00096 
00103 char * get_pfd_interface(void);
00104 
00105 
00112 char * get_pfd_nat_interface(void);
00113 
00114 
00121 in_addr_t get_pfd_address(void);
00122 
00123 
00130 in_addr_t get_cpd_address(void);
00131 
00132 
00147 int ped_config_read(int check);
00148 
00149 #endif

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