[LTP] mc_cmds01 needs change from netstat command to ip maddr show dev

Alton L Pundt apundt@us.ibm.com
Thu Mar 30 16:15:49 CEST 2017


The last email I have from the guy that maintains our testcase repository 
said:

LTP testcase updated to 20170116 for ubuntu17.04



Thanks,
A.P. Pundt
sametime:apundt@us.ibm.com
office:512-286-8093
office: 45/3A-97
IBM-Austin, Texas



From:   Petr Vorel <pvorel@suse.cz>
To:     Alton L Pundt/Austin/IBM@IBMUS
Cc:     ltp@lists.linux.it
Date:   03/30/2017 08:37 AM
Subject:        Re: [LTP] mc_cmds01 needs change from netstat command to 
ip maddr show dev



Hi Alton,

> Have you tested with "ip maddr" instead?  For example, in your script,

>   netstat -gn | grep $IFNAME | grep -q 224.0.0.1

> would become:

>   ip maddr show dev $IFNAME | grep -q 224.0.0.1

> The extra benefit here is one less subshell and grep command to look for 

> the target multicast group.

Which version of LTP do you use? netstat and ifconfig was replaced with ip 
a while ago in
commit 491423d9f695480a18abc2ad4167aad51b06be96 [1], released in LTP 
20150420.

Can you test it with recent release?


Kind regards,
Petr

[1] 
https://github.com/linux-test-project/ltp/commit/491423d9f695480a18abc2ad4167aad51b06be96






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20170330/9ef424b6/attachment.html>


More information about the ltp mailing list