Skip to content

Commit

Permalink
Merge branch 'master' into variable_packetbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
monicasarbu committed Sep 29, 2015
2 parents 3e37e51 + 453f59c commit 7f33ab5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protos/tcp/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (tcp *Tcp) Process(tcphdr *layers.TCP, pkt *protos.Packet) {
// don't follow
return
}
logp.Debug("tcp", "Stream doesn't exists, creating new")
logp.Debug("tcp", "Stream doesn't exist, creating new")

// create
stream = &TcpStream{id: tcp.getId(), tuple: &pkt.Tuple, protocol: protocol, tcp: tcp}
Expand All @@ -143,8 +143,7 @@ func (tcp *Tcp) Process(tcphdr *layers.TCP, pkt *protos.Packet) {
stream.lastSeq[original_dir] != 0 {

if tcpSeqBeforeEq(tcp_seq, stream.lastSeq[original_dir]) {

logp.Debug("tcp", "Ignoring what looks like a retrasmitted segment. pkt.seq=%v len=%v stream.seq=%v",
logp.Debug("tcp", "Ignoring what looks like a retransmitted segment. pkt.seq=%v len=%v stream.seq=%v",
tcphdr.Seq, len(pkt.Payload), stream.lastSeq[original_dir])
return
}
Expand Down

0 comments on commit 7f33ab5

Please sign in to comment.