[in] A pointer to the memory block, in which the packet will be created.
PacketLen
[in] The packet size.
Proto
[in] An embedded protocol.
SrcIP
[in] The source IP.
DstIP
[in] The destination IP.
Return values:
HNERR_OK
No errors.
HNERR_ADDR_ERR
The pIPPacket parameter contains the wrong value (write to memory error).
Description:
Use PktIPGenerate when you're creating IP packet. PktIPGenerate composes IP header in the buffer
defined by the pIPPacket parameter, counts out IP packet checksum, and places it in the IP header.