1 #ifndef _NX_RAM_NETWORK_DRIVER_TEST_1500_H_
2 #define _NX_RAM_NETWORK_DRIVER_TEST_1500_H_
3 #include "tx_api.h"
4 #include "tx_timer.h"
5 #define NX_RAMDRIVER_OP_BYPASS      0
6 #define NX_RAMDRIVER_OP_DROP        1
7 #define NX_RAMDRIVER_OP_DELAY       2
8 #define NX_RAMDRIVER_OP_DUPLICATE   3
9 
10 #define NX_RAMDRIVER_TIMER_UNUSED   0
11 #define NX_RAMDRIVER_TIMER_USED     1
12 #define NX_RAMDRIVER_TIMER_DIRTY    2
13 
14 #define NX_MAX_TIMER                5
15 
16 VOID _nx_ram_network_driver_timer_clean(VOID);
17 
18 
19 #ifdef NX_PCAP_ENABLE
20 
21 /* Define return values.  */
22 #define NX_PCAP_FILE_OK             1
23 #define NX_PCAP_FILE_ERROR          0
24 
25 /* Define the pcap header struct.  */
26 typedef struct NX_PCAP_HEADER_FILE_STRUCT
27 {
28 UINT    magic_number;               /* magic number */
29 USHORT  version_major;              /* major version number */
30 USHORT  version_minor;              /* minor version number */
31 INT     this_zone;                  /* GMT to local correction */
32 UINT    sig_figs;                   /* accuracy of timestamps */
33 UINT    snapshot_length;            /* max length of captured packets, in octets */
34 UINT    link_type;                  /* data link type */
35 } NX_PCAP_FILE_HEADER;
36 
37 typedef struct NX_PCAP_PACKET_HEADER_STRUCT
38 {
39 UINT    time_stamp_second;          /* timestamp seconds */
40 UINT    time_stamp_microseconds;    /* timestamp microseconds */
41 UINT    capture_length;             /* number of octets of packet saved in file */
42 UINT    actual_length;              /* actual length of packet */
43 } NX_PCAP_PACKET_HEADER;
44 
45 /* Define time value.  */
46 typedef struct timeval NX_TIME_VALUE;
47 
48 #endif /* NX_PCAP_ENABLE  */
49 
50 #endif /* _NX_RAM_NETWORK_DRIVER_TEST_1500_H_ */
51