Skip to content

Commit 8bf99ff

Browse files
committed
Adjust PHISTS plugin
1 parent 26768f2 commit 8bf99ff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

process/phists.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,22 @@ void PHISTSPlugin::pre_export(Flow &rec)
154154
}
155155
}
156156

157-
int PHISTSPlugin::post_create(Flow &rec, const Packet &pkt)
157+
ProcessPlugin::FlowAction PHISTSPlugin::post_create(Flow &rec, const Packet &pkt)
158158
{
159159
RecordExtPHISTS *phists_data = new RecordExtPHISTS();
160160

161161
rec.add_extension(phists_data);
162162

163163
update_record(phists_data, pkt);
164-
return 0;
164+
return ProcessPlugin::FlowAction::GET_ALL_DATA;
165165
}
166166

167-
int PHISTSPlugin::post_update(Flow &rec, const Packet &pkt)
167+
ProcessPlugin::FlowAction PHISTSPlugin::post_update(Flow &rec, const Packet &pkt)
168168
{
169169
RecordExtPHISTS *phists_data = (RecordExtPHISTS *) rec.get_extension(RecordExtPHISTS::REGISTERED_ID);
170170

171171
update_record(phists_data, pkt);
172-
return 0;
172+
return ProcessPlugin::FlowAction::GET_ALL_DATA;
173173
}
174174

175175
}

process/phists.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ class PHISTSPlugin : public ProcessPlugin
193193
RecordExt *get_ext() const { return new RecordExtPHISTS(); }
194194
ProcessPlugin *copy();
195195

196-
int post_create(Flow &rec, const Packet &pkt);
197-
int post_update(Flow &rec, const Packet &pkt);
196+
ProcessPlugin::FlowAction post_create(Flow &rec, const Packet &pkt);
197+
ProcessPlugin::FlowAction post_update(Flow &rec, const Packet &pkt);
198198

199199
private:
200200
bool use_zeros;

0 commit comments

Comments
 (0)