Home | History | Annotate | Download | only in pending

Lines Matching refs:packetlen

219   int packetlen, retry;
242 packetlen = mkpkt_err(packet, TFTP_ER_UNKID, TFTP_ES_UNKID);
243 (void) write_server(sd, packet, packetlen, server);
252 packetlen = mkpkt_err(packet, TFTP_ER_ILLEGALOP, TFTP_ES_ILLEGALOP);
253 (void) write_server(sd, packet, packetlen, server);
380 int packetlen, sd, fd, retry = 0, ret, result = -1;
387 packetlen = mkpkt_request(packet, TFTP_OP_WRQ, TT.remote_file, 1);
388 ret = write_server(sd, packet, packetlen, &server);
389 if (ret != packetlen) goto errout_with_sd;
397 packetlen = mkpkt_data(fd, offset, packet, blockno);
398 if (packetlen < 0) goto errout_with_sd;
400 ret = write_server(sd, packet, packetlen, &server);
401 if (ret != packetlen) goto errout_with_sd;
405 if (packetlen < TFTP_PACKETSIZE) break;