From: Petr Vorel <pvorel@suse.cz>
To: Xu Senmiao <xusenmiao@huawei.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] ipneigh01.sh: Fix an issue where ipneigh01_arp test case fail due to ARP timeout
Date: Fri, 22 Sep 2023 11:10:59 +0200 [thread overview]
Message-ID: <20230922091059.GB483490@pevik> (raw)
In-Reply-To: <20230815085706.1077725-1-xusenmiao@huawei.com>
Hi Xu,
> When the ARP status of the rhost is stale,
> lhost ping rhost and the lhost deletes the ARP record,
> the record in the rhost changes from stale to delay.
> Then, the probe request is sent to the lhost, and the lhost ARP information is updated.
> rhost(10.0.0.1) lhost(10.0.0.2)
> t1 10.0.0.2 STALE ping 10.0.0.1
> 10.0.0.1 REACHABLE
> arp -d 10.0.0.1
> t2 10.0.0.2 DELAY
> t3 probe 10.0.0.2
> t4 10.0.0.1 REACHABLE
> Clear the ARP entries of rhost before each round of test.
Do you have idea why ARP status of the rhost is stale?
I've never encountered problem like this.
> Signed-off-by: Xu Senmiao <xusenmiao@huawei.com>
> ---
> testcases/network/tcp_cmds/ipneigh/ipneigh01.sh | 1 +
> 1 file changed, 1 insertion(+)
> diff --git a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
> index e67ff5cc8..4db675f8f 100755
> --- a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
> +++ b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
> @@ -56,6 +56,7 @@ do_test()
> tst_res TINFO "stress auto-creation $entry_name cache entry deleted with '$CMD' $NUMLOOPS times"
> for i in $(seq 1 $NUMLOOPS); do
> + tst_rhost_run -c "arp -d $(tst_ipaddr lhost)"
IMHO we use $DEL_CMD as we use later in the test function, because some systems
does not have arp installed. i.e. use the tool which is used for testing.
Otherwise we endup with: sh: arp: command not found
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2023-09-22 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 8:57 [LTP] [PATCH] ipneigh01.sh: Fix an issue where ipneigh01_arp test case fail due to ARP timeout Xu Senmiao via ltp
2023-09-22 9:10 ` Petr Vorel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230922091059.GB483490@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=xusenmiao@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox