Lines Matching refs:rec
98 static int snoop_read_rec(rec) in snoop_read_rec() argument
99 struct snooppkt *rec; in snoop_read_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; local
133 if ((i = snoop_read_rec(&rec)) <= 0)
159 struct snooppkt rec; local
165 if ((i = snoop_read_rec(&rec)) <= 0)