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

Petr Vorel pvorel@suse.cz
Thu Mar 30 15:37:43 CEST 2017


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


More information about the ltp mailing list