1 #include "nx_api.h"
2 #if defined(NX_TAHI_ENABLE) && defined(FEATURE_NX_IPV6)
3 
4 #include "netx_tahi.h"
5 
6 #if 0
7 static char pkt1[] = {
8 0x33, 0x33, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11,
9 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
10 0x00, 0x00, 0x00, 0x10, 0x3a, 0xff, 0xfe, 0x80,
11 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
12 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02,
13 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
14 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x85, 0x00,
15 0xad, 0xf9, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
16 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
17 
18 static char pkt2[] = {
19 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11,
20 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
21 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
22 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
23 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xfe, 0x80,
24 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
25 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0x87, 0x00,
26 0xa9, 0xec, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
27 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
28 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0x01, 0x01,
29 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
30 #endif
31 
32 static char pkt3[] = {
33 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
34 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
35 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
36 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
39 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
40 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
41 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
42 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
43 
44 static char pkt4[] = {
45 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x00,
46 0x00, 0x00, 0x01, 0x00, 0x86, 0xdd, 0x60, 0x00,
47 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
48 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
50 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
51 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x01,
52 0xd0, 0x02, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
54 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
55 
56 #if 0
57 static char pkt5[] = {
58 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
59 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
60 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
63 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
64 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
65 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
67 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
68 
69 static char pkt6[] = {
70 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
71 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
72 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
73 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
74 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
75 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
76 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
77 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
78 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
79 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
80 
81 static char pkt7[] = {
82 0x33, 0x33, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11,
83 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
84 0x00, 0x00, 0x00, 0x10, 0x3a, 0xff, 0xfe, 0x80,
85 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
86 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02,
87 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
88 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x85, 0x00,
89 0xad, 0xf9, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
90 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
91 #endif
92 
93 static char pkt8[] = {
94 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x00,
95 0x00, 0x00, 0x01, 0x00, 0x86, 0xdd, 0x60, 0x00,
96 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
97 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
98 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0xff, 0x02,
99 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
100 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
101 0xcd, 0x79, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
102 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
103 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x01, 0x01,
104 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 };
105 
106 static char pkt9[] = {
107 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11,
108 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
109 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
110 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
111 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xfe, 0x80,
112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
113 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0x88, 0x00,
114 0xe2, 0x51, 0x60, 0x00, 0x00, 0x00, 0xfe, 0x80,
115 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
116 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x02, 0x01,
117 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
118 
119 static char pkt10[] = {
120 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00,
121 0x00, 0x00, 0x01, 0x00, 0x86, 0xdd, 0x60, 0x00,
122 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
124 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0xfe, 0x80,
125 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
126 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x87, 0x00,
127 0xa9, 0xec, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
128 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
129 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x01, 0x01,
130 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 };
131 
132 static char pkt11[] = {
133 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11,
134 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
135 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
136 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
137 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xfe, 0x80,
138 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
139 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0x88, 0x00,
140 0xe2, 0x51, 0x60, 0x00, 0x00, 0x00, 0xfe, 0x80,
141 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
142 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x02, 0x01,
143 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
144 
145 TAHI_TEST_SEQ tahi_03_010[] = {
146     {TITLE, "03-010", 6, 0},
147 
148     {CHECK, &pkt3[0], sizeof(pkt3), 130},
149     {INJECT, &pkt4[0], sizeof(pkt4), 0},
150     {WAIT, NX_NULL, 0, 5},
151 
152     {INJECT, &pkt8[0], sizeof(pkt8), 0},
153     {CHECK, &pkt9[0], sizeof(pkt9), 5},
154 
155     {INJECT, &pkt10[0], sizeof(pkt10), 0},
156     {CHECK, &pkt11[0], sizeof(pkt11), 5},
157 
158     {CLEANUP, NX_NULL, 0, 0},
159     {DUMP, NX_NULL, 0, 0}
160 };
161 
162 int tahi_03_010_size = sizeof(tahi_03_010) / sizeof(TAHI_TEST_SEQ);
163 
164 #endif /* NX_TAHI_ENABLE */
165