Home | History | Annotate | Download | only in server

Lines Matching defs:tp

277 static int do_tftp(struct testcase *test, struct tftphdr *tp, ssize_t size);
665 struct tftphdr *tp;
877 tp = &buf.hdr;
878 tp->th_opcode = ntohs(tp->th_opcode);
879 if(tp->th_opcode == opcode_RRQ || tp->th_opcode == opcode_WRQ) {
881 if(do_tftp(&test, tp, n) < 0)
947 static int do_tftp(struct testcase *test, struct tftphdr *tp, ssize_t size)
971 fprintf(server, "opcode: %x\n", tp->th_opcode);
973 cp = (char *)&tp->th_stuff;
1034 ecode = validate_access(test, filename, tp->th_opcode);
1049 if(tp->th_opcode == opcode_WRQ)
1409 struct tftphdr *tp;
1413 tp = &buf.hdr;
1414 tp->th_opcode = htons((unsigned short)opcode_ERROR);
1415 tp->th_code = htons((unsigned short)error);
1421 tp->th_code = EUNDEF; /* set 'undef' errorcode */
1427 memcpy(tp->th_msg, pe->e_msg, length + 1);