mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
refact: renamed package net to network to avoid collision with golang net package.
This commit is contained in:
parent
21236c257e
commit
48d27f274a
28 changed files with 298 additions and 298 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
bnet "github.com/evilsocket/bettercap-ng/net"
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
|
@ -41,13 +41,13 @@ type Queue struct {
|
|||
Protos map[string]uint64
|
||||
Traffic map[string]*Traffic
|
||||
|
||||
iface *bnet.Endpoint
|
||||
iface *network.Endpoint
|
||||
handle *pcap.Handle
|
||||
source *gopacket.PacketSource
|
||||
active bool
|
||||
}
|
||||
|
||||
func NewQueue(iface *bnet.Endpoint) (q *Queue, err error) {
|
||||
func NewQueue(iface *network.Endpoint) (q *Queue, err error) {
|
||||
q = &Queue{
|
||||
Protos: make(map[string]uint64),
|
||||
Traffic: make(map[string]*Traffic),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue