policy_ipc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: policy_ipc.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 
00023 #ifndef _POLICY_IPC_H_
00024 #define _POLICY_IPC_H_
00025 
00026 /*** Constants ***/
00027 
00031 #define PED_PORT_NUM 7079
00032 
00036 #define CPD_PORT_NUM 7079
00037 
00038 
00039 /*** Data Structures ***/
00040 
00044 typedef enum {
00045     MSG_ID = 1,   
00046     MSG_PEER,     
00047     MSG_ADDRESSES 
00048 } ped_msg_type_e;
00049 
00053 typedef enum {
00054     MSG_GET_AUTH_LIST,  
00055     MSG_AUTH_ENTRY_ADD, 
00056     MSG_AUTH_ENTRY_DEL  
00057 } cpd_msg_type_e;
00058 
00059 /*
00060  * Data types:
00061  */
00062 
00066 typedef enum {
00067     ID_PED = 1, 
00068     ID_CPD,     
00069     ID_PFD      
00070 } component_id_e;
00071 // note: enums should compile to an int so we should use htonl/ntohl
00072 
00073 /*
00074  * pconn_peer_info_t is the data value for the MSG_PEER message
00075  */
00076 
00077 /*
00078  * The address data value type for CPD/PFD addresses is in_addr_t (4-bytes)
00079  * The order of the data is CPD address first, then PFD address.
00080  */
00081 
00087 #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: Packet Filtering Daemon (pfd) 1.0 by Doxygen 1.5.1