This is unreleased documentation for Tenzir Next version.
For up-to-date documentation, see the latest version (v4.24).
Version: Next
Network Interface
Tenzir supports reading packets from a network interface card (NIC).
The load_nic produces a stream of bytes in
PCAP file format:
We designed load_nic such that it produces a byte stream in the form of a PCAP
file. That is, when the pipeline starts, it first produces a file header,
followed by chunks of packets. This creates a byte stream that is
wire-compatible with the PCAP format, allowing you to exchange load_nic
with load_file and It Just Works™.
After you have structured data in the form of PCAP events, you can use the
decapsulate function to decode the
binary data:
Decapsulation automatically computes a Community
ID for correlation in the
community_id field. You could also use the
community_id function to compute this
value manually for different events.