1 #include "nx_api.h" 2 #if defined(NX_TAHI_ENABLE) && defined(FEATURE_NX_IPV6) 3 #include "netx_tahi.h" 4 5 #if 0 6 /* Frame (110 bytes) */ 7 static char pkt1[110] = { 8 0x33, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* 33...... */ 9 0x00, 0x00, 0xa6, 0xa6, 0x86, 0xdd, 0x60, 0x00, /* ......`. */ 10 0x00, 0x00, 0x00, 0x38, 0x3a, 0xff, 0xfe, 0x80, /* ...8:... */ 11 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, /* ........ */ 12 0x00, 0xff, 0xfe, 0x00, 0xa6, 0xa6, 0xff, 0x02, /* ........ */ 13 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 14 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x86, 0x00, /* ........ */ 15 0x42, 0x9e, 0x00, 0x80, 0x0b, 0xb8, 0x00, 0x00, /* B....... */ 16 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, /* ........ */ 17 0x00, 0x00, 0x00, 0x00, 0xa6, 0xa6, 0x03, 0x04, /* ........ */ 18 0x40, 0x80, 0x00, 0x00, 0x38, 0x40, 0x00, 0x00, /* @...8@.. */ 19 0x1c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xfe, /* . ....?. */ 20 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, /* ........ */ 21 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* ...... */ 22 }; 23 24 /* Frame (70 bytes) */ 25 static char pkt2[70] = { 26 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00, /* .."3DV.. */ 27 0x00, 0x00, 0xa1, 0xa1, 0x86, 0xdd, 0x60, 0x00, /* ......`. */ 28 0x00, 0x00, 0x00, 0x10, 0x3a, 0x40, 0x3f, 0xfe, /* ....:@?. */ 29 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, 0x02, 0x00, /* ........ */ 30 0x00, 0xff, 0xfe, 0x00, 0xa1, 0xa1, 0x3f, 0xfe, /* ......?. */ 31 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, 0x02, 0x11, /* ........ */ 32 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x80, 0x00, /* "..3DV.. */ 33 0xe9, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* .z...... */ 34 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* ...... */ 35 }; 36 #endif 37 38 /* Frame (118 bytes) */ 39 static char pkt3[118] = { 40 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 41 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 42 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 43 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 44 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 45 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 46 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 47 0x02, 0x23, 0x00, 0x40, 0x78, 0x3f, 0x01, 0x96, /* .#.@x?.. */ 48 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 49 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 50 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 51 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 52 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 53 0x00, 0x00, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* ........ */ 54 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 55 }; 56 57 /* Frame (128 bytes) */ 58 static char pkt4[128] = { 59 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00, /* .."3DV.. */ 60 0x00, 0x00, 0xa1, 0xa1, 0x86, 0xdd, 0x60, 0x00, /* ......`. */ 61 0x00, 0x00, 0x00, 0x4a, 0x11, 0x40, 0xfe, 0x80, /* ...J.@.. */ 62 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, /* ........ */ 63 0x00, 0xff, 0xfe, 0x00, 0xa1, 0xa1, 0xfe, 0x80, /* ........ */ 64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 65 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0x02, 0x22, /* "..3DV." */ 66 0x02, 0x22, 0x00, 0x4a, 0xe1, 0xea, 0x02, 0x96, /* .".J.... */ 67 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 68 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 69 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x28, /* "3DV...( */ 70 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x32, /* .......2 */ 71 0x00, 0x00, 0x00, 0x50, 0x00, 0x05, 0x00, 0x18, /* ...P.... */ 72 0x3f, 0xfe, 0x05, 0x01, 0xff, 0xff, 0x01, 0x00, /* ?....... */ 73 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xab, 0xcd, /* ........ */ 74 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0xc8 /* ...d.... */ 75 }; 76 77 /* Frame (118 bytes) */ 78 static char pkt5[118] = { 79 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 80 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 81 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 82 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 83 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 84 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 85 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 86 0x02, 0x23, 0x00, 0x40, 0x77, 0xdb, 0x01, 0x96, /* .#.@w... */ 87 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 88 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 89 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 90 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 91 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 92 0x00, 0x64, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* .d...... */ 93 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 94 }; 95 96 #if 0 97 /* Frame (118 bytes) */ 98 static char pkt6[118] = { 99 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 100 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 101 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 102 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 103 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 104 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 105 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 106 0x02, 0x23, 0x00, 0x40, 0x77, 0x13, 0x01, 0x96, /* .#.@w... */ 107 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 108 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 109 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 110 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 111 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 112 0x01, 0x2c, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* .,...... */ 113 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 114 }; 115 116 /* Frame (118 bytes) */ 117 static char pkt7[118] = { 118 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 119 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 120 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 121 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 122 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 124 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 125 0x02, 0x23, 0x00, 0x40, 0x75, 0x83, 0x01, 0x96, /* .#.@u... */ 126 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 127 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 128 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 129 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 130 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 131 0x02, 0xbc, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* ........ */ 132 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 133 }; 134 135 /* Frame (118 bytes) */ 136 static char pkt8[118] = { 137 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 138 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 139 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 140 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 141 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 142 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 143 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 144 0x02, 0x23, 0x00, 0x40, 0x72, 0x63, 0x01, 0x96, /* .#.@rc.. */ 145 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 146 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 147 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 148 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 149 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 150 0x05, 0xdc, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* ........ */ 151 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 152 }; 153 154 /* Frame (118 bytes) */ 155 static char pkt9[118] = { 156 0x33, 0x33, 0x00, 0x01, 0x00, 0x02, 0x00, 0x11, /* 33...... */ 157 0x22, 0x33, 0x44, 0x56, 0x86, 0xdd, 0x60, 0x00, /* "3DV..`. */ 158 0x00, 0x00, 0x00, 0x40, 0x11, 0xff, 0xfe, 0x80, /* ...@.... */ 159 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 160 0x22, 0xff, 0xfe, 0x33, 0x44, 0x56, 0xff, 0x02, /* "..3DV.. */ 161 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 162 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x22, /* ......." */ 163 0x02, 0x23, 0x00, 0x40, 0x6c, 0x23, 0x01, 0x96, /* .#.@l#.. */ 164 0xe4, 0xa4, 0x00, 0x01, 0x00, 0x0e, 0x00, 0x01, /* ........ */ 165 0x00, 0x01, 0xac, 0x7d, 0x87, 0x3a, 0x00, 0x11, /* ...}.:.. */ 166 0x22, 0x33, 0x44, 0x56, 0x00, 0x03, 0x00, 0x0c, /* "3DV.... */ 167 0xc0, 0xde, 0xdb, 0xad, 0x00, 0x00, 0x00, 0x00, /* ........ */ 168 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, /* ........ */ 169 0x0c, 0x1c, 0x00, 0x06, 0x00, 0x08, 0x00, 0x17, /* ........ */ 170 0x00, 0x1f, 0x00, 0x29, 0x00, 0x18 /* ...).. */ 171 }; 172 #endif 173 174 175 176 TAHI_TEST_SEQ tahi_dhcpv6_01_082[] = { 177 {TITLE, "dhcpv6 01-082", 13, 0}, 178 179 {CHECK, &pkt3[0], sizeof(pkt3), 30}, 180 {INJECT, &pkt4[0], sizeof(pkt4), 0}, 181 {CHECK, &pkt5[0], sizeof(pkt5), 5}, 182 183 184 {CLEANUP, NX_NULL, 0, 0}, 185 {DUMP, NX_NULL, 0, 0} 186 }; 187 188 int tahi_dhcpv6_01_082_size = sizeof(tahi_dhcpv6_01_082) / sizeof(TAHI_TEST_SEQ); 189 #endif 190