Searched refs:rmt_samp (Results 1 – 5 of 5) sorted by relevance
1739 if (fp->rmt_samp.method == PCAP_SAMP_NOSAMP) in pcap_setsampling_remote()1747 if (fp->rmt_samp.method < 0 || fp->rmt_samp.method > 255) { in pcap_setsampling_remote()1749 "Invalid sampling method %d", fp->rmt_samp.method); in pcap_setsampling_remote()1752 if (fp->rmt_samp.value < 0 || fp->rmt_samp.value > 65535) { in pcap_setsampling_remote()1754 "Invalid sampling value %d", fp->rmt_samp.value); in pcap_setsampling_remote()1775 sampling_pars->method = (uint8)fp->rmt_samp.method; in pcap_setsampling_remote()1776 sampling_pars->value = (uint16)htonl(fp->rmt_samp.value); in pcap_setsampling_remote()
184 struct pcap_samp rmt_samp; /* parameters related to the sampling process. */ member
612 switch (p->rmt_samp.method) { in pcap_read_npf()615 pw->samp_npkt = (pw->samp_npkt + 1) % p->rmt_samp.value; in pcap_read_npf()643 pw->samp_time.tv_usec = pkt_header->ts.tv_usec + p->rmt_samp.value * 1000; in pcap_read_npf()
464 return &p->rmt_samp; in pcap_setsampling()
1706 fp->rmt_samp.method = samp_param->method; in daemon_msg_startcap_req()1707 fp->rmt_samp.value = samp_param->value; in daemon_msg_startcap_req()