pcap_new_session() function
Create a new pcap session, and returns pcap file handle
Arguments
config
pcap file configuration
ret_pcap
Returned pcap file handle
Return value
- ESP_OK: Create pcap file successfully - ESP_ERR_INVALID_ARG: Create pcap file failed because of invalid argument - ESP_ERR_NO_MEM: Create pcap file failed because out of memory - ESP_FAIL: Create pcap file failed
Notes
This function won't create the low level FILE* object, the user should take care of the creation of the File Stream.