mirror of
https://github.com/espressif/openthread.git
synced 2026-09-30 21:07:39 +00:00
[netif] remove multicast promiscuous mode configuration (#10338)
Since 74c833b623 was introduced all IPv6
multicast packets are passed to the host. Previously used promiscuous
mode configuration is now unused. This commit removes the dead code and
corresponding elements as there is no use case for them at the moment
(and they can confuse a user).
Signed-off-by: Konrad Derda <[email protected]>
This commit is contained in:
@@ -1946,18 +1946,6 @@ class OTCI(object):
|
||||
"""Check if a IPv6 multicast address was subscribed by the Thread interface."""
|
||||
return ip in self.get_ipmaddrs()
|
||||
|
||||
def get_ipmaddr_promiscuous(self) -> bool:
|
||||
"""Get multicast promiscuous mode."""
|
||||
return self.__parse_Enabled_or_Disabled(self.execute_command("ipmaddr promiscuous"))
|
||||
|
||||
def enable_ipmaddr_promiscuous(self):
|
||||
"""Enable multicast promiscuous mode."""
|
||||
self.execute_command('ipmaddr promiscuous enable')
|
||||
|
||||
def disable_ipmaddr_promiscuous(self):
|
||||
"""Disable multicast promiscuous mode."""
|
||||
self.execute_command('ipmaddr promiscuous disable')
|
||||
|
||||
def get_ipmaddr_llatn(self) -> Ip6Addr:
|
||||
"""Get Link Local All Thread Nodes Multicast Address"""
|
||||
return self.__parse_ip6addr(self.execute_command('ipmaddr llatn'))
|
||||
|
||||
@@ -257,12 +257,6 @@ class TestOTCI(unittest.TestCase):
|
||||
|
||||
logging.info("EID-to-RLOC cache: %r", leader.get_eidcache())
|
||||
|
||||
logging.info("ipmaddr promiscuous: %r", leader.get_ipmaddr_promiscuous())
|
||||
leader.enable_ipmaddr_promiscuous()
|
||||
self.assertTrue(leader.get_ipmaddr_promiscuous())
|
||||
leader.disable_ipmaddr_promiscuous()
|
||||
self.assertFalse(leader.get_ipmaddr_promiscuous())
|
||||
|
||||
logging.info("leader data: %r", leader.get_leader_data())
|
||||
logging.info("leader neighbor list: %r", leader.get_neighbor_list())
|
||||
logging.info("leader neighbor table: %r", leader.get_neighbor_table())
|
||||
|
||||
Reference in New Issue
Block a user