Home | History | Annotate | Download | only in libpcap

Lines Matching refs:pkthdr

257 	struct pcap_pkthdr pkthdr;
351 pkthdr.ts.tv_sec = sbp->sbh_timestamp.tv_sec;
352 pkthdr.ts.tv_usec = sbp->sbh_timestamp.tv_usec;
354 (void)gettimeofday(&pkthdr.ts, NULL);
356 pkthdr.len = origlen;
357 pkthdr.caplen = caplen;
359 if (pkthdr.caplen > p->snapshot)
360 pkthdr.caplen = p->snapshot;
361 (*callback)(user, &pkthdr, pk);