Searched refs:rmt_samp (Results 1 – 5 of 5) sorted by relevance
1819 if (fp->rmt_samp.method == PCAP_SAMP_NOSAMP) in pcap_setsampling_remote()1827 if (fp->rmt_samp.method < 0 || fp->rmt_samp.method > 255) { in pcap_setsampling_remote()1829 "Invalid sampling method %d", fp->rmt_samp.method); in pcap_setsampling_remote()1832 if (fp->rmt_samp.value < 0 || fp->rmt_samp.value > 65535) { in pcap_setsampling_remote()1834 "Invalid sampling value %d", fp->rmt_samp.value); in pcap_setsampling_remote()1855 sampling_pars->method = (uint8)fp->rmt_samp.method; in pcap_setsampling_remote()1856 sampling_pars->value = (uint16)htonl(fp->rmt_samp.value); in pcap_setsampling_remote()
226 struct pcap_samp rmt_samp; /* parameters related to the sampling process. */ member
464 return &p->rmt_samp; in pcap_setsampling()
631 switch (p->rmt_samp.method) { in pcap_read_npf()634 pw->samp_npkt = (pw->samp_npkt + 1) % p->rmt_samp.value; in pcap_read_npf()662 pw->samp_time.tv_usec = pkt_header->ts.tv_usec + p->rmt_samp.value * 1000; in pcap_read_npf()
2024 fp->rmt_samp.method = samp_param->method; in daemon_msg_startcap_req()2025 fp->rmt_samp.value = samp_param->value; in daemon_msg_startcap_req()