Searched refs:pcap_header (Results 1 – 7 of 7) sorted by relevance
/external/libpcap/ |
D | pcap-septel.c | 81 struct pcap_pkthdr pcap_header; in septel_read() local 154 (void)gettimeofday(&pcap_header.ts, NULL); in septel_read() 157 pcap_header.caplen = caplen; in septel_read() 158 pcap_header.len = packet_len; in septel_read() 164 callback(user, &pcap_header, dp); in septel_read()
|
D | pcap-dag.c | 403 struct pcap_pkthdr pcap_header; in dag_read() local 690 pcap_header.ts.tv_sec = ts >> 32; in dag_read() 693 pcap_header.ts.tv_usec = ts >> 32; in dag_read() 694 if (pcap_header.ts.tv_usec >= ticks_per_second) { in dag_read() 695 pcap_header.ts.tv_usec -= ticks_per_second; in dag_read() 696 pcap_header.ts.tv_sec++; in dag_read() 700 pcap_header.caplen = caplen; in dag_read() 701 pcap_header.len = packet_len; in dag_read() 707 callback(user, &pcap_header, dp); in dag_read()
|
D | pcap-npf.c | 666 struct pcap_pkthdr pcap_header; in pcap_read_win32_dag() local 788 pcap_header.ts.tv_sec = (int)(ts >> 32); in pcap_read_win32_dag() 791 pcap_header.ts.tv_usec = (int)(ts >> 32); in pcap_read_win32_dag() 792 if (pcap_header.ts.tv_usec >= 1000000) { in pcap_read_win32_dag() 793 pcap_header.ts.tv_usec -= 1000000; in pcap_read_win32_dag() 794 pcap_header.ts.tv_sec++; in pcap_read_win32_dag() 810 pcap_header.caplen = caplen; in pcap_read_win32_dag() 811 pcap_header.len = packet_len; in pcap_read_win32_dag() 814 (*callback)(user, &pcap_header, dp); in pcap_read_win32_dag()
|
D | pcap-sita.c | 964 struct pcap_pkthdr pcap_header; in pcap_read_acn() local 973 pcap_header.ts.tv_sec = ntohl(*(uint32_t *)&packet_header[0]); /* tv_sec */ in pcap_read_acn() 974 pcap_header.ts.tv_usec = ntohl(*(uint32_t *)&packet_header[4]); /* tv_usec */ in pcap_read_acn() 975 pcap_header.caplen = ntohl(*(uint32_t *)&packet_header[8]); /* caplen */ in pcap_read_acn() 976 pcap_header.len = ntohl(*(uint32_t *)&packet_header[12]); /* len */ in pcap_read_acn() 979 …if (acn_read_n_bytes_with_timeout(handle, pcap_header.caplen) == -1) return 0; /* then try to read… in pcap_read_acn() 981 callback(user, &pcap_header, handle->bp); /* call the user supplied callback function */ in pcap_read_acn()
|
D | pcap-int.h | 253 struct pcap_pkthdr pcap_header; /* This is needed for the pcap_next_ex() to work */ member
|
D | pcap-linux.c | 1769 struct pcap_pkthdr pcap_header; local 2041 if (ioctl(handle->fd, SIOCGSTAMPNS, &pcap_header.ts) == -1) { 2049 if (ioctl(handle->fd, SIOCGSTAMP, &pcap_header.ts) == -1) { 2056 pcap_header.caplen = caplen; 2057 pcap_header.len = packet_len; 2106 callback(userdata, &pcap_header, bp);
|
D | pcap.c | 366 s.hdr = &p->pcap_header; in pcap_next_ex() 371 *pkt_header= &p->pcap_header; in pcap_next_ex()
|