Searched refs:rmt_samp (Results 1 – 5 of 5) sorted by relevance
1875 if (fp->rmt_samp.method == PCAP_SAMP_NOSAMP) in pcap_setsampling_remote()1883 if (fp->rmt_samp.method < 0 || fp->rmt_samp.method > 255) { in pcap_setsampling_remote()1885 "Invalid sampling method %d", fp->rmt_samp.method); in pcap_setsampling_remote()1888 if (fp->rmt_samp.value < 0 || fp->rmt_samp.value > 65535) { in pcap_setsampling_remote()1890 "Invalid sampling value %d", fp->rmt_samp.value); in pcap_setsampling_remote()1911 sampling_pars->method = (uint8)fp->rmt_samp.method; in pcap_setsampling_remote()1912 sampling_pars->value = (uint16)htonl(fp->rmt_samp.value); in pcap_setsampling_remote()
250 struct pcap_samp rmt_samp; /* parameters related to the sampling process. */ member
501 return &p->rmt_samp; in pcap_setsampling()
727 switch (p->rmt_samp.method) { in pcap_read_npf()730 pw->samp_npkt = (pw->samp_npkt + 1) % p->rmt_samp.value; in pcap_read_npf()758 pw->samp_time.tv_usec = pkt_header->ts.tv_usec + p->rmt_samp.value * 1000; in pcap_read_npf()
2040 fp->rmt_samp.method = samp_param->method; in daemon_msg_startcap_req()2041 fp->rmt_samp.value = samp_param->value; in daemon_msg_startcap_req()