Home | History | Annotate | Download | only in netboot

Lines Matching refs:tp

42 static struct tftp_t tp, saved_tp;
80 ++iport, TFTP_PORT, len, &tp))
95 TFTP_MIN_PACKET, &tp);
162 tp.opcode = htons (TFTP_ERROR);
163 tp.u.err.errcode = 8;
164 len = (grub_sprintf ((char *) tp.u.err.errmsg,
166 + sizeof (tp.ip) + sizeof (tp.udp)
167 + sizeof (tp.opcode) + sizeof (tp.u.err.errcode)
171 len, &tp);
187 block = tp.u.ack.block = 0;
205 block = ntohs (tp.u.ack.block = tr->u.data.block);
213 tp.u.ack.block = htons (block = prevblock);
216 tp.opcode = abort ? htons (TFTP_ERROR) : htons (TFTP_ACK);
224 oport, TFTP_MIN_PACKET, &tp);
287 for (i = 0, p = (char *) &tp; i < len; i++)
298 TFTP_PORT, len, &tp);
333 grub_memmove ((char *) &tp, (char *) &saved_tp, saved_len);
338 grub_printf ("opcode = 0x%x, rrq = ", (unsigned long) tp.opcode);
341 if (tp.u.rrq[i] >= ' ' && tp.u.rrq[i] <= '~')
342 grub_putchar (tp.u.rrq[i]);
429 tp.opcode = htons (TFTP_RRQ);
433 len = (grub_sprintf ((char *) tp.u.rrq,
436 + sizeof (tp.ip) + sizeof (tp.udp) + sizeof (tp.opcode) + 1);
440 grub_memmove ((char *) &saved_tp, (char *) &tp, len);