Lines Matching refs:sf
21 * sf-pcap-ng.c - pcap-ng-file-format-specific code from savefile.c
61 #include "sf-pcap-ng.h"
242 if (p->sf.swapped) {
349 if (p->sf.swapped) {
484 if (p->sf.swapped)
579 p->sf.swapped = 1;
630 if (p->sf.swapped) {
647 p->sf.version_major = shbp->major_version;
648 p->sf.version_minor = shbp->minor_version;
653 p->sf.tsresol = 1000000; /* microsecond resolution */
654 p->sf.tsscale = 1; /* multiply by 1 to scale to microseconds */
655 p->sf.tsoffset = 0; /* absolute timestamps */
688 if (p->sf.swapped) {
696 p->sf.ifcount++;
702 if (process_idb_options(p, &cursor, &p->sf.tsresol,
703 &p->sf.tsoffset, errbuf) == -1)
711 if (p->sf.tsresol > 1000000) {
716 p->sf.tsscale = (p->sf.tsresol / 1000000);
722 p->sf.tsscale = (1000000 / p->sf.tsresol);
752 p->sf.next_packet_op = pcap_ng_next_packet;
777 FILE *fp = p->sf.rfile;
811 if (p->sf.swapped) {
846 if (p->sf.swapped) {
876 if (p->sf.swapped) {
905 if (p->sf.swapped) {
934 p->sf.ifcount++;
953 if (tsresol != p->sf.tsresol) {
958 if (tsoffset != p->sf.tsoffset) {
980 if (p->sf.swapped) {
1037 p->sf.ifcount = 0;
1052 if (interface_id >= p->sf.ifcount) {
1065 sec = t / p->sf.tsresol + p->sf.tsoffset;
1066 frac = t % p->sf.tsresol;
1067 if (p->sf.tsresol > 1000000) {
1072 frac /= p->sf.tsscale;
1078 frac *= p->sf.tsscale;
1090 if (p->sf.swapped) {