Given the below declaration for pcap callback:
void my_callback(u_char *args, const struct pcap_pkthdr *header, const u_char *packet)
How to ascertain the total number of bytes present in the packet? I need that value so that I can pass it to crc32() function.
according to this reference the information about the size of the packet is in the
pcap_pkthdr‘s structure