in collector/collector.go [104:117]
func (ms messageStore) existsSent(target string, QosDSCPIndex uint8, srcPort layers.TCPPort) (tcp.Message, bool) {
if _, exists := ms[target]; !exists {
return tcp.Message{}, false
}
if ms[target][QosDSCPIndex].sent == nil {
return tcp.Message{}, false
}
matchedMsg, existsMatch := ms[target][QosDSCPIndex].sent[srcPort]
if !existsMatch {
return tcp.Message{}, false
}
return matchedMsg, true
}