Lines Matching refs:rec
137 static int ipcap_read_rec(rec)
138 packetheader_t *rec;
143 s = (char *)rec;
144 n = sizeof(*rec);
147 i = read(pfd, (char *)rec, sizeof(*rec));
155 rec->caplen = SWAPLONG(rec->caplen);
156 rec->wirelen = SWAPLONG(rec->wirelen);
157 rec->seconds = SWAPLONG(rec->seconds);
158 rec->microseconds = SWAPLONG(rec->microseconds);
160 p = rec->caplen;
161 n = MIN(p, rec->wirelen);
180 packetheader_t rec;
184 if ((i = ipcap_read_rec(&rec)) <= 0)
211 packetheader_t rec;
227 if ((i = ipcap_read_rec(&rec)) <= 0)