Home
last modified time | relevance | path

Searched refs:tstamp_precision (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/contrib/libpcap/
H A Dpcap-snf.c108 snf_timestamp_to_timeval(const int64_t ts_nanosec, const int tstamp_precision) in snf_timestamp_to_timeval() argument
121 if (tstamp_precision == PCAP_TSTAMP_PRECISION_NANO) in snf_timestamp_to_timeval()
194 hdr.ts = snf_timestamp_to_timeval(req.timestamp, p->opt.tstamp_precision); in snf_read()
H A Dsf-pcap.c337 p->opt.tstamp_precision = precision; in pcap_check_header()
796 …hdr.magic = p->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO ? NSEC_TCPDUMP_MAGIC : TCPDUMP_M… in sf_write_header()
1110 if (p->opt.tstamp_precision != PCAP_TSTAMP_PRECISION_MICRO) { in pcap_dump_open_append()
1119 if (p->opt.tstamp_precision != PCAP_TSTAMP_PRECISION_NANO) { in pcap_dump_open_append()
H A Dpcap.c2563 p->opt.tstamp_precision = PCAP_TSTAMP_PRECISION_MICRO;
2699 pcap_set_tstamp_precision(pcap_t *p, int tstamp_precision) argument
2710 if (tstamp_precision < 0)
2721 if (tstamp_precision == PCAP_TSTAMP_PRECISION_MICRO) {
2722 p->opt.tstamp_precision = tstamp_precision;
2731 if (p->tstamp_precision_list[i] == (u_int)tstamp_precision) {
2735 p->opt.tstamp_precision = tstamp_precision;
2750 return (p->opt.tstamp_precision);
2946 p->opt.tstamp_precision = PCAP_TSTAMP_PRECISION_MICRO;
4526 p->opt.tstamp_precision = precision;
H A Dpcap-int.h174 int tstamp_precision; member
H A Dsf-pcapng.c909 p->opt.tstamp_precision = precision; in pcap_ng_check_header()
993 p->opt.tstamp_precision = precision; in pcap_ng_check_header()
H A Dpcap-linux.c2658 if (handle->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO) { in setup_socket()
4280 … handle->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO ? h.h2->tp_nsec : h.h2->tp_nsec / 1000, in pcap_read_linux_mmap_v2()
4405 …handle->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO ? tp3_hdr->tp_nsec : tp3_hdr->tp_nsec /… in pcap_read_linux_mmap_v3()
H A Dpcap-dag.c680 switch (p->opt.tstamp_precision) { in dag_read()
H A Dpcap-bpf.c1382 if (p->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO) { in pcap_read_bpf()