This commit is contained in:
evilsocket 2018-01-13 14:42:21 +01:00
parent 383a293bf5
commit 7049cc1014
3 changed files with 13 additions and 6 deletions

View file

@ -1,15 +1,10 @@
package net
import (
"regexp"
"strings"
"github.com/evilsocket/bettercap-ng/core"
"strings"
)
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{17}).+\\s+(.+)$")
var ArpTableTokens = 4
func ArpUpdate(iface string) (ArpTable, error) {
arp_lock.Lock()
defer arp_lock.Unlock()