Skip to content

Commit

Permalink
Merge pull request #53 from negbie/master
Browse files Browse the repository at this point in the history
Sync
  • Loading branch information
negbie authored Jun 16, 2018
2 parents 13b9eab + d973bb0 commit 080e866
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 790 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

import (
"github.com/negbie/heplify/logp"
"github.com/negbie/logp"
)

var Cfg Config
Expand Down
2 changes: 1 addition & 1 deletion decoder/correlator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"strconv"

"github.com/negbie/heplify/logp"
"github.com/negbie/heplify/protos"
"github.com/negbie/logp"
)

// cacheSDPIPPort will extract the source IP, source Port from SDP body and CallID from SIP header.
Expand Down
5 changes: 3 additions & 2 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/google/gopacket/layers"
"github.com/negbie/heplify/config"
"github.com/negbie/heplify/ip4defrag"
"github.com/negbie/heplify/logp"
"github.com/negbie/heplify/protos"
"github.com/negbie/logp"
)

type Decoder struct {
Expand Down Expand Up @@ -196,7 +196,8 @@ func (d *Decoder) Process(data []byte, ci *gopacket.CaptureInfo) (*Packet, error

pb, ok := packet.(gopacket.PacketBuilder)
if !ok {
logp.Critical("Not a PacketBuilder")
logp.Err("Not a PacketBuilder")
return nil, nil
}
nextDecoder := ip4New.NextLayerType()
nextDecoder.Decode(ip4New.Payload, pb)
Expand Down
2 changes: 1 addition & 1 deletion decoder/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"time"

"github.com/negbie/heplify/logp"
"github.com/negbie/logp"
)

const fnvBasis = 14695981039346656037
Expand Down
Binary file added example/sip_ipv4_tcp.pcap
Binary file not shown.
File renamed without changes.
185 changes: 0 additions & 185 deletions logp/file_rotator.go

This file was deleted.

Loading

0 comments on commit 080e866

Please sign in to comment.