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