XINU
|
Go to the source code of this file.
Functions | |
status | tftp_send1 (int32 sock, uint32 remip, uint16 *remport, struct tftp_msg *msg, int32 mlen, struct tftp_msg *inmsg, uint16 expected) |
status | tftpget (uint32 serverip, const char *filename, char *rcv_buf, uint32 rcv_buf_size, byte verbose) |
status | tftpget_mb (uint32 serverip, const char *filename, char **rcv_bufs, uint32 *rcv_buf_sizes, uint32 rcv_buf_count, byte verbose) |
status tftp_send1 | ( | int32 | sock, |
uint32 | remip, | ||
uint16 * | remport, | ||
struct tftp_msg * | msg, | ||
int32 | mlen, | ||
struct tftp_msg * | inmsg, | ||
uint16 | expected | ||
) |
Definition at line 16 of file tftp.c.
References kprintf(), ntohs, SYSERR, TFTP_DATA, TFTP_ERROR, TFTP_WAIT, TIMEOUT, udp_recvaddr(), and udp_sendto().
Referenced by tftpget_mb().
status tftpget | ( | uint32 | serverip, |
const char * | filename, | ||
char * | rcv_buf, | ||
uint32 | rcv_buf_size, | ||
byte | verbose | ||
) |
Definition at line 100 of file tftp.c.
References tftpget_mb().
status tftpget_mb | ( | uint32 | serverip, |
const char * | filename, | ||
char ** | rcv_bufs, | ||
uint32 * | rcv_buf_sizes, | ||
uint32 | rcv_buf_count, | ||
byte | verbose | ||
) |
Definition at line 118 of file tftp.c.
References getport(), htons, kprintf(), memset(), NULL, NULLCH, strncpy(), strnlen(), SYSERR, tftp_msg::tf_data, tftp_msg::tf_dblk, tftp_msg::tf_opcode, TFTP_ACK, TFTP_MAXNAM, TFTP_MAXRETRIES, TFTP_PORT, TFTP_RRQ, tftp_send1(), TFTP_VERBOSE, TIMEOUT, udp_register(), udp_release(), and udp_sendto().
Referenced by tftpget().