Applicable VersionsNetSim StandardNetSim Pro


Applicable Releasesv10v11v12



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 CreatePacket call in Application.c file, 339 line number. 

Networkstack.dll file is a "protected" file and code is not open to the user. Only protocol source codes are provided to the users for modification.


Related articles:

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 ?