Skip to content

Commit

Permalink
Merge pull request #36 from negbie/master
Browse files Browse the repository at this point in the history
Look for CSeq & Cseq
  • Loading branch information
negbie committed Mar 28, 2018
2 parents 4cdb612 + bad67d4 commit da36e54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ func (d *Decoder) Process(data []byte, ci *gopacket.CaptureInfo) (*Packet, error
logp.Debug("payload", "\n%s", string(appLayer.Payload()))
if bytes.Contains(appLayer.Payload(), []byte("CSeq")) {
pkt.ProtoType = 1
} else if bytes.Contains(appLayer.Payload(), []byte("Cseq")) {
pkt.ProtoType = 1
}
}

Expand Down

0 comments on commit da36e54

Please sign in to comment.