|
RTEMS CPU Kit with SuperCore
|
#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <malloc.h>#include <string.h>#include <unistd.h>#include <fcntl.h>#include <rtems.h>#include <rtems/libio_.h>#include <rtems/seterr.h>#include <rtems/rtems_bsdnet.h>#include <rtems/tftp.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>
Data Structures | |
| union | tftpPacket |
| struct | tftpPacket::tftpRWRQ |
| struct | tftpPacket::tftpDATA |
| struct | tftpPacket::tftpACK |
| struct | tftpPacket::tftpERROR |
| struct | tftpStream |
| struct | tftpfs_info_s |
Macros | |
| #define | UDP_PORT_BASE 3180 |
| #define | PACKET_FIRST_TIMEOUT_MILLISECONDS 400L |
| #define | PACKET_TIMEOUT_MILLISECONDS 6000L |
| #define | OPEN_RETRY_LIMIT 10 |
| #define | IO_RETRY_LIMIT 10 |
| #define | TFTP_OPCODE_RRQ 1 |
| #define | TFTP_OPCODE_WRQ 2 |
| #define | TFTP_OPCODE_DATA 3 |
| #define | TFTP_OPCODE_ACK 4 |
| #define | TFTP_OPCODE_ERROR 5 |
| #define | TFTP_BUFSIZE 512 |
| #define | TFTPFS_VERBOSE (1 << 0) |
| #define | tftpfs_info_mount_table(_mt) ((tftpfs_info_t*) ((_mt)->fs_info)) |
| #define | tftpfs_info_pathloc(_pl) ((tftpfs_info_t*) ((_pl)->mt_entry->fs_info)) |
| #define | tftpfs_info_iop(_iop) (tftpfs_info_pathloc (&((_iop)->pathinfo))) |
Typedefs | |
| typedef struct tftpfs_info_s | tftpfs_info_t |
Functions | |
| int | rtems_tftpfs_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data) |
1.8.13