Lines Matching defs:tprot
136 struct tprot {
144 static unsigned char tpbuf[sizeof(struct tprot) + 2048];
145 static unsigned char rpbuf[sizeof(struct tprot) + 2048];
170 struct tprot *tpt;
175 tpt = (struct tprot *)packet;
176 total = cc = recv(sd, packet, sizeof(struct tprot), 0);
177 expected = sizeof(struct tprot); /* until we get tp_dlen */
178 gothead = total >= sizeof(struct tprot);
187 if (!gothead && total >= sizeof(struct tprot)) {
227 struct tprot *pttp = (struct tprot *)tpbuf;
228 struct tprot *prtp = (struct tprot *)rpbuf;
250 offset = sizeof(struct tprot) + cstab[i].cs_offset;
251 len = sizeof(struct tprot) + cstab[i].cs_dlen;
309 pend = rpbuf + sizeof(struct tprot) + ntohl(prtp->tp_dlen);