psd_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: psd_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 __PSD_CONFIG_H__
00022 #define __PSD_CONFIG_H__
00023 
00024 #include <sync/psd_ipc.h>
00025 #include <jnx/patricia.h>
00026 
00027 
00028 /*** Constants ***/
00029 
00030 /*** Data Structures ***/
00031 
00032 
00041 typedef struct psd_policy_filter_s {
00042     policy_filter_msg_t     filter_data;    
00043 } psd_policy_filter_t;
00044 
00045 
00054 typedef struct psd_policy_route_s {
00055     policy_route_msg_t        route_data; 
00056     struct psd_policy_route_s *next;      
00057 } psd_policy_route_t;
00058 
00059 
00064 typedef struct psd_policy_s {
00065     patnode              node;  
00066     char                 policy_name[MAX_POLICY_NAME_LEN + 1];  
00067     char                 ifname[MAX_IF_NAME_LEN + 1];    
00068     uint8_t              af;                             
00069     psd_policy_filter_t *filter;                        
00070     psd_policy_route_t  *route;                         
00071 } psd_policy_t;
00072 
00073 
00074 /*** GLOBAL/EXTERNAL Functions ***/
00075 
00076 
00081 void init_config(void);
00082 
00083 
00091 psd_policy_t *first_policy(void);
00092 
00093 
00105 psd_policy_t *next_policy(psd_policy_t *data);
00106 
00107 
00122 int psd_config_read(int check);
00123 
00124 #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:07 2010 for SDK Your Net Corporation Policy Manager Example: Policy Server Daemon 1.0 by Doxygen 1.5.1