Back to godoc.org

Directory github.com/google/gopacket/examples

v1.1.18
Latest Go to latest
Published: Jul 22, 2020 | License: BSD-3-Clause | Module: github.com/google/gopacket
Path Synopsis
afpacket afpacket provides a simple example of using afpacket with zero-copy to read packet data.
arpscan arpscan implements ARP scanning of all interfaces' local networks using gopacket and its subpackages.
bidirectional This binary provides an example of connecting up bidirectional streams from the unidirectional streams provided by gopacket/tcpassembly.
bytediff This binary shows how to display byte differences to users via the bytediff library.
httpassembly This binary provides sample code for using the gopacket TCP assembler and TCP stream reader.
pcapdump The pcapdump binary implements a tcpdump-like command line tool with gopacket using pcap as a backend data collection mechanism.
pcaplay The pcaplay binary load an offline capture (pcap file) and replay it on the select interface, with an emphasis on packet timing
pfdump The pfdump binary implements a tcpdump-like command line tool with gopacket using pfring as a backend data collection mechanism.
reassemblydump The pcapdump binary implements a tcpdump-like command line tool with gopacket using pcap as a backend data collection mechanism.
snoopread snoopread is a example for read a snoop file using gopacket and its subpackages and output the decoded data with a package count
statsassembly This binary provides sample code for using the gopacket TCP assembler raw, without the help of the tcpreader library.
synscan synscan implements a TCP syn scanner on top of pcap.
util Package util provides shared utilities for all gopacket examples.