Lines Matching refs:tr
87 struct tftp_t *tr;
141 tr = (struct tftp_t *)&nic.packet[ETH_HLEN];
142 if (tr->opcode == ntohs(TFTP_ERROR))
145 ntohs(tr->u.err.errcode),
146 tr->u.err.errmsg);
150 if (tr->opcode == ntohs(TFTP_OACK)) {
151 char *p = tr->u.oack.data, *e;
155 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 2;
187 iport, ntohs(tr->udp.src),
198 else if (tr->opcode == htons(TFTP_DATA)) {
199 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 4;
202 block = ntohs(tp.u.ack.block = tr->u.data.block); }
212 oport = ntohs(tr->udp.src);
222 if ((rc = fnc(tr->u.data.download,
246 struct tftp_t *tr;
290 tr = (struct tftp_t *) &nic.packet[ETH_HLEN];
291 if (tr->opcode == ntohs (TFTP_ERROR))
294 ntohs (tr->u.err.errcode),
295 tr->u.err.errmsg);
299 if (tr->opcode == ntohs (TFTP_OACK))
301 char *p = tr->u.oack.data, *e;
315 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2;
357 iport, ntohs (tr->udp.src),
376 else if (tr->opcode == ntohs (TFTP_DATA))
381 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4;
392 block = ntohs (tp.u.ack.block = tr->u.data.block);
404 oport = ntohs (tr->udp.src);
433 grub_memmove (buf + buf_read, tr->u.data.download, len);