Skip to content

New input/process plugin to accept IPFIX flow records on a socket #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lokeshdh
Copy link

The devices that we use have IPFIX support in the silicon which allows us to identify IPFIX flows. This new plugin allows the IPFIX flow data to be passed onto the IPFIXPROBE's sock(Unix domain socket) plugin which allows the tool to generate IPFIX data packets and export them to the collector.

Additional changes:

  • Some bug fixes identified during testing.
  • To not increase the device's release file size I have made following support conditional:
    Making LZ4 conditionally compile via -DENABLE_OUTPUT_LZ4=ON
    Making UNWIND conditionally compile via -DENABLE_UNWIND=ON

lokeshdh added 5 commits June 26, 2025 13:31
Systems were ipfix traffic is metered/counted by the
hardware support this new input plugin sock and the
corresponding process plugin sockpktinfo can be useful
to receive and process ipfix flow information in form
of switch records via a unix domain socket which then
can be formatted in ipfix data packet and exported to
a collector via ipfixprobe.

Add some new fields for IPv4 and IPv6 that could be
useful.
Make sure fd is valid before exporting data to
the collector.
If the sock stream connection with the collector is
disrupted and socket is still being written to then
it can generate a SIGPIPE which is not being handled.
This patch allows SIGPIPE signal to be ignored. The
EPIPE error is handled after the sendto call.
@lokeshdh lokeshdh changed the title New input/process plugin to accept IPFIX flow records from a device New input/process plugin to accept IPFIX flow records on a socket Jun 29, 2025
@SiskaPavel SiskaPavel self-requested a review July 1, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant