Lines Matching defs:pkth
390 struct pcap_pkthdr pkth;
399 pkth.caplen = pkth.len = n;
400 pkth.caplen -= 4;
401 pkth.caplen -= 8 - msg.length;
406 pkth.ts.tv_usec = firstpacket.tv_usec + (msg.timestamp % 100) * 10000;
407 pkth.ts.tv_sec = firstpacket.tv_usec + (msg.timestamp / 100);
408 if (pkth.ts.tv_usec > 1000000)
410 pkth.ts.tv_usec -= 1000000;
411 pkth.ts.tv_sec++;
414 callback(user, &pkth, (void*)&msg.id);