1 2 #include "nx_api.h" 3 4 #ifdef __PRODUCT_NETXDUO__ 5 #include "netx_mdns_test.h" 6 7 /* Frame (334 bytes) */ 8 static const unsigned char pkt1[334] = { 9 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 10 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 11 0x00, 0x00, 0x01, 0x18, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 12 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 13 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 14 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 15 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 16 0x14, 0xe9, 0x01, 0x18, 0x58, 0xb1, 0x00, 0x00, /* ....X... */ 17 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, /* ........ */ 18 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 19 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 20 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0xff, 0x00, /* ocal.... */ 21 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* ..ARMMDN */ 22 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 23 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 24 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 25 0xff, 0x00, 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ....ARMM */ 26 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 27 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, /* local... */ 28 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, /* .....x.. */ 29 0x0a, 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, /* ...B.ARM */ 30 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 31 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 32 0x1c, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* ......x. */ 33 0x10, 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 34 0x00, 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, /* ..."..3D */ 35 0x57, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* W.ARMMDN */ 36 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 37 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 38 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 39 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* !.....d. */ 40 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, /* ......P. */ 41 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 42 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 43 0x6c, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* l..ARMMD */ 44 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, /* NSTest._ */ 45 0x68, 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, /* http._tc */ 46 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 47 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .......d */ 48 0x00, 0x14, 0x08, 0x70, 0x61, 0x70, 0x65, 0x72, /* ...paper */ 49 0x3d, 0x41, 0x34, 0x0a, 0x76, 0x65, 0x72, 0x73, /* =A4.vers */ 50 0x69, 0x6f, 0x6e, 0x3d, 0x30, 0x31 /* ion=01 */ 51 }; 52 53 /* Frame (334 bytes) */ 54 static const unsigned char pkt2[334] = { 55 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 56 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 57 0x00, 0x00, 0x01, 0x18, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 58 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 59 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 60 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 61 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 62 0x14, 0xe9, 0x01, 0x18, 0x58, 0xb1, 0x00, 0x00, /* ....X... */ 63 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, /* ........ */ 64 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 65 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 66 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0xff, 0x00, /* ocal.... */ 67 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* ..ARMMDN */ 68 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 69 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 70 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 71 0xff, 0x00, 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ....ARMM */ 72 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 73 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, /* local... */ 74 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, /* .....x.. */ 75 0x0a, 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, /* ...B.ARM */ 76 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 77 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 78 0x1c, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* ......x. */ 79 0x10, 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 80 0x00, 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, /* ..."..3D */ 81 0x57, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* W.ARMMDN */ 82 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 83 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 84 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 85 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* !.....d. */ 86 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, /* ......P. */ 87 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 88 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 89 0x6c, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* l..ARMMD */ 90 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, /* NSTest._ */ 91 0x68, 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, /* http._tc */ 92 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 93 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .......d */ 94 0x00, 0x14, 0x08, 0x70, 0x61, 0x70, 0x65, 0x72, /* ...paper */ 95 0x3d, 0x41, 0x34, 0x0a, 0x76, 0x65, 0x72, 0x73, /* =A4.vers */ 96 0x69, 0x6f, 0x6e, 0x3d, 0x30, 0x31 /* ion=01 */ 97 }; 98 99 /* Frame (334 bytes) */ 100 static const unsigned char pkt3[334] = { 101 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 102 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 103 0x00, 0x00, 0x01, 0x18, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 104 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 105 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 107 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 108 0x14, 0xe9, 0x01, 0x18, 0x58, 0xb1, 0x00, 0x00, /* ....X... */ 109 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, /* ........ */ 110 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 111 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 112 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0xff, 0x00, /* ocal.... */ 113 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* ..ARMMDN */ 114 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 115 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 116 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 117 0xff, 0x00, 0x01, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ....ARMM */ 118 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 119 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, /* local... */ 120 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, /* .....x.. */ 121 0x0a, 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, /* ...B.ARM */ 122 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 123 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 124 0x1c, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* ......x. */ 125 0x10, 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 126 0x00, 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, /* ..."..3D */ 127 0x57, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* W.ARMMDN */ 128 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, /* STest._h */ 129 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ttp._tcp */ 130 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 131 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* !.....d. */ 132 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, /* ......P. */ 133 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 134 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 135 0x6c, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* l..ARMMD */ 136 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x5f, /* NSTest._ */ 137 0x68, 0x74, 0x74, 0x70, 0x04, 0x5f, 0x74, 0x63, /* http._tc */ 138 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 139 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .......d */ 140 0x00, 0x14, 0x08, 0x70, 0x61, 0x70, 0x65, 0x72, /* ...paper */ 141 0x3d, 0x41, 0x34, 0x0a, 0x76, 0x65, 0x72, 0x73, /* =A4.vers */ 142 0x69, 0x6f, 0x6e, 0x3d, 0x30, 0x31 /* ion=01 */ 143 }; 144 145 /* Frame (466 bytes) */ 146 static const unsigned char pkt4[466] = { 147 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 148 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 149 0x00, 0x00, 0x01, 0x9c, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 150 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 151 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 152 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 153 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 154 0x14, 0xe9, 0x01, 0x9c, 0x29, 0x22, 0x00, 0x00, /* ....)".. */ 155 0x84, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, /* ........ */ 156 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 157 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 158 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, 0x80, /* ocal.... */ 159 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, 0x0a, /* ....x... */ 160 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ..B.ARMM */ 161 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 162 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x1c, /* local... */ 163 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x10, /* .....x.. */ 164 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 165 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, /* .."..3DW */ 166 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 167 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 168 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 169 0x00, 0x00, 0x78, 0x00, 0x19, 0x0b, 0x41, 0x52, /* ..x...AR */ 170 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 171 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 172 0x00, 0x04, 0x40, 0x00, 0x00, 0x08, 0x0b, 0x41, /* ..@....A */ 173 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, /* RMMDNSTe */ 174 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, /* st._http */ 175 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 176 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, /* cal..!.. */ 177 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, /* ...d.... */ 178 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, /* ...P.ARM */ 179 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 180 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, /* .local.. */ 181 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 182 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 183 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 184 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, /* ocal.... */ 185 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x14, 0x08, /* ....d... */ 186 0x70, 0x61, 0x70, 0x65, 0x72, 0x3d, 0x41, 0x34, /* paper=A4 */ 187 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, /* .version */ 188 0x3d, 0x30, 0x31, 0x05, 0x5f, 0x68, 0x74, 0x74, /* =01._htt */ 189 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 190 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 191 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x1e, 0x0b, /* ....d... */ 192 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 193 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 194 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 195 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, 0x41, 0x52, /* ocal..AR */ 196 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 197 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 198 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 199 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 200 0x00, 0x00, 0x78, 0x00, 0x25, 0x0b, 0x41, 0x52, /* ..x.%.AR */ 201 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 202 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 203 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 204 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 205 0x00, 0x40 /* .@ */ 206 }; 207 208 /* Frame (466 bytes) */ 209 static const unsigned char pkt5[466] = { 210 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 211 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 212 0x00, 0x00, 0x01, 0x9c, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 213 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 214 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 215 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 216 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 217 0x14, 0xe9, 0x01, 0x9c, 0x29, 0x22, 0x00, 0x00, /* ....)".. */ 218 0x84, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, /* ........ */ 219 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 220 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 221 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, 0x80, /* ocal.... */ 222 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, 0x0a, /* ....x... */ 223 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ..B.ARMM */ 224 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 225 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x1c, /* local... */ 226 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x10, /* .....x.. */ 227 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 228 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, /* .."..3DW */ 229 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 230 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 231 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 232 0x00, 0x00, 0x78, 0x00, 0x19, 0x0b, 0x41, 0x52, /* ..x...AR */ 233 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 234 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 235 0x00, 0x04, 0x40, 0x00, 0x00, 0x08, 0x0b, 0x41, /* ..@....A */ 236 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, /* RMMDNSTe */ 237 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, /* st._http */ 238 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 239 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, /* cal..!.. */ 240 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, /* ...d.... */ 241 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, /* ...P.ARM */ 242 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 243 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, /* .local.. */ 244 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 245 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 246 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 247 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, /* ocal.... */ 248 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x14, 0x08, /* ....d... */ 249 0x70, 0x61, 0x70, 0x65, 0x72, 0x3d, 0x41, 0x34, /* paper=A4 */ 250 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, /* .version */ 251 0x3d, 0x30, 0x31, 0x05, 0x5f, 0x68, 0x74, 0x74, /* =01._htt */ 252 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 253 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 254 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x1e, 0x0b, /* ....d... */ 255 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 256 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 257 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 258 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, 0x41, 0x52, /* ocal..AR */ 259 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 260 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 261 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 262 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 263 0x00, 0x00, 0x78, 0x00, 0x25, 0x0b, 0x41, 0x52, /* ..x.%.AR */ 264 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 265 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 266 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 267 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 268 0x00, 0x40 /* .@ */ 269 }; 270 271 /* Frame (466 bytes) */ 272 static const unsigned char pkt6[466] = { 273 0x33, 0x33, 0x00, 0x00, 0x00, 0xfb, 0x00, 0x11, /* 33...... */ 274 0x22, 0x33, 0x44, 0x57, 0x86, 0xdd, 0x60, 0x00, /* "3DW..`. */ 275 0x00, 0x00, 0x01, 0x9c, 0x11, 0xff, 0xfe, 0x80, /* ........ */ 276 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x11, /* ........ */ 277 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, 0xff, 0x02, /* "..3DW.. */ 278 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 279 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x14, 0xe9, /* ........ */ 280 0x14, 0xe9, 0x01, 0x9c, 0x29, 0x22, 0x00, 0x00, /* ....)".. */ 281 0x84, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, /* ........ */ 282 0x00, 0x00, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* ...ARMMD */ 283 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 284 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, 0x80, /* ocal.... */ 285 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, 0x0a, /* ....x... */ 286 0x00, 0x00, 0x42, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ..B.ARMM */ 287 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 288 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x1c, /* local... */ 289 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x10, /* .....x.. */ 290 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */ 291 0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x57, /* .."..3DW */ 292 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 293 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 294 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 295 0x00, 0x00, 0x78, 0x00, 0x19, 0x0b, 0x41, 0x52, /* ..x...AR */ 296 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 297 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 298 0x00, 0x04, 0x40, 0x00, 0x00, 0x08, 0x0b, 0x41, /* ..@....A */ 299 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, /* RMMDNSTe */ 300 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, /* st._http */ 301 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 302 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, /* cal..!.. */ 303 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, /* ...d.... */ 304 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, /* ...P.ARM */ 305 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 306 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, /* .local.. */ 307 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 308 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 309 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 310 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, /* ocal.... */ 311 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x14, 0x08, /* ....d... */ 312 0x70, 0x61, 0x70, 0x65, 0x72, 0x3d, 0x41, 0x34, /* paper=A4 */ 313 0x0a, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, /* .version */ 314 0x3d, 0x30, 0x31, 0x05, 0x5f, 0x68, 0x74, 0x74, /* =01._htt */ 315 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 316 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 317 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x1e, 0x0b, /* ....d... */ 318 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 319 0x65, 0x73, 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, /* est._htt */ 320 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 321 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, 0x41, 0x52, /* ocal..AR */ 322 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 323 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 324 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 325 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 326 0x00, 0x00, 0x78, 0x00, 0x25, 0x0b, 0x41, 0x52, /* ..x.%.AR */ 327 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 328 0x74, 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x04, /* t._http. */ 329 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 330 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 331 0x00, 0x40 /* .@ */ 332 }; 333 334 335 static MDNS_SERVICE mdns_service = {"ARMMDNSTest", "_http._tcp", NX_NULL, "paper=A4;version=01", 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 336 337 MDNS_TEST_SEQ mdns_basic_ipv6_announcement[] = { 338 {TITLE, "Basic IPv6 announcement", 23, 0}, 339 340 /* Add link local address. */ 341 {MDNS_LLA_ADD, NX_NULL, 0x00000011, 0x22334457}, 342 {WAIT, NX_NULL, 0, 5}, 343 344 /* Recreate mDNS. */ 345 {MDNS_RECREATE, "ARMMDNSTest", 0, 0}, 346 347 /* Add service. */ 348 {MDNS_SERVICE_ADD, (char*)&mdns_service, 0, 0}, 349 350 /* Check probing and announcement. */ 351 {MDNS_CHECK_DATA_V6, (char*)&pkt1[0], sizeof(pkt1), 1}, 352 {MDNS_CHECK_DATA_V6, (char*)&pkt2[0], sizeof(pkt2), 1}, 353 {MDNS_CHECK_DATA_V6, (char*)&pkt3[0], sizeof(pkt3), 1}, 354 {MDNS_CHECK_DATA_V6, (char*)&pkt4[0], sizeof(pkt4), 1}, 355 {MDNS_CHECK_DATA_V6, (char*)&pkt5[0], sizeof(pkt5), 1}, 356 {MDNS_CHECK_DATA_V6, (char*)&pkt6[0], sizeof(pkt6), 2}, 357 358 /* Delete link local address. */ 359 {MDNS_LLA_DELETE, NX_NULL, 0, 0}, 360 }; 361 362 int mdns_basic_ipv6_announcement_size = sizeof(mdns_basic_ipv6_announcement) / sizeof(MDNS_TEST_SEQ); 363 364 #endif /* __PRODUCT_NETXDUO__ */ 365