pfd_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: pfd_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 
00023 #ifndef __PFD_CONFIG_H__
00024 #define __PFD_CONFIG_H__
00025 
00026 #include <time.h>
00027 #include <isc/eventlib.h>
00028 #include <jnx/aux_types.h>
00029 #include <jnx/bits.h>
00030 #include <jnx/patricia.h>
00031 #include <netinet/in.h>
00032 
00033 
00034 /*** Constants ***/
00035 
00036 
00037 /*** Data Structures ***/
00038 
00039 
00044 typedef struct {
00045     patnode    node;    
00046     in_addr_t  address; 
00047 } pfd_auth_user_t;
00048 
00049 
00050 /*** GLOBAL/EXTERNAL Functions ***/
00051 
00052 
00063 status_t init_config(evContext ctx);
00064 
00065 
00069 void clear_config(void);
00070 
00071 
00078 void add_auth_user_addr(in_addr_t addr);
00079 
00080 
00087 void delete_auth_user_addr(in_addr_t addr);
00088 
00089 
00098 boolean is_auth_user(in_addr_t addr);
00099 
00100 
00107 in_addr_t get_pfd_address(void);
00108 
00109 
00116 void set_pfd_address(in_addr_t addr);
00117 
00118 
00125 in_addr_t get_cpd_address(void);
00126 
00127 
00134 void set_cpd_address(in_addr_t addr);
00135 
00136 
00143 time_t get_current_time(void);
00144 
00145 #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