Lines Matching defs:rec
160 static int pcap_read_rec(rec)
161 struct pcap_pkthdr *rec;
165 if (read(pfd, (char *)rec, sizeof(*rec)) != sizeof(*rec))
169 rec->ph_clen = SWAPLONG(rec->ph_clen);
170 rec->ph_len = SWAPLONG(rec->ph_len);
171 rec->ph_ts.tv_sec = SWAPLONG(rec->ph_ts.tv_sec);
172 rec->ph_ts.tv_usec = SWAPLONG(rec->ph_ts.tv_usec);
174 p = rec->ph_clen;
175 n = MIN(p, rec->ph_len);
192 struct pcap_pkthdr rec;
196 if ((i = pcap_read_rec(&rec)) <= 0)
222 struct pcap_pkthdr rec;
230 if ((i = pcap_read_rec(&rec)) <= 0)