Documentation
¶
Overview ¶
Package mirror replicates the IPFIX packets with spoofing feature to 3rd party collector
Index ¶
Constants ¶
View Source
const ( // IPv4HLen is IP version 4 header length IPv4HLen = 20 // IPv6HLen is IP version 6 header length IPv6HLen = 40 // UDPHLen is UDP header length UDPHLen = 8 // UDPProto is UDP protocol IANA number UDPProto = 17 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents socket connection properties
type IPv4 ¶
IPv4 represents the minimum IPV4 fields which they need to setup.
func NewIPv4HeaderTpl ¶
NewIPv4HeaderTpl constructs IPv4 header template
type IPv6 ¶
type IPv6 struct { Version uint8 TrafficClass uint8 FlowLabel uint32 PayloadLength uint16 NextHeader uint8 HopLimit uint8 }
IPv6 represents IP version 6 header
func NewIPv6HeaderTpl ¶
NewIPv6HeaderTpl returns a new IPv6 as template
Click to show internal directories.
Click to hide internal directories.