|
func (a *arping) Ping(ctx context.Context, ifi, hw, ip string) (ok bool, err error) {
|
|
func (a *arping) Ping(ctx context.Context, ifi, hw, ip string) (ok bool, err error) {
|
|
cmd := exec.CommandContext(ctx, a.sudoCmd, a.arpingCmd, "-c", a.count, "-i", ifi, "-t", hw, "-q", ip)
|
|
cmd := exec.CommandContext(ctx, a.sudoCmd, a.arpingCmd, "-c", a.count, "-i", ifi, "-t", hw, "-q", ip)
|