Home
last modified time | relevance | path

Searched refs:net_pkt_header (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/rpcapd/
Ddaemon.c2230 struct rpcap_pkthdr *net_pkt_header;// header of the packet in daemon_thrdatamain() local
2325 net_pkt_header = (struct rpcap_pkthdr *) &sendbuf[sendbufidx]; 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()
2340 net_pkt_header->npkt = htonl(++(session->TotCapt)); 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()
/external/libpcap/
Dpcap-rpcap.c376 struct rpcap_pkthdr *net_pkt_header; /* header of the packet, from the message */ in pcap_read_nocb_remote() local
425 net_pkt_header = (struct rpcap_pkthdr *) ((char *)p->buffer + sizeof(struct rpcap_header)); in pcap_read_nocb_remote()
552 if (ntohl(net_pkt_header->caplen) > plen) in pcap_read_nocb_remote()
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()
579 npkt = ntohl(net_pkt_header->npkt); in pcap_read_nocb_remote()