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 <alexey.kodanev@oracle.com> 5 6TST_TESTFUNC="do_test" 7TST_NEEDS_ROOT=1 8TST_NEEDS_CMDS="arping" 9 10. tst_net.sh 11 12do_test() 13{ 14 local timeout="10" 15 local ip_addr=$(tst_ipaddr rhost) 16 local dev=$(tst_iface) 17 18 tst_res TINFO "arping host '$ip_addr' via dev '$dev' with timeout '$timeout' secs" 19 EXPECT_PASS arping -w $timeout "$ip_addr" -I $dev -fq 20} 21 22tst_run 23