change -> normalizers: 'trim_rst' ==> 'trim'
change -> normalizers: 'trim_syn' ==> 'trim'
change -> normalizers: 'trim_win' ==> 'trim'
-change -> paf_max: 'paf_max [0:63780]' ==> 'paf_max [1460:63780]'
+change -> paf_max: 'paf_max [0:63780]' ==> 'max_pdu [1460:63780]'
change -> perfmonitor: 'accumulate' ==> 'reset = false'
change -> perfmonitor: 'flow-file' ==> 'flow_file = true'
change -> perfmonitor: 'flow-ip' ==> 'flow_ip'
{
Converter cv;
- if (cv.convert(input_file, input_file + ".lua") < 0)
+ if (cv.convert(full_path, full_path + ".lua") < 0)
rc = false;
-
- parse_file(full_path);
}
}
class PolicyId : public ConversionState
{
public:
- PolicyId() : ConversionState() {};
- virtual ~PolicyId() {};
+ PolicyId(Converter& c) : ConversionState(c) { }
+ virtual ~PolicyId() { }
virtual bool convert(std::istringstream& data_stream);
};
******* A P I ***********
**************************/
-static ConversionState* ctor()
-{
- return new PolicyId();
-}
+static ConversionState* ctor(Converter& c)
+{ return new PolicyId(c); }
static const ConvertMap policy_id_api =
{
config policy_mode: tap
event_filter gen_id 119,sig_id 404,type limit, track by_src, count 10,seconds 20
rate_filter gen_id 119,sig_id 404, track by_src, count 10,seconds 20, timeout 50, new_action reject, apply_to [[2.3.4.5/24],!3.3.4.5/24]
+config paf_max: 54321
config paf_max: 00
config ignore_ports: tcp 21 6667:6671 1356
config ignore_ports: udp 1:17 53