You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>To create the process plugin follow these steps:</p>
20
+
<ol>
21
+
<li><p>Add <b>plugin_name.hpp</b> and <b>plugin_name.cpp</b> files to ipfixprobe_process_src variable in <b>Makefile.am</b>.</p></li>
22
+
<li><p>Implement process plugin event functions. Don't forget to remove unused events to keep default implementation.</p></li>
23
+
<li><p>Set <b>PLUGIN_NAME_UNIREC_TEMPLATE</b> and <b>IPFIX_PLUGIN_NAME_TEMPLATE</b> macros to export Unirec or IPFIX data respectively.</p></li>
24
+
<li><p>Define Unirec and IPFIX fields to export Unirec or IPFIX respectively.</p></li>
25
+
<li><p>Implement <b>fill_ipfix</b> and <b>fill_unirec</b>.</p></li>
26
+
<li><p>Update README.md.</p></li>
27
+
</ol>
28
+
</span>
29
+
<h2>Process plugin events</h2>
30
+
<p><b>pre_create</b> Is called before the creation of new flow from the initial packet.</p>
31
+
<p><b>post_create</b> is called after the flow is created, taket newly created flow and initial packet.</p>
32
+
<p><b>pre_update</b> is called when incoming packet belongs to the existing flow, before the data from the packet are added to the flow.</p>
33
+
<p><b>post_update</b> is called after the data of the packet are added to the flow.</p>
34
+
<p><b>pre_export</b> is called right before the flow is exported.</p>
35
+
</div>
36
+
<h1>Input plugin</h1>
37
+
<p>You can also create own input plugin.</p>
38
+
<span>
39
+
<p>To create the input plugin follow these steps:</p>
40
+
<ol>
41
+
<li>Create <b>plugin_name.hpp</b> and <b>plugin_name.cpp</b> in the <b>input</b> directory.</li>
42
+
<li>Add <b>plugin_name.hpp</b> and <b>plugin_name.cpp</b> files to ipfixprobe_input_src variable in <b>Makefile.am</b>.</li>
43
+
<li>Create a plugin class that inherites from the Input plugin class.</li>
44
+
<li>Override virtual Plugin class methods (<i>init</i>, <i>close</i>, <i>get_parser</i>, <i>get_name</i>) and Input plugin method to receive new packets(<i>get</i>).</li>
0 commit comments