1 #include "nx_api.h"
2 #if defined(NX_TAHI_ENABLE) && defined(FEATURE_NX_IPV6)
3 
4 #include "netx_tahi.h"
5 
6 static char pkt1[] = {
7 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
8 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
9 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
10 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
11 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
12 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
14 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
15 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
16 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
17 
18 #if 0
19 static char pkt2[] = {
20 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
21 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
22 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
23 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
25 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
27 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
28 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
29 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
30 
31 static char pkt3[] = {
32 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x11,
33 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
34 0x00, 0x00, 0x00, 0x18, 0x3a, 0xff, 0x00, 0x00,
35 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x02,
37 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
39 0xd0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x80,
40 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
41 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56 };
42 #endif
43 
44 static char pkt4[] = {
45 0x33, 0x33, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11,
46 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00,
47 0x00, 0x00, 0x00, 0x10, 0x3a, 0xff, 0xfe, 0x80,
48 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11,
49 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02,
50 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
51 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x85, 0x00,
52 0xad, 0xf9, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
53 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 };
54 
55 static char pkt5[] = {
56 0x33, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
57 0x00, 0x00, 0x01, 0x00, 0x86, 0xdd, 0x60, 0x00,
58 0x00, 0x00, 0x00, 0x38, 0x3a, 0xff, 0xfe, 0x80,
59 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
60 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0xff, 0x02,
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x86, 0x00,
63 0x2e, 0x2c, 0x40, 0x00, 0x07, 0x0d, 0x00, 0x00,
64 0x75, 0x35, 0x00, 0x00, 0x03, 0xed, 0x01, 0x01,
65 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x04,
66 0x40, 0x80, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00,
67 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xfe,
68 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00,
69 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
70 
71 static char pkt6[] = {
72 0x33, 0x33, 0xff, 0x33, 0x44, 0x56, 0x00, 0x00,
73 0x00, 0x00, 0x01, 0x00, 0x86, 0xdd, 0x60, 0x00,
74 0x00, 0x00, 0x00, 0x20, 0x3a, 0xff, 0xfe, 0x80,
75 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
76 0x00, 0xff, 0xfe, 0x00, 0x01, 0x00, 0xff, 0x02,
77 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
78 0x00, 0x01, 0xff, 0x33, 0x44, 0x56, 0x87, 0x00,
79 0x85, 0xfb, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xfe,
80 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, 0x02, 0x11,
81 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x01, 0x01,
82 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 };
83 
84 TAHI_TEST_SEQ tahi_03_033[] = {
85     {TITLE, "03-033", 6, 0},
86 
87     {CHECK, &pkt1[0], sizeof(pkt1), 130},
88     {CHECK, &pkt4[0], sizeof(pkt4), 5},
89 
90     {INJECT, &pkt5[0], sizeof(pkt5), 0},
91     {N_CHECK, (char *)NS, 0, 5},
92 
93     {INJECT, &pkt6[0], sizeof(pkt6), 0},
94     {N_CHECK, (char *)NA, 0, 5},
95 
96     {CLEANUP, NX_NULL, 0, 0},
97     {DUMP, NX_NULL, 0, 0}
98 };
99 
100 int tahi_03_033_size = sizeof(tahi_03_033) / sizeof(TAHI_TEST_SEQ);
101 
102 #endif /* NX_TAHI_ENABLE */
103