Documentation
¶
Index ¶
Constants ¶
View Source
const ( EchoRequest echoType = iota + 1 EchoReply )
'Echo' Types
Variables ¶
This section is empty.
Functions ¶
func EchoTargets ¶
func EchoTargets(
remotes interface{},
conn *ip.Conn,
targetPort layers.TCPPort,
srcPortRange PortRange,
QoSEnabled bool,
currentDSCP *ip.DSCPValue,
realBatchInterval time.Duration,
batchEndCycle *time.Ticker,
sentC chan Message,
senderOnlyMode bool,
completeCycleUpload chan bool,
finishedCycleUpload *sync.WaitGroup,
kill chan struct{},
logger *log.Logger,
)
EchoTargets sends echoes (SYNs) to all targets included in 'remotes.'
Types ¶
type Message ¶
type Message struct {
Type echoType
SrcAddr net.IP
DstAddr net.IP
Af int
SrcPort layers.TCPPort
DstPort layers.TCPPort
QosDSCP ip.DSCPValue
Ts Timestamp
Seq uint32
Ack uint32
}
Message is filled with the info about the 'echo' request sent or 'echo' reply received and emitted onto the 'sent' and 'rcvd' channels, respectively, for further processing by the collector.
Click to show internal directories.
Click to hide internal directories.