From: Simon Xu <xu.simon@oracle.com>
To: Vincent Hsu <vincent.hsu@linaro.org>, ltp-list@lists.sourceforge.net
Cc: linaro-networking@linaro.org
Subject: Re: [LTP] [LNG][PATCH 5/9] ltp-networking/tcp_cmds/tcpdump: 1. RHOST IP won't appear in network interfaces. It should be LHOST. 2. Host commad can't fetch IP in no DNS enviroment. use ping intead of it
Date: Fri, 08 Nov 2013 10:32:29 +0800 [thread overview]
Message-ID: <527C4D3D.4090200@oracle.com> (raw)
In-Reply-To: <1383085243-5833-6-git-send-email-vincent.hsu@linaro.org>
Hi,
Please see
https://github.com/linux-test-project/ltp/commit/87f593c16f80c3f204c87de276c426aeb65c3527
Thanks
Simon
On 2013/10/30 6:20, Vincent Hsu wrote:
> ---
> testcases/network/tcp_cmds/tcpdump/tcpdump01 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/network/tcp_cmds/tcpdump/tcpdump01 b/testcases/network/tcp_cmds/tcpdump/tcpdump01
> index 4866720..6d99398 100755
> --- a/testcases/network/tcp_cmds/tcpdump/tcpdump01
> +++ b/testcases/network/tcp_cmds/tcpdump/tcpdump01
> @@ -47,8 +47,8 @@ do_setup()
> tst_setup
>
> exists awk grep host hostname ifconfig netstat ping tail tcpdump
> - RHOST=${RHOST:-`hostname`}
> - IP=`host ${RHOST} 2>/dev/null | awk '{print $4}'`
> + LHOST=${LHOST:-`hostname`}
> + IP=`ping ${LHOST} -c 1 | awk '{print $3}' | head -n1 | cut -f2 -d'(' | cut -f1 -d')'`
> IFNUMS=`netstat -i|wc -l`
> IFNUMS=$(( $IFNUMS - 2 ))
> IFNAME=${IFNAME:-$(netstat -i | awk '{print $1}' | tail -n ${IFNUMS})}
> --
> 1.7.9.5
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-11-08 2:32 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 22:20 [LTP] [LNG][PATCH 0/9] ltp-networking on ubuntu Vincent Hsu
2013-10-29 22:20 ` [LTP] [LNG][PATCH 1/9] ltp-networking/nfs: Setting the NFS to version 3 by default. NFSv3 is more compatibled with recent linux distributions Vincent Hsu
2013-11-07 13:29 ` chrubis
[not found] ` <CAARHBVvTfK3B6dMPXvwd0dajfFWv_cNX-DkV_fHUnZjuB04u+A@mail.gmail.com>
[not found] ` <CAARHBVuOoFVrr7L_f=sMKykjYsawvuzG+wYWOrZDsLTBxpEcGQ@mail.gmail.com>
2013-11-11 13:32 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 2/9] ltp-networking/nfs: don't use absolute path for showmount. showmount does not locate at /user/sbin/showmount on Ubuntu 12.04 Vincent Hsu
2013-11-07 13:29 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 3/9] ltp-networking/tcp_cmds/finger: finger an unknown host test will return 1 even if execution success " Vincent Hsu
2013-11-07 13:12 ` chrubis
[not found] ` <CAARHBVsQQEdYjY59Wa80ZO6TiVvb5gfWRA4vigMPmy-+tyH0jA@mail.gmail.com>
2013-11-11 13:14 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 4/9] ltp-networking/tcp_cmds/netstat: netstat cmds will return 1 even if no output in stderr " Vincent Hsu
2013-11-07 13:14 ` chrubis
[not found] ` <CAARHBVvTzEtp=ycDaiTwEwYFRR_DpVu=og-A7TWcOA7gPtwQeQ@mail.gmail.com>
2013-11-11 13:49 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 5/9] ltp-networking/tcp_cmds/tcpdump: 1. RHOST IP won't appear in network interfaces. It should be LHOST. 2. Host commad can't fetch IP in no DNS enviroment. use ping intead of it Vincent Hsu
2013-11-07 13:25 ` chrubis
2013-11-07 14:03 ` chrubis
2013-11-07 13:27 ` chrubis
2013-11-08 2:32 ` Simon Xu [this message]
2013-10-29 22:20 ` [LTP] [LNG][PATCH 6/9] ltp-networking/iproute: ip02: set original mtu size back. this test will set mtu to 300. ip05: if there is nott only one route using "head" command will get wrong result Vincent Hsu
2013-11-07 13:52 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 7/9] ltp-networking/iptables: "iptables -L -t nat" lists 4 chains not 3 chains on Ubuntu 12.04 Vincent Hsu
2013-11-07 13:31 ` chrubis
2013-11-08 2:30 ` Simon Xu
2013-10-29 22:20 ` [LTP] [LNG][PATCH 8/9] ltp-networking: standardize test result message Vincent Hsu
2013-11-07 13:43 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 9/9] ltp-networking/rpc: gave precise test name Vincent Hsu
2013-11-07 13:45 ` chrubis
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=527C4D3D.4090200@oracle.com \
--to=xu.simon@oracle.com \
--cc=linaro-networking@linaro.org \
--cc=ltp-list@lists.sourceforge.net \
--cc=vincent.hsu@linaro.org \
/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