Home
last modified time | relevance | path

Searched refs:pcap_header (Results 1 – 7 of 7) sorted by relevance

/external/libpcap/
Dpcap-septel.c80 struct pcap_pkthdr pcap_header; in septel_read() local
153 (void)gettimeofday(&pcap_header.ts, NULL); in septel_read()
156 pcap_header.caplen = caplen; in septel_read()
157 pcap_header.len = packet_len; in septel_read()
163 callback(user, &pcap_header, dp); in septel_read()
Dpcap-win32.c307 struct pcap_pkthdr pcap_header; in pcap_read_win32_dag() local
417 pcap_header.ts.tv_sec = (int)(ts >> 32); in pcap_read_win32_dag()
420 pcap_header.ts.tv_usec = (int)(ts >> 32); in pcap_read_win32_dag()
421 if (pcap_header.ts.tv_usec >= 1000000) { in pcap_read_win32_dag()
422 pcap_header.ts.tv_usec -= 1000000; in pcap_read_win32_dag()
423 pcap_header.ts.tv_sec++; in pcap_read_win32_dag()
439 pcap_header.caplen = caplen; in pcap_read_win32_dag()
440 pcap_header.len = packet_len; in pcap_read_win32_dag()
443 (*callback)(user, &pcap_header, dp); in pcap_read_win32_dag()
Dpcap-dag.c311 struct pcap_pkthdr pcap_header; in dag_read() local
576 pcap_header.ts.tv_sec = ts >> 32; in dag_read()
579 pcap_header.ts.tv_usec = ts >> 32; in dag_read()
580 if (pcap_header.ts.tv_usec >= ticks_per_second) { in dag_read()
581 pcap_header.ts.tv_usec -= ticks_per_second; in dag_read()
582 pcap_header.ts.tv_sec++; in dag_read()
586 pcap_header.caplen = caplen; in dag_read()
587 pcap_header.len = packet_len; in dag_read()
593 callback(user, &pcap_header, dp); in dag_read()
Dpcap-sita.c940 struct pcap_pkthdr pcap_header; local
949 pcap_header.ts.tv_sec = ntohl(*(uint32_t *)&packet_header[0]); /* tv_sec */
950 pcap_header.ts.tv_usec = ntohl(*(uint32_t *)&packet_header[4]); /* tv_usec */
951 pcap_header.caplen = ntohl(*(uint32_t *)&packet_header[8]); /* caplen */
952 pcap_header.len = ntohl(*(uint32_t *)&packet_header[12]); /* len */
955 …if (acn_read_n_bytes_with_timeout(handle, pcap_header.caplen) == -1) return 0; /* then try to read…
957 callback(user, &pcap_header, handle->bp); /* call the user supplied callback function */
Dpcap-int.h223 struct pcap_pkthdr pcap_header; /* This is needed for the pcap_next_ex() to work */ member
Dpcap-linux.c1567 struct pcap_pkthdr pcap_header; local
1814 if (ioctl(handle->fd, SIOCGSTAMPNS, &pcap_header.ts) == -1) {
1822 if (ioctl(handle->fd, SIOCGSTAMP, &pcap_header.ts) == -1) {
1829 pcap_header.caplen = caplen;
1830 pcap_header.len = packet_len;
1879 callback(userdata, &pcap_header, bp);
Dpcap.c229 s.hdr = &p->pcap_header; in pcap_next_ex()
234 *pkt_header= &p->pcap_header; in pcap_next_ex()