File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -69,33 +69,33 @@ ProcessPlugin *SIPPlugin::copy()
6969 return new SIPPlugin (*this );
7070}
7171
72- int SIPPlugin::post_create (Flow &rec, const Packet &pkt)
72+ ProcessPlugin::FlowAction SIPPlugin::post_create (Flow &rec, const Packet &pkt)
7373{
7474 uint16_t msg_type;
7575
7676 msg_type = parse_msg_type (pkt);
7777 if (msg_type == SIP_MSG_TYPE_INVALID) {
78- return 0 ;
78+ return ProcessPlugin::FlowAction::NO_PROCESS ;
7979 }
8080
8181 RecordExtSIP *sip_data = new RecordExtSIP ();
8282 sip_data->msg_type = msg_type;
8383 rec.add_extension (sip_data);
8484 parser_process_sip (pkt, sip_data);
8585
86- return 0 ;
86+ return ProcessPlugin::FlowAction::GET_ALL_DATA ;
8787}
8888
89- int SIPPlugin::pre_update (Flow &rec, Packet &pkt)
89+ ProcessPlugin::FlowAction SIPPlugin::pre_update (Flow &rec, Packet &pkt)
9090{
9191 uint16_t msg_type;
9292
9393 msg_type = parse_msg_type (pkt);
9494 if (msg_type != SIP_MSG_TYPE_INVALID) {
95- return FLOW_FLUSH_WITH_REINSERT ;
95+ return ProcessPlugin::FlowAction::FLUSH_WITH_REINSERT ;
9696 }
9797
98- return 0 ;
98+ return ProcessPlugin::FlowAction::GET_ALL_DATA ;
9999}
100100
101101void SIPPlugin::finish (bool print_stats)
Original file line number Diff line number Diff line change @@ -496,8 +496,8 @@ class SIPPlugin : public ProcessPlugin {
496496 std::string get_name () const { return " sip" ; }
497497 RecordExt *get_ext () const { return new RecordExtSIP (); }
498498 ProcessPlugin *copy ();
499- int post_create (Flow &rec, const Packet &pkt);
500- int pre_update (Flow &rec, Packet &pkt);
499+ ProcessPlugin::FlowAction post_create (Flow &rec, const Packet &pkt);
500+ ProcessPlugin::FlowAction pre_update (Flow &rec, Packet &pkt);
501501 void finish (bool print_stats);
502502
503503private:
You can’t perform that action at this time.
0 commit comments