|Applicable Versions||NetSim Standard||NetSim Pro|
NetSim_PACKET* fn_NetSim_Packet_CreatePacket(int nLayer) is available as an API provided by Networkstack.dll.
This declaration can be found in packet.h. Expand 'External dependencies' in any one project in NetSim.sln file to find the packet.h file. To find an example of how this API is used, you can see a call to this API in the fn_NetSim_Application_GeneratePacket() that is part of the Application.c file of the Application source code project.
Networkstack.dll file is a "protected" file and the associated source codes are not open to user modification. Only protocol source codes are provided to the users for modification.
What is the API to calculate distance between two wireless nodes?
What is the NetSim API to calculate received power between two wireless nodes in WLAN?
How can I create my own packet and my own event in NetSim ?
What are the packet buffers in nodes in NetSim ? How can they be accessed ?