If you leave a comment, it would be much easier. It says:
/* Callback function invoked by libpcap for every incoming packet */
It talks about typedef void(*) pcap_handler(u_char *user, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data) :
pkt_header - the associated header using the capture driver in the package. This is not a protocol header.
source share