NetworkInspector.Exporters
0.4.0
dotnet add package NetworkInspector.Exporters --version 0.4.0
NuGet\Install-Package NetworkInspector.Exporters -Version 0.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetworkInspector.Exporters" Version="0.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetworkInspector.Exporters" Version="0.4.0" />
<PackageReference Include="NetworkInspector.Exporters" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NetworkInspector.Exporters --version 0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetworkInspector.Exporters, 0.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NetworkInspector.Exporters@0.4.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NetworkInspector.Exporters&version=0.4.0
#tool nuget:?package=NetworkInspector.Exporters&version=0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetworkInspector.Exporters
User-focused export package for writing either raw frames or parsed packets.
What This Is
NetworkInspector.Exporters contains two exporter families:
- Frame exporters (
IFrameListener): preserve capture frame structure. - Packet exporters (
IPacketListener): serialize parsed packet data for analysis workflows.
Why It Stands Out
- One package covers conversion-oriented and analysis-oriented outputs.
- Consistent builder pattern across formats.
- Practical output targets (file, stream, and stdout depending on exporter).
Install
dotnet add package NetworkInspector.Exporters
Typical packet-export stacks also include:
dotnet add package NetworkInspector.Core
dotnet add package NetworkInspector.Protocols
dotnet add package NetworkInspector.Sources
Choose Your Export Path
| Goal | Input Type | Recommended Path | Typical Formats |
|---|---|---|---|
| Repackage or transform captures | Frames | Frame exporter | PCAPNG, BLF, ASC |
| Produce analysis-ready records | Parsed packets | Packet exporter | JSON, PBF, CSV, Text |
Quick Start
Frame Export Quick Start (PCAPNG)
using NetworkInspector.Exporters.Pcapng;
using PcapngExporter exporter = PcapngExporter.CreateBuilder()
.ToFile("capture.pcapng")
.Build();
foreach (Frame frame in frames)
{
if (!exporter.OnFrame(frame))
{
break;
}
}
exporter.OnFinish();
Packet Export Quick Start (JSON)
using NetworkInspector.Exporters.Json;
using JsonExporter exporter = JsonExporter.CreateBuilder()
.ToFile("packets.json")
.Build();
foreach (Packet packet in packets)
{
if (!exporter.OnPacket(packet))
{
break;
}
}
exporter.OnFinish();
Export Format Map
| Exporter | Output | Use When | Guide |
|---|---|---|---|
PcapngExporter |
.pcapng |
Broad tool compatibility and standard capture exchange | Pcapng/README.md |
BlfExporter |
.blf |
Automotive and CAN-focused pipelines | Blf/README.md |
AscExporter |
.asc |
Human-readable CAN trace files | Asc/README.md |
JsonExporter |
.json |
General analytics and downstream processing | Json/README.md |
PbfExporter |
.pbf |
Compact binary output at scale | Pbf/README.md |
CsvExporter |
.csv |
Spreadsheet and tabular workflows | Csv/README.md |
TextExporter |
.txt |
Readable protocol-tree output | Text/README.md |
Common Tasks
Export To Stdout
Use builders with stdout targets for pipeline-first workflows.
Stop Early On Limits
Pair exporters with upstream count/time/cancellation controls to avoid unbounded runs.
Finalize Correctly
Call OnFinish() before disposal to flush final metadata and trailing structures.
Limits And Thread-Safety Notes
- Treat exporter instances as single-threaded unless a format README states otherwise.
- Exporters do not validate upstream trust assumptions; validate and bound input at source/parse boundaries.
- Feature details (compression, schema variants, dialect nuances) are format-specific and documented in each sub-README.
Safe Usage (STRIDE)
- Spoofing: Preserve source provenance metadata outside the exporter output when chain-of-custody matters.
- Tampering: Surface and log malformed input handling decisions in calling code.
- Repudiation: Persist exporter configuration with output artifacts for reproducibility.
- Information disclosure: Treat JSON/CSV/Text outputs as potentially sensitive and protect destinations accordingly.
- Denial of service: Enforce cancellation and bounded processing in high-volume runs.
- Elevation of privilege: Run exporter processes with least-privilege write access.
Links
- GitHub repository
- NuGet package
- Source folder
- Issue tracker
- Pcapng exporter
- Blf exporter
- Asc exporter
- Json exporter
- Pbf exporter
- Csv exporter
- Text exporter
- Root overview
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- NetworkInspector.Core (>= 0.4.0)
- ZeroAlloc (>= 0.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.