RTEMS 6.1-rc6
|
This source file contains the implementation of network interaction functions related to the UDP network fake for tftpfs testing. More...
#include <stdio.h>
#include <inttypes.h>
#include <arpa/inet.h>
#include <rtems/test.h>
#include "tftpfs_interactions.h"
#include "tftpfs_udp_network_fake.h"
Data Structures | |
struct | interaction_data_socket |
struct | interaction_data_close |
struct | interaction_data_bind |
struct | interaction_data_sendto |
struct | interaction_data_recvfrom |
Macros | |
#define | TFTP_MAX_FILENAME_STRLEN 12 |
Typedefs | |
typedef struct interaction_data_socket | interaction_data_socket |
typedef struct interaction_data_close | interaction_data_close |
typedef struct interaction_data_bind | interaction_data_bind |
typedef struct interaction_data_sendto | interaction_data_sendto |
typedef struct interaction_data_recvfrom | interaction_data_recvfrom |
This source file contains the implementation of network interaction functions related to the UDP network fake for tftpfs testing.
The UDP Network Fake requires interactions between TFTP client and test (which emulates a TFTP server). The idea is that each test defines a sequence of interactions. In a successful test run all interactions must be carried out one-by-one till the last interaction is reached.
Interactions appear when the TFTP client calls functions like sendto(), recvfrom(), or socket(). Here functions are defined which