Lines Matching defs:rec
98 static int snoop_read_rec(rec)
99 struct snooppkt *rec;
103 if (read(sfd, (char *)rec, sizeof(*rec)) != sizeof(*rec))
106 ilen = (int)ntohl(rec->sp_ilen);
107 plen = (int)ntohl(rec->sp_plen);
108 if (ilen > plen || plen < sizeof(*rec))
111 plen -= sizeof(*rec);
129 struct snooppkt rec;
133 if ((i = snoop_read_rec(&rec)) <= 0)
159 struct snooppkt rec;
165 if ((i = snoop_read_rec(&rec)) <= 0)