xref: /third_party/ltp/testcases/network/tcp_cmds/arping/arping01.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/testcases/network/tcp_cmds/arping/
1f08c3bdfSopenharmony_ci#!/bin/sh
2f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later
3f08c3bdfSopenharmony_ci# Copyright (c) 2016-2019 Oracle and/or its affiliates. All Rights Reserved.
4f08c3bdfSopenharmony_ci# Author: Alexey Kodanev <alexey.kodanev@oracle.com>
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ciTST_TESTFUNC="do_test"
7f08c3bdfSopenharmony_ciTST_NEEDS_ROOT=1
8f08c3bdfSopenharmony_ciTST_NEEDS_CMDS="arping"
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_cido_test()
12f08c3bdfSopenharmony_ci{
13f08c3bdfSopenharmony_ci	local timeout="10"
14f08c3bdfSopenharmony_ci	local ip_addr=$(tst_ipaddr rhost)
15f08c3bdfSopenharmony_ci	local dev=$(tst_iface)
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_ci	tst_res TINFO "arping host '$ip_addr' via dev '$dev' with timeout '$timeout' secs"
18f08c3bdfSopenharmony_ci	EXPECT_PASS arping -w $timeout "$ip_addr" -I $dev -fq
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci. tst_net.sh
22f08c3bdfSopenharmony_citst_run
23

Indexes created Thu Nov 07 10:32:03 CST 2024