Documentation
¶
Overview ¶
Package packet is a wrapper for GoPacket and sub packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.2.1
type Options struct {
// contains filtered or unexported fields
}
Options represents dump options
type Packet ¶
type Packet struct {
// packet layers data
Eth *layers.Ethernet
ARP *layers.ARP
IPv4 *layers.IPv4
IPv6 *layers.IPv6
TCP *layers.TCP
UDP *layers.UDP
ICMPv4 *layers.ICMPv4
ICMPv6 *layers.ICMPv6
SrcHost []string
DstHost []string
Payload []byte
// contains filtered or unexported fields
}
Packet holds all layers information
func NewPacket ¶
NewPacket creates an empty packet info
func ParsePacketLayers ¶
ParsePacketLayers decodes layers (Lazy Decoding)
func (*Packet) Banner ¶ added in v0.2.4
Banner prints out info that related to packet capturing
Source Files
¶
- packet.go
Click to show internal directories.
Click to hide internal directories.