Skip to content

Commit 5f7e4ed

Browse files
ZadamsaSiskaPavel
authored andcommitted
Adjust OVPN plugin
1 parent a9429aa commit 5f7e4ed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

process/ovpn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,20 @@ void OVPNPlugin::update_record(RecordExtOVPN* vpn_data, const Packet& pkt)
179179
return;
180180
}
181181

182-
int OVPNPlugin::post_create(Flow& rec, const Packet& pkt)
182+
ProcessPlugin::FlowAction OVPNPlugin::post_create(Flow& rec, const Packet& pkt)
183183
{
184184
RecordExtOVPN* vpn_data = new RecordExtOVPN();
185185
rec.add_extension(vpn_data);
186186

187187
update_record(vpn_data, pkt);
188-
return 0;
188+
return ProcessPlugin::FlowAction::GET_ALL_DATA;
189189
}
190190

191-
int OVPNPlugin::pre_update(Flow& rec, Packet& pkt)
191+
ProcessPlugin::FlowAction OVPNPlugin::pre_update(Flow& rec, Packet& pkt)
192192
{
193193
RecordExtOVPN* vpn_data = (RecordExtOVPN*) rec.get_extension(RecordExtOVPN::REGISTERED_ID);
194194
update_record(vpn_data, pkt);
195-
return 0;
195+
return ProcessPlugin::FlowAction::GET_ALL_DATA;
196196
}
197197

198198
void OVPNPlugin::pre_export(Flow& rec)

process/ovpn.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class OVPNPlugin : public ProcessPlugin {
121121
RecordExt* get_ext() const { return new RecordExtOVPN(); }
122122
ProcessPlugin* copy();
123123

124-
int post_create(Flow& rec, const Packet& pkt);
125-
int pre_update(Flow& rec, Packet& pkt);
124+
ProcessPlugin::FlowAction post_create(Flow& rec, const Packet& pkt);
125+
ProcessPlugin::FlowAction pre_update(Flow& rec, Packet& pkt);
126126
void update_record(RecordExtOVPN* vpn_data, const Packet& pkt);
127127
void pre_export(Flow& rec);
128128

0 commit comments

Comments
 (0)