Skip to content

dave #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .travis.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -ev

go get github.com/google/gopacket
go get github.com/google/gopacket/layers
go get github.com/google/gopacket/tcpassembly
go get github.com/google/gopacket/reassembly
go get github.com/google/gopacket/pcapgo
go get github.com/randomizedcoder/gopacket
go get github.com/randomizedcoder/gopacket/layers
go get github.com/randomizedcoder/gopacket/tcpassembly
go get github.com/randomizedcoder/gopacket/reassembly
go get github.com/randomizedcoder/gopacket/pcapgo
14 changes: 7 additions & 7 deletions .travis.script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

set -ev

go test github.com/google/gopacket
go test github.com/google/gopacket/layers
go test github.com/google/gopacket/tcpassembly
go test github.com/google/gopacket/reassembly
go test github.com/google/gopacket/pcapgo
go test github.com/google/gopacket/pcap
sudo $(which go) test github.com/google/gopacket/routing
go test github.com/randomizedcoder/gopacket
go test github.com/randomizedcoder/gopacket/layers
go test github.com/randomizedcoder/gopacket/tcpassembly
go test github.com/randomizedcoder/gopacket/reassembly
go test github.com/randomizedcoder/gopacket/pcapgo
go test github.com/randomizedcoder/gopacket/pcap
sudo $(which go) test github.com/randomizedcoder/gopacket/routing
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ runs a local set of checks, which should give you relatively high confidence
that your pull won't fail github pull checks.

```sh
go get github.com/google/gopacket
cd $GOROOT/src/pkg/github.com/google/gopacket
go get github.com/randomizedcoder/gopacket
cd $GOROOT/src/pkg/github.com/randomizedcoder/gopacket
git checkout -b <mynewfeature> # create a new branch to work from
... code code code ...
./gc # Run this to do local commits, it performs a number of checks
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# GoPacket

This library provides packet decoding capabilities for Go.
See [godoc](https://godoc.org/github.com/google/gopacket) for more details.
See [godoc](https://godoc.org/github.com/randomizedcoder/gopacket) for more details.

[![Build Status](https://travis-ci.org/google/gopacket.svg?branch=master)](https://travis-ci.org/google/gopacket)
[![GoDoc](https://godoc.org/github.com/google/gopacket?status.svg)](https://godoc.org/github.com/google/gopacket)
[![Build Status](https://travis-ci.org/randomizedcoder/gopacket.svg?branch=master)](https://travis-ci.org/randomizedcoder/gopacket)
[![GoDoc](https://godoc.org/github.com/randomizedcoder/gopacket?status.svg)](https://godoc.org/github.com/randomizedcoder/gopacket)

Minimum Go version required is 1.5 except for pcapgo/EthernetHandle, afpacket, and bsdbpf which need at least 1.9 due to x/sys/unix dependencies.

Expand Down
2 changes: 1 addition & 1 deletion afpacket/afpacket.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"golang.org/x/net/bpf"
"golang.org/x/sys/unix"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion bsdbpf/bsd_bpf_sniffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"
"unsafe"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions defrag/lcmdefrag/lcmdefrag.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/layers"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions defrag/lcmdefrag/lcmdefrag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package lcmdefrag
import (
"testing"

"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/layers"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ in a lot of interesting variables/maps (DecodersByLayerName, etc). Therefore,
it's recommended that even if you don't use any layers functions directly, you still import with:

import (
_ "github.com/google/gopacket/layers"
_ "github.com/randomizedcoder/gopacket/layers"
)
*/
package gopacket
6 changes: 3 additions & 3 deletions dumpcommand/tcpdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"os"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/ip4defrag"
"github.com/google/gopacket/layers" // pulls in all layers decoders
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/ip4defrag"
"github.com/randomizedcoder/gopacket/layers" // pulls in all layers decoders
)

var (
Expand Down
10 changes: 5 additions & 5 deletions examples/afpacket/afpacket.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import (
"runtime/pprof"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/afpacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/afpacket"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
"golang.org/x/net/bpf"

_ "github.com/google/gopacket/layers"
_ "github.com/randomizedcoder/gopacket/layers"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions examples/arpscan/arpscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"sync"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions examples/bidirectional/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ package main
import (
"flag"
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/tcpassembly"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
"github.com/randomizedcoder/gopacket/tcpassembly"
"log"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/bytediff/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package main

import (
"fmt"
"github.com/google/gopacket/bytediff"
"github.com/randomizedcoder/gopacket/bytediff"
)

var sliceA = []byte{
Expand Down
12 changes: 6 additions & 6 deletions examples/httpassembly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"net/http"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/tcpassembly"
"github.com/google/gopacket/tcpassembly/tcpreader"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
"github.com/randomizedcoder/gopacket/tcpassembly"
"github.com/randomizedcoder/gopacket/tcpassembly/tcpreader"
)

var iface = flag.String("i", "eth0", "Interface to get packets from")
Expand Down
6 changes: 3 additions & 3 deletions examples/pcapdump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package main
import (
"flag"
"fmt"
"github.com/google/gopacket/dumpcommand"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/pcap"
"github.com/randomizedcoder/gopacket/dumpcommand"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/pcap"
"log"
"os"
"strings"
Expand Down
6 changes: 3 additions & 3 deletions examples/pcaplay/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"strings"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/pcap"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/pcap"
)

var iface = flag.String("i", "eth0", "Interface to write packets to")
Expand Down
6 changes: 3 additions & 3 deletions examples/pfdump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package main
import (
"flag"
"fmt"
"github.com/google/gopacket/dumpcommand"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/pfring"
"github.com/randomizedcoder/gopacket/dumpcommand"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/pfring"
"log"
"os"
"strings"
Expand Down
12 changes: 6 additions & 6 deletions examples/reassemblydump/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import (
"sync"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/ip4defrag"
"github.com/google/gopacket/layers" // pulls in all layers decoders
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/reassembly"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/ip4defrag"
"github.com/randomizedcoder/gopacket/layers" // pulls in all layers decoders
"github.com/randomizedcoder/gopacket/pcap"
"github.com/randomizedcoder/gopacket/reassembly"
)

var maxcount = flag.Int("c", -1, "Only grab this many packets, then exit")
Expand Down
4 changes: 2 additions & 2 deletions examples/snoopread/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"log"
"os"

"github.com/google/gopacket"
"github.com/google/gopacket/pcapgo"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/pcapgo"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions examples/statsassembly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ package main

import (
"flag"
"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/tcpassembly"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
"github.com/randomizedcoder/gopacket/tcpassembly"
"log"
"time"
)
Expand Down
10 changes: 5 additions & 5 deletions examples/synscan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"net"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/examples/util"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/routing"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/examples/util"
"github.com/randomizedcoder/gopacket/layers"
"github.com/randomizedcoder/gopacket/pcap"
"github.com/randomizedcoder/gopacket/routing"
)

// scanner handles scanning a single IP address.
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/randomizedcoder/gopacket
go 1.22

require (
github.com/google/gopacket v1.1.19
github.com/vishvananda/netlink v1.1.0
github.com/vishvananda/netns v0.0.4
golang.org/x/net v0.24.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8=
github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo=
github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0=
github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU=
Expand Down
4 changes: 2 additions & 2 deletions ip4defrag/defrag.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"sync"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/layers"
)

// Quick and Easy to use debug code to trace
Expand Down
6 changes: 3 additions & 3 deletions ip4defrag/defrag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"testing"
"time"

"github.com/google/gopacket"
"github.com/google/gopacket/bytediff"
"github.com/google/gopacket/layers"
"github.com/randomizedcoder/gopacket"
"github.com/randomizedcoder/gopacket/bytediff"
"github.com/randomizedcoder/gopacket/layers"
)

func TestNotFrag(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion layers/arp.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"errors"
"fmt"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

// Potential values for ARP.Operation.
Expand Down
2 changes: 1 addition & 1 deletion layers/asf.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion layers/asf_presencepong.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"encoding/binary"
"fmt"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion layers/asf_presencepong_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"encoding/hex"
"testing"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

func TestASFPresencePongDecodeFromBytes(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion layers/asf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"encoding/hex"
"testing"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

func TestASFDecodeFromBytes(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion layers/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package layers

import (
"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

// BaseLayer is a convenience struct which implements the LayerData and
Expand Down
2 changes: 1 addition & 1 deletion layers/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package layers
import (
"testing"

"github.com/google/gopacket"
"github.com/randomizedcoder/gopacket"
)

func checkLayers(p gopacket.Packet, want []gopacket.LayerType, t *testing.T) {
Expand Down
Loading