Home
last modified time | relevance | path

Searched refs:pkt_header (Results 1 – 5 of 5) sorted by relevance

/external/libpcap/rpcapd/
Ddaemon.c2231 …struct pcap_pkthdr *pkt_header; // pointer to the buffer that contains the header of the current … in daemon_thrdatamain() local
2303 …while ((retval = pcap_next_ex(session->fp, &pkt_header, (const u_char **) &pkt_data)) >= 0) // cas… in daemon_thrdatamain()
2323 (uint16) (sizeof(struct rpcap_pkthdr) + pkt_header->caplen)); in daemon_thrdatamain()
2338 net_pkt_header->caplen = htonl(pkt_header->caplen); in daemon_thrdatamain()
2339 net_pkt_header->len = htonl(pkt_header->len); in daemon_thrdatamain()
2341 net_pkt_header->timestamp_sec = htonl(pkt_header->ts.tv_sec); in daemon_thrdatamain()
2342 net_pkt_header->timestamp_usec = htonl(pkt_header->ts.tv_usec); in daemon_thrdatamain()
2345 if (sock_bufferize((char *) pkt_data, pkt_header->caplen, in daemon_thrdatamain()
/external/libpcap/
Dpcap-npf.c610 struct pcap_pkthdr *pkt_header = (struct pcap_pkthdr*) bp; in pcap_read_npf() local
616 if (pkt_header->ts.tv_sec < pw->samp_time.tv_sec || in pcap_read_npf()
617 …(pkt_header->ts.tv_sec == pw->samp_time.tv_sec && pkt_header->ts.tv_usec < pw->samp_time.tv_usec))… in pcap_read_npf()
627 pw->samp_time.tv_usec = pkt_header->ts.tv_usec + p->rmt_samp.value * 1000; in pcap_read_npf()
629 pw->samp_time.tv_sec = pkt_header->ts.tv_sec + pw->samp_time.tv_usec / 1000000; in pcap_read_npf()
Dpcap-rpcap.c372 static int pcap_read_nocb_remote(pcap_t *p, struct pcap_pkthdr *pkt_header, u_char **pkt_data) in pcap_read_nocb_remote() argument
560 pkt_header->caplen = ntohl(net_pkt_header->caplen); in pcap_read_nocb_remote()
561 pkt_header->len = ntohl(net_pkt_header->len); in pcap_read_nocb_remote()
562 pkt_header->ts.tv_sec = ntohl(net_pkt_header->timestamp_sec); in pcap_read_nocb_remote()
563 pkt_header->ts.tv_usec = ntohl(net_pkt_header->timestamp_usec); in pcap_read_nocb_remote()
602 struct pcap_pkthdr pkt_header; in pcap_read_rpcap() local
643 ret = pcap_read_nocb_remote(p, &pkt_header, &pkt_data); in pcap_read_rpcap()
650 (*callback)(user, &pkt_header, pkt_data); in pcap_read_rpcap()
Dpcap.c361 pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, in pcap_next_ex() argument
371 *pkt_header= &p->pcap_header; in pcap_next_ex()
3463 pcap_sendqueue_queue(pcap_send_queue *queue, const struct pcap_pkthdr *pkt_header, const u_char *pk…
3465 if (queue->len + sizeof(struct pcap_pkthdr) + pkt_header->caplen > queue->maxlen){
3470 memcpy(queue->buffer + queue->len, pkt_header, sizeof(struct pcap_pkthdr));
3474 memcpy(queue->buffer + queue->len, pkt_data, pkt_header->caplen);
3475 queue->len += pkt_header->caplen;
/external/libpcap/pcap/
Dpcap.h569 …PCAP_API int pcap_sendqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, co…