Lines Matching defs:len

56 static unsigned short len, saved_len;
104 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) +
108 TFTP_PORT, len, &tp))
123 ++iport, TFTP_PORT, len, &tp))
155 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 2;
156 if (len > TFTP_MAX_PACKET)
158 e = p + len;
178 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + sizeof(tp.u.err.errcode) +
188 len, &tp);
199 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 4;
200 if (len > packetsize) /* shouldn't happen */
223 ++bcounter, len, len < packetsize)) <= 0)
225 if (len < packetsize) { /* End of data --- fnc should not have returned */
267 ++iport, TFTP_PORT, len, &tp))
315 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2;
316 if (len > TFTP_MAX_PACKET)
319 e = p + len;
351 len = (grub_sprintf ((char *) tp.u.err.errmsg,
358 len, &tp);
381 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4;
384 if (len > packetsize)
388 __FILE__, __LINE__, len, packetsize);
433 grub_memmove (buf + buf_read, tr->u.data.download, len);
434 buf_read += len;
437 if (len < packetsize)
468 for (i = 0, p = (char *) &tp; i < len; i++)
479 TFTP_PORT, len, &tp);
518 len = saved_len;
620 len = (grub_sprintf ((char *) tp.u.rrq,
627 grub_memmove ((char *) &saved_tp, (char *) &tp, len);
628 saved_len = len;
697 uint16_t len;
707 rc = eb_pxenv_tftp_read(buf, &len);
710 rc = fnc(buf, ++block, len, len < packetsize);
711 if (rc <= 0 || len < packetsize)
735 if (eb_pxenv_tftp_read(buf + buf_read, &len) == 0)
738 buf_read += len;
741 if (len < packetsize)
821 uint16_t len;