Skip to content

Commit

Permalink
Adjust VLAN plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Zadamsa committed Oct 3, 2024
1 parent 3fc1136 commit 1007c9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions process/vlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ ProcessPlugin *VLANPlugin::copy()
return new VLANPlugin(*this);
}

int VLANPlugin::post_create(Flow &rec, const Packet &pkt)
ProcessPlugin::FlowAction VLANPlugin::post_create(Flow &rec, const Packet &pkt)
{
auto ext = new RecordExtVLAN();
ext->vlan_id = pkt.vlan_id;
rec.add_extension(ext);
return 0;
return ProcessPlugin::FlowAction::GET_ALL_DATA;
}

}
Expand Down
2 changes: 1 addition & 1 deletion process/vlan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class VLANPlugin : public ProcessPlugin
RecordExt *get_ext() const { return new RecordExtVLAN(); }
ProcessPlugin *copy();

int post_create(Flow &rec, const Packet &pkt);
ProcessPlugin::FlowAction post_create(Flow &rec, const Packet &pkt);
};

}
Expand Down

0 comments on commit 1007c9c

Please sign in to comment.