mirror of
https://github.com/espressif/openthread.git
synced 2026-09-05 00:30:07 +00:00
Python Sniffer Implementation for Windows (#1147)
* Initial function loading of new listener interface. * Additional changes for Node sniffer interface * Use Interface Index instead of GUID * Initialize Handle in sniffer * Put Channel in the sniffer message
This commit is contained in:
@@ -365,6 +365,37 @@ OTNODEAPI int32_t OTCALL otNodeSendActiveSet(otNode* aNode, uint64_t aActiveTime
|
||||
*/
|
||||
OTNODEAPI int32_t OTCALL otNodeSetMaxChildren(otNode* aNode, uint8_t aMaxChildren);
|
||||
|
||||
/**
|
||||
* The interface used to listen in on virtual nodes' MAC frames
|
||||
*/
|
||||
|
||||
typedef struct otListener otListener;
|
||||
|
||||
/**
|
||||
* Creates and starts a new listener
|
||||
*/
|
||||
OTNODEAPI otListener* OTCALL otListenerInit(uint32_t nodeid);
|
||||
|
||||
/**
|
||||
* Frees a listener
|
||||
*/
|
||||
OTNODEAPI int32_t OTCALL otListenerFinalize(otListener* aListener);
|
||||
|
||||
/**
|
||||
* Structure that represents a received MAC frame from the listener
|
||||
*/
|
||||
typedef struct otMacFrame
|
||||
{
|
||||
uint8_t buffer[128];
|
||||
uint8_t length;
|
||||
uint32_t nodeid;
|
||||
} otMacFrame;
|
||||
|
||||
/**
|
||||
* Reads the next MAC frame from the listener
|
||||
*/
|
||||
OTNODEAPI int32_t OTCALL otListenerRead(otListener* aListener, otMacFrame *aFrame);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user