mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
[scripts] MATN-TC-02: Multicast listener registration and first use (#6409)
This commit is contained in:
@@ -2664,7 +2664,8 @@ class LinuxHost():
|
||||
cmd = f'python3 /app/third_party/openthread/repo/tests/scripts/thread-cert/mcast6.py {self.ETH_DEV} {ip} &'
|
||||
self.bash(cmd)
|
||||
|
||||
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5, ttl=None) -> int:
|
||||
def ping_ether(self, ipaddr, num_responses=1, size=None, timeout=5, ttl=None, interface=None) -> int:
|
||||
|
||||
cmd = f'ping -6 {ipaddr} -I eth0 -c {num_responses} -W {timeout}'
|
||||
if size is not None:
|
||||
cmd += f' -s {size}'
|
||||
@@ -2672,6 +2673,9 @@ class LinuxHost():
|
||||
if ttl is not None:
|
||||
cmd += f' -t {ttl}'
|
||||
|
||||
if interface is not None:
|
||||
cmd += f' -I {interface}'
|
||||
|
||||
resp_count = 0
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user