Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteHeader ¶
WriteHeader writes a Section Header Block (SHB) and an Interface Description Block (IDB) to the pcapng file.
The SHB contains metadata about the capture, and the IDB describes the interface that the packets were captured on.
func (*Writer) WritePacket ¶
WritePacket writes an Enhanced Packet Block (EPB) to the file.
https://www.ietf.org/archive/id/draft-tuexen-opsawg-pcapng-05.html#name-enhanced-packet-block
Click to show internal directories.
Click to hide internal directories.