ped_filter.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ped_filter.h 361275 2010-02-03 18:43:17Z jamesk $
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_FILTER_H__
00022 #define __PED_FILTER_H__
00023 
00024 #include "ped_policy_table.h"
00025 
00026 /*** Constants ***/
00027 
00028 #define PFD_FILTER_NAME "pfd_filter"  
00029 
00030 /*** Data structures ***/
00031 
00032 
00033 /*** GLOBAL/EXTERNAL Functions ***/
00034 
00038 boolean
00039 is_pfd_filter_on(void);
00040 
00041 
00045 void
00046 turn_on_pfd_filter(void);
00047 
00048 
00052 void
00053 turn_off_pfd_filter(void);
00054 
00055 
00065 int
00066 init_dfw(evContext ctx);
00067 
00068 
00072 void
00073 shutdown_dfw(void);
00074 
00075 
00085 boolean
00086 init_pfd_filter(char * interface_name);
00087 
00088 
00098 boolean
00099 apply_pfd_filter_to_interface(char * interface_name);
00100 
00101 
00102 
00109 void
00110 remove_pfd_filter_from_interface(char * interface_name);
00111 
00112 
00125 boolean
00126 apply_filters_to_interface(
00127             char * interface_name,
00128             ped_policy_filter_t * filters);
00129 
00130 
00140 boolean
00141 remove_filters_from_interface(char * interface_name);
00142 #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