Skip to content

Commit 80cfca3

Browse files
committed
Adjust VLAN plugin
1 parent c0dd03f commit 80cfca3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

process/vlan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ ProcessPlugin *VLANPlugin::copy()
4646
return new VLANPlugin(*this);
4747
}
4848

49-
int VLANPlugin::post_create(Flow &rec, const Packet &pkt)
49+
ProcessPlugin::FlowAction VLANPlugin::post_create(Flow &rec, const Packet &pkt)
5050
{
5151
auto ext = new RecordExtVLAN();
5252
ext->vlan_id = pkt.vlan_id;
5353
rec.add_extension(ext);
54-
return 0;
54+
return ProcessPlugin::FlowAction::GET_ALL_DATA;
5555
}
5656

5757
}

process/vlan.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class VLANPlugin : public ProcessPlugin
117117
RecordExt *get_ext() const { return new RecordExtVLAN(); }
118118
ProcessPlugin *copy();
119119

120-
int post_create(Flow &rec, const Packet &pkt);
120+
ProcessPlugin::FlowAction post_create(Flow &rec, const Packet &pkt);
121121
};
122122

123123
}

0 commit comments

Comments
 (0)