mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
fix: using statically linked version of gopacket (fixes #98)
This commit is contained in:
parent
75ef2b8a8f
commit
496c29b5bc
24 changed files with 44 additions and 44 deletions
|
@ -3,7 +3,7 @@ package packets
|
|||
import (
|
||||
"net"
|
||||
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/bettercap/gopacket/layers"
|
||||
)
|
||||
|
||||
func NewARPTo(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr, req uint16) (layers.Ethernet, layers.ARP) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package packets
|
|||
import (
|
||||
"errors"
|
||||
// TODO: refactor to use gopacket when gopacket folks
|
||||
// will fix this > https://github.com/google/gopacket/issues/334
|
||||
// will fix this > https://github.com/bettercap/gopacket/issues/334
|
||||
"github.com/mdlayher/dhcp6"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package packets
|
||||
|
||||
import (
|
||||
"github.com/google/gopacket"
|
||||
"github.com/bettercap/gopacket"
|
||||
)
|
||||
|
||||
type DHCPv6Layer struct {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/bettercap/gopacket"
|
||||
"github.com/bettercap/gopacket/layers"
|
||||
)
|
||||
|
||||
type Dot11CipherType uint8
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
|
||||
"github.com/bettercap/bettercap/network"
|
||||
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/google/gopacket/pcap"
|
||||
"github.com/bettercap/gopacket"
|
||||
"github.com/bettercap/gopacket/layers"
|
||||
"github.com/bettercap/gopacket/pcap"
|
||||
)
|
||||
|
||||
type Activity struct {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package packets
|
||||
|
||||
import (
|
||||
"github.com/google/gopacket"
|
||||
"github.com/bettercap/gopacket"
|
||||
)
|
||||
|
||||
var SerializationOptions = gopacket.SerializeOptions{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package packets
|
||||
|
||||
import (
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/bettercap/gopacket/layers"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package packets
|
||||
|
||||
import (
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/bettercap/gopacket/layers"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue