pcap_capture_packet() function
Capture one packet into pcap file
Arguments
pcap
pcap file handle created by `pcap_new_session()`
payload
pointer of the captured data buffer
length
length of captured data buffer
seconds
second of capture time
microseconds
microsecond of capture time
Return value
- ESP_OK: Write network packet into pcap file successfully - ESP_ERR_INVALID_ARG: Write network packet into pcap file failed because of invalid argument - ESP_FAIL: Write network packet into pcap file failed