fill_tftp_request()

int fill_tftp_request(tftp_t *pkt, u_int16_t opcode, const char *filename, int32_t blockno);

pkt

This is a pointer to the packet to fill in.

opcode

This is the opcode, either TFTP_RRQ or TFTP_ACK.

filename

For a TFTP_RRQ, this is the filename to request.

blockno

For a TFTP_ACK, this is the number of the current block being downloaded.

R >