/* ****************************************************************************** * INTERPEAK CONFIGURATION HEADER FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipfirewall_config.h,v $ $Revision: 1.24.48.1 $ * $Source: /home/interpeak/CVSRoot/ipfirewall/config/ipfirewall_config.h,v $ * $Author: svc-cmnet $ $Date: 2013-03-13 07:45:23 $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Markus Carlstedt ****************************************************************************** */ #ifndef IPFIREWALL_CONFIG_H #define IPFIREWALL_CONFIG_H /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** * Firewall compile time configuration. */ /* **************************************************************************** * 2 INCLUDE FILES **************************************************************************** */ #include "ipcom_config.h" #ifdef __cplusplus extern "C" { #endif /* **************************************************************************** * 3 DEFINES **************************************************************************** */ /* * IMPORTANT: Do not edit this file in case you are using the LKM port * All the options below are configurable through the * Linux kernel configuration tool (make menuconfig) * */ #ifndef IP_PORT_LKM /* *=========================================================================== * IPFIREWALL_USE_MAC_FILTER *=========================================================================== * Define to enable the MAC filter. */ #define IPFIREWALL_USE_MAC_FILTER /* *=========================================================================== * IPFIREWALL_USE_MAC_STATISTICS *=========================================================================== * Define to enable update of MAC filter statistics counters. */ #define IPFIREWALL_USE_MAC_STATISTICS /* *=========================================================================== * IPFIREWALL_BLOCK_IF_NO_MAC_MATCH *=========================================================================== * Define to block packets if no MAC filter rule matched. Default * action is to pass packets that do not match any rules. */ /* #define IPFIREWALL_BLOCK_IF_NO_MAC_MATCH */ /* *=========================================================================== * IPFIREWALL_BLOCK_MAC_INVALID *=========================================================================== * Define to block invalid packets in the MAC filter. Invalid packets are * packets that are too short to contain a complete MAC header. */ /* #define IPFIREWALL_BLOCK_MAC_INVALID */ /* *=========================================================================== * IPFIREWALL_USE_IP_FILTER *=========================================================================== * Define to enable the IP filter. */ #define IPFIREWALL_USE_IP_FILTER /* *=========================================================================== * IPFIREWALL_USE_IP_STATEFUL *=========================================================================== * Define to enable stateful IP Filter */ #define IPFIREWALL_USE_IP_STATEFUL /* *=========================================================================== * IPFIREWALL_USE_IP_STATISTICS *=========================================================================== * Define to enable update of IP filter statistics counters. */ #define IPFIREWALL_USE_IP_STATISTICS /* *=========================================================================== * IPFIREWALL_BLOCK_IF_NO_IP_MATCH *=========================================================================== * Define to block packets if no IP filter rule matched. Default action * is to pass packets that do not match any rules. */ /* #define IPFIREWALL_BLOCK_IF_NO_IP_MATCH */ /* *=========================================================================== * IPFIREWALL_BLOCK_IP_INVALID *=========================================================================== * Define to block invalid packets in the IP filter. Invalid packets are * packets that are too short to contain a complete transport header. */ #define IPFIREWALL_BLOCK_IP_INVALID /* *=========================================================================== * IPFIREWALL_USE_USERDEF *=========================================================================== * Define to enable user defined extensions */ #ifdef IPFIREWALL_USE_IP_FILTER #define IPFIREWALL_USE_USERDEF #endif /* *=========================================================================== * IPFIREWALL_USE_USERDEF_EXAMPLE *=========================================================================== * Define to enable the example user defined function */ #if defined(IPFIREWALL_USE_USERDEF) && !defined(IP_PORT_LKM) #define IPFIREWALL_USE_USERDEF_EXAMPLE #endif /* *=========================================================================== * IPFIREWALL_USE_HTTP_FILTER *=========================================================================== * Define to enable http content filtering */ #if defined(IPFIREWALL_USE_USERDEF) && !defined(IP_PORT_LKM) #define IPFIREWALL_USE_HTTP_FILTER #endif /* *=========================================================================== * IPFIREWALL_USE_HTTP_FILTER_TEST *=========================================================================== * Define to enable http content filtering test */ #if defined(IPFIREWALL_USE_HTTP_FILTER) && !defined(IP_PORT_LKM) #define IPFIREWALL_USE_HTTP_FILTER_TEST #endif /* *=========================================================================== * Configuration check *=========================================================================== */ #if !defined(IPFIREWALL_USE_MAC_FILTER) && !defined(IPFIREWALL_USE_IP_FILTER) #error "At least one filter type must be enabled!!!" #endif #endif /* IP_PORT_LKM */ /* **************************************************************************** * 4 TYPES **************************************************************************** */ /* **************************************************************************** * 5 FUNCTIONS **************************************************************************** */ #ifdef __cplusplus } #endif #endif /* **************************************************************************** * END OF FILE **************************************************************************** */