Lines Matching refs:mess
23 static ssize_t tftp_err(int err, char *packet, char *mess, char *file);
378 } *mess = (struct ack *)daemon->packet; in check_tftp_listeners() local
392 if (ntohs(mess->op) == OP_ACK && ntohs(mess->block) == (unsigned short)transfer->block) in check_tftp_listeners()
400 else if (ntohs(mess->op) == OP_ERR) in check_tftp_listeners()
417 (int)ntohs(mess->block), err, in check_tftp_listeners()
499 } *mess = (struct errmess *)packet; in tftp_err() local
503 mess->op = htons(OP_ERR); in tftp_err()
504 mess->err = htons(err); in tftp_err()
505 ret += (snprintf(mess->message, 500, message, file, errstr) + 1); in tftp_err()
506 my_syslog(MS_TFTP | LOG_ERR, "TFTP %s", mess->message); in tftp_err()
526 } *mess = (struct oackmess *)packet; in get_block() local
528 p = mess->data; in get_block()
529 mess->op = htons(OP_OACK); in get_block()
549 } *mess = (struct datamess *)packet; in get_block() local
559 mess->op = htons(OP_DATA); in get_block()
560 mess->block = htons((unsigned short)(transfer->block)); in get_block()
563 !read_write(transfer->file->fd, mess->data, size, 1)) in get_block()
575 if (mess->data[i] == '\n' && ( i != 0 || !transfer->carrylf)) in get_block()
587 memmove(&mess->data[i+1], &mess->data[i], size - (i + 1)); in get_block()
588 mess->data[i] = '\r'; in get_block()