Vendor update gopacket and unix package

This commit is contained in:
Manjunath A Kumatagi committed 2019-02-01 21:28:56 -06:00
1 parent 54d24e65ef
commit 43d3339b39
319 files changed
+91339 -13246

No files matched your search

+2 -3
View File
@@ -15,7 +15,6 @@ import (
"flag"
"fmt"
"log"
"net"
"net/http"
"os"
"time"
@@ -35,7 +34,7 @@ func generatePackets() {
func main() {
flag.Parse()
ifaces, err := net.Interfaces()
ifaces, err := pcap.FindAllDevs()
if err != nil {
log.Fatal(err)
}
@@ -51,7 +50,7 @@ func main() {
os.Exit(1)
}
func tryCapture(iface net.Interface) error {
func tryCapture(iface pcap.Interface) error {
if iface.Name[:2] == "lo" {
return errors.New("skipping loopback")
}