Can you please tell me how to get the time to send the received packet using the pcap library? If so, then the capture time is determined:
pcap_pkthdr header; time_t local_tv_sec, local_usec; local_tv_sec = header.ts.tv_sec; local_usec = header.ts.tv_usec; A need to send. Thank you in advance.