Lines Matching defs:tftp_error
129 static int tftp_error(struct xfer *, u16_t, const char *, ...) __attribute__((format(printf, 3, 4)));
303 * from the server port (see tftp_error() for the reason).
340 tftp_error(xfer, TFTP_ENOSYS, "Short packet");
351 tftp_error(xfer, TFTP_ENOSYS, "Short packet");
364 tftp_error(xfer, TFTP_ENOSYS, "Unexpected opcode %d", op);
440 tftp_error(xfer, TFTP_EUNDEF, "Read failed");
456 * decoded as TFTP (see tftp_error()).
536 tftp_error(xfer, TFTP_EUNDEF, "Failed to create connection");
611 return tftp_error(xfer, TFTP_ENOENT, "Permission denied");
629 return tftp_error(xfer, TFTP_ENOENT, "Permission denied");
632 return tftp_error(xfer, TFTP_ENOENT, "File not found");
642 return tftp_error(xfer, TFTP_ENOENT, "File not found");
666 return tftp_error(xfer, TFTP_ENOSYS, "Mode \"netascii\" not supported");
669 return tftp_error(xfer, TFTP_ENOSYS, "Mode \"mail\" not supported");
672 return tftp_error(xfer, TFTP_ENOSYS, "Unknown mode \"%s\"", modename);
692 return tftp_error(xfer, TFTP_EUNDEF, "Missing option value");
769 tftp_error(xfer, TFTP_EUNDEF, "Unterminated %s", msg);
865 tftp_error(xfer, TFTP_EUNDEF, "Internal error");
886 tftp_error(struct xfer *xfer, u16_t error, const char *fmt, ...)
939 struct tftp_error {
946 struct tftp_error *errpkt;
954 errpkt = (struct tftp_error *)p->payload;