Lines Matching refs:sf
21 * sf-pcap.c - libpcap-file-format-specific code from savefile.c
68 #include "sf-pcap.h"
144 p->sf.swapped = 1;
171 if (p->sf.swapped) {
185 p->sf.version_major = hdr.version_major;
186 p->sf.version_minor = hdr.version_minor;
192 p->sf.next_packet_op = pcap_next_packet;
208 p->sf.lengths_swapped = SWAPPED;
210 p->sf.lengths_swapped = MAYBE_SWAPPED;
212 p->sf.lengths_swapped = NOT_SWAPPED;
216 p->sf.lengths_swapped = SWAPPED;
220 p->sf.lengths_swapped = NOT_SWAPPED;
242 p->sf.hdrsize = sizeof(struct pcap_sf_patched_pkthdr);
268 p->sf.hdrsize = sizeof(struct pcap_sf_pkthdr);
298 FILE *fp = p->sf.rfile;
309 amt_read = fread(&sf_hdr, 1, p->sf.hdrsize, fp);
310 if (amt_read != p->sf.hdrsize) {
320 (unsigned long)p->sf.hdrsize,
329 if (p->sf.swapped) {
342 switch (p->sf.lengths_swapped) {
433 if (p->sf.swapped) {