File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ #include " fieldManager.hpp"
2+ #include " flowKey.hpp"
3+ #include " flowRecordBuilder.hpp"
4+ #include " icmp.hpp"
5+ #include " processPluginBuilder.hpp"
6+ #include " textOutputPlugin.hpp"
7+
8+ #include < iostream>
9+
10+ using namespace ipxp ;
11+
12+ int main ()
13+ {
14+ FieldManager fieldManager;
15+ ProcessPlugins processPlugins (fieldManager);
16+
17+ processPlugins.addProcessPlugin (" TestDummy" , " Params" );
18+
19+ processPlugins.disableProcessPlugin (" TestDummy" );
20+ processPlugins.enableProcessPlugin (" TestDummy" );
21+
22+ FlowRecordBuilder builder (processPlugins.getEntries (), VlanFlowKeyLayout);
23+
24+ builder.printLayoutInfo ();
25+
26+ auto flowRecord = builder.build ();
27+
28+ /* *
29+ processPlugins.forEachPlugin(
30+ flowRecord.get(),
31+ [&](FlowRecord* flowRecord, ProcessPlugin* plugin, void* pluginContext) {
32+ plugin->onInit(*flowRecord, pluginContext, Packet(), PacketFeatures());
33+ });
34+ */
35+
36+ TextOutputPlugin textOutputPlugin (fieldManager, processPlugins.getEntries ());
37+ textOutputPlugin.processRecord (flowRecord);
38+
39+ return 0 ;
40+ }
You can’t perform that action at this time.
0 commit comments