@@ -24,7 +24,7 @@ type (
)
func NewARP(count uint) (ARP, error) {
- cmd, err := exec.LookPath("ip")
+ cmd, err := exec.LookPath(arpCmd)
if err != nil {
return nil, err
}
@@ -10,6 +10,7 @@ import (
const (
+ arpCmd = "arp"
arpOutputVersion = "1"
@@ -8,6 +8,10 @@ import (
"goa.design/clue/log"
+const (
+ arpCmd = "ip"
+)
+
type (
arpEntry struct {
IPAddress string `json:"dst"`