1 2 #include "nx_api.h" 3 4 #ifdef __PRODUCT_NETXDUO__ 5 6 #include "netx_mdns_test.h" 7 8 /* Frame (88 bytes) */ 9 static const unsigned char pkt1[88] = { 10 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 11 0x73, 0x29, 0x5f, 0x66, 0x08, 0x00, 0x45, 0x00, /* s)_f..E. */ 12 0x00, 0x4a, 0x58, 0x5c, 0x00, 0x00, 0xff, 0x11, /* .JX\.... */ 13 0xc1, 0x3e, 0xc0, 0xa8, 0x00, 0x64, 0xe0, 0x00, /* .>...d.. */ 14 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x36, /* .......6 */ 15 0xa2, 0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* .O...... */ 16 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 17 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 18 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 19 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 20 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01 /* cal..... */ 21 }; 22 23 /* Frame (88 bytes) */ 24 static const unsigned char pkt2[88] = { 25 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 26 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 27 0x00, 0x4a, 0x02, 0xe1, 0x00, 0x00, 0xff, 0x11, /* .J...... */ 28 0xcd, 0xc4, 0x0a, 0x00, 0x00, 0x02, 0xe0, 0x00, /* ........ */ 29 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x36, /* .......6 */ 30 0xb4, 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* ........ */ 31 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 32 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 33 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 34 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 35 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01 /* cal..... */ 36 }; 37 38 /* Frame (106 bytes) */ 39 static const unsigned char pkt3[106] = { 40 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 41 0x73, 0x33, 0xc1, 0xbd, 0x08, 0x00, 0x45, 0x00, /* s3....E. */ 42 0x00, 0x5c, 0x1e, 0xf3, 0x00, 0x00, 0xff, 0x11, /* .\...... */ 43 0xfa, 0x92, 0xc0, 0xa8, 0x00, 0x67, 0xe0, 0x00, /* .....g.. */ 44 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x48, /* .......H */ 45 0x0a, 0xee, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* ........ */ 46 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 47 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 48 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 49 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 50 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 51 0x00, 0x00, 0x11, 0x94, 0x00, 0x0c, 0x04, 0x5f, /* ......._ */ 52 0x73, 0x6d, 0x62, 0x04, 0x5f, 0x74, 0x63, 0x70, /* smb._tcp */ 53 0xc0, 0x23 /* .# */ 54 }; 55 56 /* Frame (114 bytes) */ 57 static const unsigned char pkt4[114] = { 58 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xe8, 0x39, /* ..^....9 */ 59 0x35, 0x44, 0xfe, 0xd4, 0x08, 0x00, 0x45, 0x00, /* 5D....E. */ 60 0x00, 0x64, 0x00, 0x00, 0x40, 0x00, 0xff, 0x11, /* .d..@... */ 61 0xd9, 0xe2, 0xc0, 0xa8, 0x00, 0x02, 0xe0, 0x00, /* ........ */ 62 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x50, /* .......P */ 63 0x42, 0x75, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* Bu...... */ 64 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 65 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 66 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 67 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 68 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 69 0x00, 0x00, 0x11, 0x94, 0x00, 0x14, 0x0c, 0x5f, /* ......._ */ 70 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, /* workstat */ 71 0x69, 0x6f, 0x6e, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ion._tcp */ 72 0xc0, 0x23 /* .# */ 73 }; 74 75 /* Frame (160 bytes) */ 76 static const unsigned char pkt5[160] = { 77 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x1e, /* ..^..... */ 78 0x8f, 0xb1, 0x7a, 0xd4, 0x08, 0x00, 0x45, 0x00, /* ..z...E. */ 79 0x00, 0x92, 0x17, 0x39, 0x00, 0x00, 0xff, 0x11, /* ...9.... */ 80 0x02, 0x7a, 0xc0, 0xa8, 0x00, 0x04, 0xe0, 0x00, /* .z...... */ 81 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x7e, /* .......~ */ 82 0xbc, 0x15, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* ........ */ 83 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 84 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 85 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 86 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 87 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 88 0x00, 0x00, 0x11, 0x94, 0x00, 0x17, 0x0f, 0x5f, /* ......._ */ 89 0x70, 0x64, 0x6c, 0x2d, 0x64, 0x61, 0x74, 0x61, /* pdl-data */ 90 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x04, 0x5f, /* stream._ */ 91 0x74, 0x63, 0x70, 0xc0, 0x23, 0xc0, 0x0c, 0x00, /* tcp.#... */ 92 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, /* ........ */ 93 0x0b, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, /* .._print */ 94 0x65, 0x72, 0xc0, 0x44, 0xc0, 0x0c, 0x00, 0x0c, /* er.D.... */ 95 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, 0x08, /* ........ */ 96 0x05, 0x5f, 0x68, 0x74, 0x74, 0x70, 0xc0, 0x44 /* ._http.D */ 97 }; 98 99 /* Frame (219 bytes) */ 100 static const unsigned char pkt6[219] = { 101 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x0c, /* ..^..... */ 102 0x29, 0x01, 0xd4, 0x8d, 0x08, 0x00, 0x45, 0x00, /* ).....E. */ 103 0x00, 0xcd, 0x00, 0x00, 0x40, 0x00, 0xff, 0x11, /* ....@... */ 104 0x90, 0x23, 0x0a, 0x00, 0x00, 0x01, 0xe0, 0x00, /* .#...... */ 105 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0xb9, /* ........ */ 106 0x69, 0x6d, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* im...... */ 107 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 108 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 109 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 110 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 111 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 112 0x00, 0x00, 0x11, 0x94, 0x00, 0x14, 0x0c, 0x5f, /* ......._ */ 113 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, /* workstat */ 114 0x69, 0x6f, 0x6e, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ion._tcp */ 115 0xc0, 0x23, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, /* .#...... */ 116 0x00, 0x00, 0x11, 0x94, 0x00, 0x09, 0x06, 0x5f, /* ......._ */ 117 0x74, 0x65, 0x73, 0x74, 0x65, 0xc0, 0x41, 0xc0, /* teste.A. */ 118 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, /* ........ */ 119 0x94, 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, /* ...._tes */ 120 0x74, 0x64, 0xc0, 0x41, 0xc0, 0x0c, 0x00, 0x0c, /* td.A.... */ 121 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, 0x09, /* ........ */ 122 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x63, 0xc0, /* ._testc. */ 123 0x41, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, /* A....... */ 124 0x00, 0x11, 0x94, 0x00, 0x09, 0x06, 0x5f, 0x74, /* ......_t */ 125 0x65, 0x73, 0x74, 0x62, 0xc0, 0x41, 0xc0, 0x0c, /* estb.A.. */ 126 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, /* ........ */ 127 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, /* ..._test */ 128 0x61, 0xc0, 0x41 /* a.A */ 129 }; 130 131 /* Frame (212 bytes) */ 132 static const unsigned char pkt7[212] = { 133 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 134 0x73, 0x29, 0x5f, 0x66, 0x08, 0x00, 0x45, 0x00, /* s)_f..E. */ 135 0x00, 0xc6, 0x58, 0x8e, 0x00, 0x00, 0xff, 0x11, /* ..X..... */ 136 0xc0, 0x90, 0xc0, 0xa8, 0x00, 0x64, 0xe0, 0x00, /* .....d.. */ 137 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0xb2, /* ........ */ 138 0xa2, 0xcb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* ........ */ 139 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 140 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 141 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 142 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 143 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 144 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 145 0x11, 0x93, 0x00, 0x0c, 0x04, 0x5f, 0x73, 0x6d, /* ....._sm */ 146 0x62, 0x04, 0x5f, 0x74, 0x63, 0x70, 0xc0, 0x23, /* b._tcp.# */ 147 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 148 0x11, 0x94, 0x00, 0x0f, 0x0c, 0x5f, 0x77, 0x6f, /* ....._wo */ 149 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, /* rkstatio */ 150 0x6e, 0xc0, 0x3f, 0xc0, 0x0c, 0x00, 0x0c, 0x00, /* n.?..... */ 151 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, 0x12, 0x0f, /* ........ */ 152 0x5f, 0x70, 0x64, 0x6c, 0x2d, 0x64, 0x61, 0x74, /* _pdl-dat */ 153 0x61, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0xc0, /* astream. */ 154 0x3f, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, /* ?....... */ 155 0x00, 0x11, 0x94, 0x00, 0x0b, 0x08, 0x5f, 0x70, /* ......_p */ 156 0x72, 0x69, 0x6e, 0x74, 0x65, 0x72, 0xc0, 0x3f, /* rinter.? */ 157 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 158 0x11, 0x94, 0x00, 0x08, 0x05, 0x5f, 0x68, 0x74, /* ....._ht */ 159 0x74, 0x70, 0xc0, 0x3f /* tp.? */ 160 }; 161 162 /* Frame (225 bytes) */ 163 static const unsigned char pkt8[225] = { 164 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 165 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 166 0x00, 0xd3, 0x02, 0xe2, 0x00, 0x00, 0xff, 0x11, /* ........ */ 167 0xcd, 0x3a, 0x0a, 0x00, 0x00, 0x02, 0xe0, 0x00, /* .:...... */ 168 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0xbf, /* ........ */ 169 0x1b, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* .:...... */ 170 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 171 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 172 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 173 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 174 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 175 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 176 0x11, 0x94, 0x00, 0x14, 0x0c, 0x5f, 0x77, 0x6f, /* ....._wo */ 177 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, /* rkstatio */ 178 0x6e, 0x04, 0x5f, 0x74, 0x63, 0x70, 0xc0, 0x23, /* n._tcp.# */ 179 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 180 0x11, 0x94, 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, /* ....._te */ 181 0x73, 0x74, 0x65, 0xc0, 0x47, 0xc0, 0x0c, 0x00, /* ste.G... */ 182 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, /* ........ */ 183 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x64, /* .._testd */ 184 0xc0, 0x47, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, /* .G...... */ 185 0x00, 0x00, 0x11, 0x94, 0x00, 0x09, 0x06, 0x5f, /* ......._ */ 186 0x74, 0x65, 0x73, 0x74, 0x63, 0xc0, 0x47, 0xc0, /* testc.G. */ 187 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, /* ........ */ 188 0x94, 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, /* ...._tes */ 189 0x74, 0x62, 0xc0, 0x47, 0xc0, 0x0c, 0x00, 0x0c, /* tb.G.... */ 190 0x00, 0x01, 0x00, 0x00, 0x11, 0x94, 0x00, 0x09, /* ........ */ 191 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x61, 0xc0, /* ._testa. */ 192 0x47 /* G */ 193 }; 194 195 /* Frame (212 bytes) */ 196 static const unsigned char pkt9[212] = { 197 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 198 0x73, 0x29, 0x5f, 0x66, 0x08, 0x00, 0x45, 0x00, /* s)_f..E. */ 199 0x00, 0xc6, 0x58, 0xcf, 0x00, 0x00, 0xff, 0x11, /* ..X..... */ 200 0xc0, 0x4f, 0xc0, 0xa8, 0x00, 0x64, 0xe0, 0x00, /* .O...d.. */ 201 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0xb2, /* ........ */ 202 0xa2, 0xcb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* ........ */ 203 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 204 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 205 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 206 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 207 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 208 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 209 0x11, 0x90, 0x00, 0x0c, 0x04, 0x5f, 0x73, 0x6d, /* ....._sm */ 210 0x62, 0x04, 0x5f, 0x74, 0x63, 0x70, 0xc0, 0x23, /* b._tcp.# */ 211 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 212 0x11, 0x91, 0x00, 0x0f, 0x0c, 0x5f, 0x77, 0x6f, /* ....._wo */ 213 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, /* rkstatio */ 214 0x6e, 0xc0, 0x3f, 0xc0, 0x0c, 0x00, 0x0c, 0x00, /* n.?..... */ 215 0x01, 0x00, 0x00, 0x11, 0x91, 0x00, 0x12, 0x0f, /* ........ */ 216 0x5f, 0x70, 0x64, 0x6c, 0x2d, 0x64, 0x61, 0x74, /* _pdl-dat */ 217 0x61, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0xc0, /* astream. */ 218 0x3f, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, /* ?....... */ 219 0x00, 0x11, 0x91, 0x00, 0x0b, 0x08, 0x5f, 0x70, /* ......_p */ 220 0x72, 0x69, 0x6e, 0x74, 0x65, 0x72, 0xc0, 0x3f, /* rinter.? */ 221 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 222 0x11, 0x91, 0x00, 0x08, 0x05, 0x5f, 0x68, 0x74, /* ....._ht */ 223 0x74, 0x70, 0xc0, 0x3f /* tp.? */ 224 }; 225 226 /* Frame (225 bytes) */ 227 static const unsigned char pkt10[225] = { 228 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 229 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 230 0x00, 0xd3, 0x02, 0xe3, 0x00, 0x00, 0xff, 0x11, /* ........ */ 231 0xcd, 0x39, 0x0a, 0x00, 0x00, 0x02, 0xe0, 0x00, /* .9...... */ 232 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0xbf, /* ........ */ 233 0x21, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* !F...... */ 234 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x09, 0x5f, /* ......._ */ 235 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, /* services */ 236 0x07, 0x5f, 0x64, 0x6e, 0x73, 0x2d, 0x73, 0x64, /* ._dns-sd */ 237 0x04, 0x5f, 0x75, 0x64, 0x70, 0x05, 0x6c, 0x6f, /* ._udp.lo */ 238 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 239 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 240 0x11, 0x91, 0x00, 0x14, 0x0c, 0x5f, 0x77, 0x6f, /* ....._wo */ 241 0x72, 0x6b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, /* rkstatio */ 242 0x6e, 0x04, 0x5f, 0x74, 0x63, 0x70, 0xc0, 0x23, /* n._tcp.# */ 243 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* ........ */ 244 0x11, 0x91, 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, /* ....._te */ 245 0x73, 0x74, 0x65, 0xc0, 0x47, 0xc0, 0x0c, 0x00, /* ste.G... */ 246 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, 0x91, 0x00, /* ........ */ 247 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x64, /* .._testd */ 248 0xc0, 0x47, 0xc0, 0x0c, 0x00, 0x0c, 0x00, 0x01, /* .G...... */ 249 0x00, 0x00, 0x11, 0x91, 0x00, 0x09, 0x06, 0x5f, /* ......._ */ 250 0x74, 0x65, 0x73, 0x74, 0x63, 0xc0, 0x47, 0xc0, /* testc.G. */ 251 0x0c, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x11, /* ........ */ 252 0x91, 0x00, 0x09, 0x06, 0x5f, 0x74, 0x65, 0x73, /* ...._tes */ 253 0x74, 0x62, 0xc0, 0x47, 0xc0, 0x0c, 0x00, 0x0c, /* tb.G.... */ 254 0x00, 0x01, 0x00, 0x00, 0x11, 0x91, 0x00, 0x09, /* ........ */ 255 0x06, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x61, 0xc0, /* ._testa. */ 256 0x47 /* G */ 257 }; 258 259 /* Frame (360 bytes) */ 260 static const unsigned char pkt11[360] = { 261 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 262 0x73, 0x29, 0x5f, 0x66, 0x08, 0x00, 0x45, 0x00, /* s)_f..E. */ 263 0x01, 0x5a, 0x59, 0x32, 0x00, 0x00, 0xff, 0x11, /* .ZY2.... */ 264 0xbf, 0x58, 0xc0, 0xa8, 0x00, 0x64, 0xe0, 0x00, /* .X...d.. */ 265 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x01, 0x46, /* .......F */ 266 0xa3, 0x5f, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* ._...... */ 267 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x08, 0x43, /* .......C */ 268 0x61, 0x74, 0x72, 0x6f, 0x2d, 0x50, 0x43, 0x05, /* atro-PC. */ 269 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, /* local... */ 270 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, /* .....x.. */ 271 0xc0, 0xa8, 0x00, 0x64, 0x03, 0x31, 0x30, 0x30, /* ...d.100 */ 272 0x01, 0x30, 0x03, 0x31, 0x36, 0x38, 0x03, 0x31, /* .0.168.1 */ 273 0x39, 0x32, 0x07, 0x69, 0x6e, 0x2d, 0x61, 0x64, /* 92.in-ad */ 274 0x64, 0x72, 0x04, 0x61, 0x72, 0x70, 0x61, 0x00, /* dr.arpa. */ 275 0x00, 0x0c, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, /* .......x */ 276 0x00, 0x02, 0xc0, 0x0c, 0xc0, 0x0c, 0x00, 0x1c, /* ........ */ 277 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x10, /* .....x.. */ 278 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* @....... */ 279 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, /* ........ */ 280 0x01, 0x32, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .2.0.0.0 */ 281 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 282 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 283 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 284 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 285 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 286 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 287 0x01, 0x31, 0x01, 0x30, 0x01, 0x30, 0x01, 0x34, /* .1.0.0.4 */ 288 0x03, 0x69, 0x70, 0x36, 0xc0, 0x40, 0x00, 0x0c, /* .ip6.@.. */ 289 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x02, /* .....x.. */ 290 0xc0, 0x0c, 0xc0, 0x0c, 0x00, 0x1c, 0x80, 0x01, /* ........ */ 291 0x00, 0x00, 0x00, 0x78, 0x00, 0x10, 0xfe, 0x80, /* ...x.... */ 292 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9d, 0x70, /* .......p */ 293 0x49, 0x3f, 0x59, 0x89, 0x7e, 0xba, 0x01, 0x41, /* I?Y.~..A */ 294 0x01, 0x42, 0x01, 0x45, 0x01, 0x37, 0x01, 0x39, /* .B.E.7.9 */ 295 0x01, 0x38, 0x01, 0x39, 0x01, 0x35, 0x01, 0x46, /* .8.9.5.F */ 296 0x01, 0x33, 0x01, 0x39, 0x01, 0x34, 0x01, 0x30, /* .3.9.4.0 */ 297 0x01, 0x37, 0x01, 0x44, 0x01, 0x39, 0x01, 0x30, /* .7.D.9.0 */ 298 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 299 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 300 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, 0x01, 0x30, /* .0.0.0.0 */ 301 0x01, 0x38, 0x01, 0x45, 0x01, 0x46, 0xc0, 0xae, /* .8.E.F.. */ 302 0x00, 0x0c, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, /* .......x */ 303 0x00, 0x02, 0xc0, 0x0c, 0xc0, 0x0c, 0x00, 0x2f, /* ......./ */ 304 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x08, /* .....x.. */ 305 0xc0, 0x0c, 0x00, 0x04, 0x40, 0x00, 0x00, 0x08 /* ....@... */ 306 }; 307 308 /* Frame (136 bytes) */ 309 static const unsigned char pkt12[136] = { 310 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 311 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 312 0x00, 0x7a, 0x02, 0xe4, 0x00, 0x00, 0xff, 0x11, /* .z...... */ 313 0xcd, 0x91, 0x0a, 0x00, 0x00, 0x02, 0xe0, 0x00, /* ........ */ 314 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x66, /* .......f */ 315 0x82, 0x29, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* .)...... */ 316 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x08, 0x43, /* .......C */ 317 0x61, 0x74, 0x72, 0x6f, 0x2d, 0x50, 0x43, 0x05, /* atro-PC. */ 318 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x01, /* local... */ 319 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x04, /* .....x.. */ 320 0x0a, 0x00, 0x00, 0x02, 0x01, 0x32, 0x01, 0x30, /* .....2.0 */ 321 0x01, 0x30, 0x02, 0x31, 0x30, 0x07, 0x69, 0x6e, /* .0.10.in */ 322 0x2d, 0x61, 0x64, 0x64, 0x72, 0x04, 0x61, 0x72, /* -addr.ar */ 323 0x70, 0x61, 0x00, 0x00, 0x0c, 0x80, 0x01, 0x00, /* pa...... */ 324 0x00, 0x00, 0x78, 0x00, 0x02, 0xc0, 0x0c, 0xc0, /* ..x..... */ 325 0x0c, 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, /* ../..... */ 326 0x78, 0x00, 0x05, 0xc0, 0x0c, 0x00, 0x01, 0x40 /* x......@ */ 327 }; 328 329 /* Frame (83 bytes) */ 330 static const unsigned char pkt13[83] = { 331 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x18, 0x03, /* ..^..... */ 332 0x73, 0x29, 0x5f, 0x66, 0x08, 0x00, 0x45, 0x00, /* s)_f..E. */ 333 0x00, 0x45, 0x59, 0xc5, 0x00, 0x00, 0xff, 0x11, /* .EY..... */ 334 0xbf, 0xda, 0xc0, 0xa8, 0x00, 0x64, 0xe0, 0x00, /* .....d.. */ 335 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x31, /* .......1 */ 336 0xa2, 0x4a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* .J...... */ 337 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x5f, /* ......._ */ 338 0x73, 0x6c, 0x65, 0x65, 0x70, 0x2d, 0x70, 0x72, /* sleep-pr */ 339 0x6f, 0x78, 0x79, 0x04, 0x5f, 0x75, 0x64, 0x70, /* oxy._udp */ 340 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 341 0x0c, 0x00, 0x01 /* ... */ 342 }; 343 344 /* Frame (83 bytes) */ 345 static const unsigned char pkt14[83] = { 346 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 347 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 348 0x00, 0x45, 0x02, 0xe5, 0x00, 0x00, 0xff, 0x11, /* .E...... */ 349 0xcd, 0xc5, 0x0a, 0x00, 0x00, 0x02, 0xe0, 0x00, /* ........ */ 350 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x31, /* .......1 */ 351 0x95, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* .L...... */ 352 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x5f, /* ......._ */ 353 0x73, 0x6c, 0x65, 0x65, 0x70, 0x2d, 0x70, 0x72, /* sleep-pr */ 354 0x6f, 0x78, 0x79, 0x04, 0x5f, 0x75, 0x64, 0x70, /* oxy._udp */ 355 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 356 0x0c, 0x00, 0x01 /* ... */ 357 }; 358 359 static MDNS_SERVICE mdns_service = {"Simple Web Server", "_workstation._tcp", NX_NULL, "paper=A4;version=01", 4500, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 360 361 MDNS_TEST_SEQ mdns_dns_sd_response[] = { 362 {TITLE, "DNS-SD response", 15, 0}, 363 364 /* Add service. */ 365 {MDNS_SERVICE_ADD, (char*)&mdns_service, 0, 0}, 366 367 /* Wait 5 seconds. */ 368 {WAIT, NX_NULL, 0, 5}, 369 {DUMP, NX_NULL, 0, 0}, 370 371 /* Inject a query. */ 372 {INJECT, (char*)&pkt2[0], sizeof(pkt2), 0}, 373 374 /* Check response. */ 375 {MDNS_CHECK_DATA_V4, (char*)&pkt4[0], sizeof(pkt4), 1}, 376 }; 377 378 int mdns_dns_sd_response_size = sizeof(mdns_dns_sd_response) / sizeof(MDNS_TEST_SEQ); 379 380 #endif /* __PRODUCT_NETXDUO__ */ 381 382