mirror of
https://github.com/espressif/openthread.git
synced 2026-10-12 02:37:37 +00:00
[posix-sim] use multicast to simulate radio (#3993)
This commit uses multicast to simulate radio transmissions. This avoids sending a frame multiple times and avoids duplicated packets in captures. This implementation uses two separate sockets for tx and rx. The current implementation of thread-cert requires the sniffer to report the sender of each packet. This issue can be addressed by stateful tracking state of each node, but left for future work.
This commit is contained in:
@@ -459,8 +459,8 @@ def create_default_thread_message_factory(master_key=DEFAULT_MASTER_KEY):
|
||||
return message.MessageFactory(lowpan_parser=lowpan_parser)
|
||||
|
||||
|
||||
def create_default_thread_sniffer(nodeid=SNIFFER_ID):
|
||||
return sniffer.Sniffer(nodeid, create_default_thread_message_factory())
|
||||
def create_default_thread_sniffer():
|
||||
return sniffer.Sniffer(create_default_thread_message_factory())
|
||||
|
||||
|
||||
def create_default_simulator():
|
||||
|
||||
Reference in New Issue
Block a user