Documentation ¶
Index ¶
Constants ¶
View Source
const ( EchoRequest echoType = iota + 1 EchoReply )
'Echo' Types
Variables ¶
View Source
var GetDSCP = DSCPSlice{ DSCPBeLow, DSCPBeHigh, DSCPBulkLow, DSCPBulkHigh, DSCPTier2Low, DSCPTier2High, DSCPTier1Low, DSCPTier1High, DSCPTier0Low, DSCPNc6, DSCPNc7, }
GetDSCP holds all the DSCP values in a slice.
Functions ¶
func EchoTargets ¶
func EchoTargets( remotes interface{}, srcAddr *net.IP, targetPort uint16, srcPortRange PortRange, QoSEnabled bool, currentDSCP *DSCPValue, realBatchInterval time.Duration, batchEndCycle *time.Ticker, sentC chan Message, senderOnlyMode bool, completeCycleUpload chan bool, finishedCycleUpload *sync.WaitGroup, kill chan struct{}, logger zap.Logger, )
EchoTargets sends echoes (SYNs) to all targets included in 'remotes.'
Types ¶
type DSCPValue ¶
type DSCPValue uint8
DSCPValue represents a QoS DSCP value.
const ( DSCPBeLow DSCPValue = 0 // 000000 BE DSCPBeHigh DSCPValue = 4 // 000001 BE DSCPBulkLow DSCPValue = 40 // 001010 AF11 DSCPBulkHigh DSCPValue = 56 // 001110 AF13 DSCPTier2Low DSCPValue = 72 // 010010 AF21 DSCPTier2High DSCPValue = 88 // 010110 AF23 DSCPTier1Low DSCPValue = 104 // 011010 AF31 DSCPTier1High DSCPValue = 120 // 011110 AF33 DSCPTier0Low DSCPValue = 160 // 101000 EF DSCPNc6 DSCPValue = 192 // 110000 CS6 DSCPNc7 DSCPValue = 224 // 111000 CS7 )
QoS DSCP values mapped to TOS.
type Message ¶
type Message struct { Type echoType SrcAddr net.IP DstAddr net.IP Af string SrcPort uint16 DstPort uint16 QosDSCP 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.
func (Message) FromExternalTarget ¶
FromExternalTarget returns true if message has been received from external server and not an arachne agent.
Click to show internal directories.
Click to hide internal directories.