FREE(chain);
}
- if (direction > STC_FIREWALL_DIRECTION_NONE &&
- direction <= STC_FIREWALL_DIRECTION_OUT) {
- ret = stc_firewall_rule_get_direction(rule_h, &direction);
- if (ret == STC_ERROR_NONE)
- msg("Direction: " LOG_CYAN "[%s]" LOG_END,
- test_stc_convert_fw_direction_to_string(direction));
- }
+ ret = stc_firewall_rule_get_direction(rule_h, &direction);
+ if (ret == STC_ERROR_NONE)
+ msg("Direction: " LOG_CYAN "[%s]" LOG_END,
+ test_stc_convert_fw_direction_to_string(direction));
ret = stc_firewall_rule_get_ifname(rule_h, &ifname);
if (ret == STC_ERROR_NONE) {
FREE(s_ip2);
}
- if (d_ip_type > STC_FIREWALL_IP_NONE &&
- d_ip_type <= STC_FIREWALL_IP_RANGE) {
- ret = stc_firewall_rule_get_dst_ip_type(rule_h, &d_ip_type);
- if (ret == STC_ERROR_NONE)
- msg("DstIPtype: " LOG_CYAN "[%s]" LOG_END,
- test_stc_convert_fw_ip_type_to_string(d_ip_type));
- }
+ ret = stc_firewall_rule_get_dst_ip_type(rule_h, &d_ip_type);
+ if (ret == STC_ERROR_NONE)
+ msg("DstIPtype: " LOG_CYAN "[%s]" LOG_END,
+ test_stc_convert_fw_ip_type_to_string(d_ip_type));
ret = stc_firewall_rule_get_dst_ip(rule_h, &d_ip1, &d_ip2);
if (ret == STC_ERROR_NONE) {