ped_ssd.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ped_ssd.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_SSD_H__
00022 #define __PED_SSD_H__
00023 
00024 #include <sync/psd_ipc.h>
00025 
00026 /*** Constants ***/
00027 
00028 
00029 /*** Data structures ***/
00030 
00031 
00035 typedef enum {
00036     ADD_SUCCESS,        
00037     DELETE_SUCCESS,     
00038     ADD_FAILED,         
00039     DELETE_FAILED       
00040 } ssd_reply_e;
00041 
00042 
00048 typedef void (* ssd_reply_notification_handler)(
00049                     ssd_reply_e reply,
00050                     void * user_data);
00051 
00052 
00053 /*** GLOBAL/EXTERNAL Functions ***/
00054 
00055 
00060 void ped_ssd_init(void);
00061 
00062 
00066 void ped_ssd_shutdown(void);
00067 
00068 
00075 boolean get_ssd_ready(void);
00076 
00077 
00094 boolean ssd_client_add_route_request(
00095         policy_route_msg_t *route,
00096         ssd_reply_notification_handler func,
00097         void * user_data);
00098 
00099 
00123 boolean ssd_client_del_route_request(
00124         policy_route_msg_t *route,
00125         ssd_reply_notification_handler func,
00126         void * user_data);
00127 
00128 
00136 boolean get_ssd_idle(void);
00137 
00138 
00146 void add_pfd_service_route(char * interface_name);
00147 
00148 
00156 void delete_pfd_service_route(char * interface_name);
00157 
00158 
00170 void add_service_route(char * interface_name, in_addr_t address);
00171 
00172 
00183 void delete_service_route(char * interface_name, in_addr_t address);
00184 
00185 
00189 void clean_routes(void);
00190 
00191 #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