Skip to content

Commit 757f348

Browse files
authored
Emit log if we have network traffic on reassembly complete (#104)
I'm suspicious of the `toPNT` call within `reassemblyComplete`. I wonder if these is where we are getting the zero timestamp.
1 parent 4240f82 commit 757f348

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pcap/net_parse.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ func (p *NetworkTrafficParser) packetToParsedNetworkTraffic(out chan<- akinet.Pa
269269
}
270270

271271
func contextFromTCPPacket(p gopacket.Packet, t *layers.TCP) *assemblerCtxWithSeq {
272+
printer.V(6).Debugf("contextFromTCPPacket created with packet timestamp: %v", p.Metadata().CaptureInfo.Timestamp)
272273
return &assemblerCtxWithSeq{
273274
ci: p.Metadata().CaptureInfo,
274275
seq: reassembly.Sequence(t.Seq),

pcap/stream.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ func (f *tcpFlow) reassemblyComplete() {
211211
if err != nil {
212212
f.handleUnparseable(t, numBytesConsumed)
213213
} else if pnc != nil {
214+
printer.V(6).Infof("ReassemblyComplete parsed additional network traffic with ts: %v", t)
214215
f.outChan <- f.toPNT(t, t, pnc)
215216
f.handleUnparseable(t, unused.Len())
216217
}

0 commit comments

Comments
 (0)