diff --git a/source/firewall/firewall.c b/source/firewall/firewall.c index 7d94dbac..e55e03c1 100644 --- a/source/firewall/firewall.c +++ b/source/firewall/firewall.c @@ -870,7 +870,6 @@ void firewall_log( char* fmt, ...) #ifdef WAN_FAILOVER_SUPPORTED unsigned int Get_Device_Mode() { - FIREWALL_DEBUG("Inside Get_Device_Mode\n"); syscfg_get(NULL, "Device_Mode", dev_type, sizeof(dev_type)); unsigned int dev_mode = atoi(dev_type); Dev_Mode mode; @@ -926,7 +925,6 @@ char* get_iface_ipaddr(const char* iface_name) bool isServiceNeeded() { - FIREWALL_DEBUG("Inside isServiceNeeded\n"); if (Get_Device_Mode()==EXTENDER_MODE) { FIREWALL_DEBUG("Service Not Needed\n"); @@ -945,7 +943,6 @@ bool isServiceNeeded() } } - FIREWALL_DEBUG("returning true\n"); return TRUE; } #endif @@ -3313,7 +3310,6 @@ int do_single_port_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *f FIREWALL_DEBUG("Entering do_single_port_forwarding\n"); #if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) BOOL isBothProtocol = FALSE; - BOOL isFeatureDisabled = TRUE; #endif query[0] = '\0'; rc = syscfg_get(NULL, "SinglePortForwardCount", query, sizeof(query)); @@ -3328,12 +3324,6 @@ int do_single_port_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *f count = MAX_SYSCFG_ENTRIES; } } -#if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) - { - FIREWALL_DEBUG("PortMapping:Feature Enable %d\n" COMMA TRUE); - isFeatureDisabled = FALSE; - } -#endif for (idx=1 ; idx<=count ; idx++) { namespace[0] = '\0'; @@ -3685,12 +3675,6 @@ int do_single_port_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *f #endif } SinglePortForwardNext: -#if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) - if(isFeatureDisabled == TRUE) - { - FIREWALL_DEBUG("PortMapping:Feature Enable %d\n" COMMA FALSE); - } -#endif FIREWALL_DEBUG("Exiting do_single_port_forwarding\n"); return(0); } @@ -3714,7 +3698,6 @@ int do_port_range_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *fi int count; #if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) BOOL isBothProtocol = FALSE; - BOOL isFeatureDisabled = TRUE; #endif #ifdef CISCO_CONFIG_TRUE_STATIC_IP @@ -3735,10 +3718,6 @@ int do_port_range_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *fi count = MAX_SYSCFG_ENTRIES; } } -#if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) - FIREWALL_DEBUG("PortMapping:Feature Enable %d\n" COMMA TRUE); - isFeatureDisabled = FALSE; -#endif for (idx=1 ; idx<=count ; idx++) { namespace[0] = '\0'; @@ -4142,13 +4121,6 @@ int do_port_range_forwarding(FILE *nat_fp, FILE *filter_fp, int iptype, FILE *fi } PortRangeForwardNext: -#if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46) - if (isFeatureDisabled == TRUE) - { - FIREWALL_DEBUG("PortMapping:Feature Enable %d\n" COMMA FALSE); - } -#endif - FIREWALL_DEBUG("Exiting do_port_range_forwarding\n"); return(0); @@ -6343,7 +6315,6 @@ static int remote_access_set_proto(FILE *filt_fp, FILE *nat_fp, const char *port char httpsport[64] = {0}; char tmpQuery[MAX_QUERY]; - FIREWALL_DEBUG("Entering remote_access_set_proto\n"); ret = syscfg_get(NULL, "mgmt_wan_httpport", httpport, sizeof(port)); #if defined(CONFIG_CCSP_WAN_MGMT_PORT) tmpQuery[0] = '\0'; @@ -6384,7 +6355,6 @@ static int remote_access_set_proto(FILE *filt_fp, FILE *nat_fp, const char *port fprintf(filt_fp, "-A INPUT -i %s %s -p tcp -m tcp --dport %s -j ACCEPT\n", interface, src, port); } } - FIREWALL_DEBUG("Exiting remote_access_set_proto\n"); return 0; } int wan_lan_webui_attack(FILE *fp, const char *interface)