// AddData will call f.AddPacket for each packet in d where f.TCPTuple.MatchFlow
// is true.  This is a faster way to create a TCPFlow if you know you are only
// interested in the TCP traffic for a single TCPTuple.
AddData will call f.AddPacket for each packet in d where f.TCPTuple.MatchFlow
is true.  This is a faster way to create a TCPFlow if you know you are only
interested in the TCP traffic for a single TCPTuple.
// AddData will call f . AddPacket for each packet in d where f . TCPTuple . MatchFlow // is true . This is a faster way to create a TCPFlow if you know you are only // interested in the TCP traffic for a single TCPTuple .
func (f *TCPFlow) AddData(d []*pkt.Packet) {
	for i := range d {
		t, err := NewTCPTuple(d[i])
		if err != nil {
			continue
		}
		if t.MatchFlow(f.TCPTuple) {
			_ = f.AddPacket(d[i])
		}
	}
}
func ( f * TCPFlow ) AddData ( d [ ] * pkt . Packet ) { for i := range d { t , err := NewTCPTuple ( d [ i ] ) if err != nil { continue } if t . MatchFlow ( f . TCPTuple ) { _ = f . AddPacket ( d [ i ] ) } } }
AddData will call f.AddPacket for each packet in d where f.TCPTuple.MatchFlow
is true.
AddData will call f . AddPacket for each packet in d where f . TCPTuple . MatchFlow is true .