1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2016-2019 Oracle and/or its affiliates. All Rights Reserved. 4# Author: Alexey Kodanev <[email protected]> 5 6TST_TESTFUNC="do_test" 7TST_NEEDS_ROOT=1 8TST_NEEDS_CMDS="arping" 9 10 11do_test() 12{ 13 local timeout="10" 14 local ip_addr=$(tst_ipaddr rhost) 15 local dev=$(tst_iface) 16 17 tst_res TINFO "arping host '$ip_addr' via dev '$dev' with timeout '$timeout' secs" 18 EXPECT_PASS arping -w $timeout "$ip_addr" -I $dev -fq 19} 20 21. tst_net.sh 22tst_run 23