1 2 #include "nx_api.h" 3 4 #ifdef __PRODUCT_NETXDUO__ 5 6 #include "netx_mdns_test.h" 7 8 /* Frame (75 bytes) */ 9 static const unsigned char pkt1[75] = { 10 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0xec, 0x17, /* ..^..... */ 11 0x2f, 0xbd, 0xa4, 0xb1, 0x08, 0x00, 0x45, 0x00, /* /.....E. */ 12 0x00, 0x3d, 0x06, 0x3f, 0x00, 0x00, 0xff, 0x11, /* .=.?.... */ 13 0x0c, 0xc3, 0xc0, 0xa8, 0x07, 0x0a, 0xe0, 0x00, /* ........ */ 14 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x29, /* .......) */ 15 0xa9, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* .&...... */ 16 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x5f, /* ......._ */ 17 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 18 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 19 0x0c, 0x00, 0x01 /* ... */ 20 }; 21 22 /* Frame (1497 bytes) */ 23 static const unsigned char pkt2[1497] = { 24 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x11, /* ..^..... */ 25 0x22, 0x33, 0x44, 0x57, 0x08, 0x00, 0x45, 0x00, /* "3DW..E. */ 26 0x05, 0xcb, 0x00, 0x1d, 0x40, 0x00, 0xff, 0x11, /* ....@... */ 27 0x8a, 0xc7, 0x0a, 0x00, 0x00, 0x42, 0xe0, 0x00, /* .....B.. */ 28 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x05, 0xb7, /* ........ */ 29 0x44, 0x6c, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* Dl...... */ 30 0x00, 0x0e, 0x00, 0x00, 0x00, 0x0f, 0x04, 0x5f, /* ......._ */ 31 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 32 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 33 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* ......d. */ 34 0x17, 0x05, 0x74, 0x65, 0x73, 0x74, 0x31, 0x04, /* ..test1. */ 35 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 36 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 37 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 38 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 39 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, /* ........ */ 40 0x64, 0x00, 0x17, 0x05, 0x74, 0x65, 0x73, 0x74, /* d...test */ 41 0x32, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 2._ipp._ */ 42 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 43 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* l.._ipp. */ 44 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 45 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, /* al...... */ 46 0x00, 0x00, 0x64, 0x00, 0x17, 0x05, 0x74, 0x65, /* ..d...te */ 47 0x73, 0x74, 0x33, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st3._ipp */ 48 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 49 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, /* cal.._ip */ 50 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 51 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 52 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x17, 0x05, /* ....d... */ 53 0x74, 0x65, 0x73, 0x74, 0x34, 0x04, 0x5f, 0x69, /* test4._i */ 54 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 55 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, /* local.._ */ 56 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 57 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 58 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* ......d. */ 59 0x17, 0x05, 0x74, 0x65, 0x73, 0x74, 0x35, 0x04, /* ..test5. */ 60 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 61 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 62 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 63 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 64 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, /* ........ */ 65 0x64, 0x00, 0x17, 0x05, 0x74, 0x65, 0x73, 0x74, /* d...test */ 66 0x36, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 6._ipp._ */ 67 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 68 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* l.._ipp. */ 69 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 70 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, /* al...... */ 71 0x00, 0x00, 0x64, 0x00, 0x17, 0x05, 0x74, 0x65, /* ..d...te */ 72 0x73, 0x74, 0x37, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st7._ipp */ 73 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 74 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, /* cal.._ip */ 75 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 76 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 77 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x17, 0x05, /* ....d... */ 78 0x74, 0x65, 0x73, 0x74, 0x38, 0x04, 0x5f, 0x69, /* test8._i */ 79 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 80 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, /* local.._ */ 81 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 82 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 83 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* ......d. */ 84 0x17, 0x05, 0x74, 0x65, 0x73, 0x74, 0x39, 0x04, /* ..test9. */ 85 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 86 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 87 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 88 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 89 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, /* ........ */ 90 0x64, 0x00, 0x18, 0x06, 0x74, 0x65, 0x73, 0x74, /* d...test */ 91 0x31, 0x30, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* 10._ipp. */ 92 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 93 0x61, 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, 0x70, /* al.._ipp */ 94 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 95 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, /* cal..... */ 96 0x00, 0x00, 0x00, 0x64, 0x00, 0x18, 0x06, 0x74, /* ...d...t */ 97 0x65, 0x73, 0x74, 0x31, 0x31, 0x04, 0x5f, 0x69, /* est11._i */ 98 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 99 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, /* local.._ */ 100 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 101 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 102 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* ......d. */ 103 0x18, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x32, /* ..test12 */ 104 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 105 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 106 0x00, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* .._ipp._ */ 107 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 108 0x6c, 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, /* l....... */ 109 0x00, 0x64, 0x00, 0x18, 0x06, 0x74, 0x65, 0x73, /* .d...tes */ 110 0x74, 0x31, 0x33, 0x04, 0x5f, 0x69, 0x70, 0x70, /* t13._ipp */ 111 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 112 0x63, 0x61, 0x6c, 0x00, 0x04, 0x5f, 0x69, 0x70, /* cal.._ip */ 113 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 114 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x0c, 0x00, /* ocal.... */ 115 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x18, 0x06, /* ....d... */ 116 0x74, 0x65, 0x73, 0x74, 0x31, 0x34, 0x04, 0x5f, /* test14._ */ 117 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 118 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x0b, /* .local.. */ 119 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 120 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 121 0x6c, 0x00, 0x00, 0x01, 0x80, 0x01, 0x00, 0x00, /* l....... */ 122 0x00, 0x78, 0x00, 0x04, 0x0a, 0x00, 0x00, 0x42, /* .x.....B */ 123 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 124 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 125 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 126 0x00, 0x00, 0x78, 0x00, 0x16, 0x0b, 0x41, 0x52, /* ..x...AR */ 127 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 128 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 129 0x00, 0x01, 0x40, 0x05, 0x74, 0x65, 0x73, 0x74, /* ..@.test */ 130 0x31, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 1._ipp._ */ 131 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 132 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, /* l..!.... */ 133 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, /* .d...... */ 134 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* .P.ARMMD */ 135 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 136 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x05, 0x74, 0x65, /* ocal..te */ 137 0x73, 0x74, 0x31, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st1._ipp */ 138 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 139 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, 0x01, /* cal..... */ 140 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, 0x05, /* ...d.... */ 141 0x74, 0x65, 0x73, 0x74, 0x31, 0x04, 0x5f, 0x69, /* test1._i */ 142 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 143 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x2f, /* local../ */ 144 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x1e, /* .....x.. */ 145 0x05, 0x74, 0x65, 0x73, 0x74, 0x31, 0x04, 0x5f, /* .test1._ */ 146 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 147 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 148 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, 0x05, 0x74, /* .....@.t */ 149 0x65, 0x73, 0x74, 0x32, 0x04, 0x5f, 0x69, 0x70, /* est2._ip */ 150 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 151 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, /* ocal..!. */ 152 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, /* ....d... */ 153 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, /* ....P.AR */ 154 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 155 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 156 0x05, 0x74, 0x65, 0x73, 0x74, 0x32, 0x04, 0x5f, /* .test2._ */ 157 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 158 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 159 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* ......d. */ 160 0x01, 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, 0x32, /* ...test2 */ 161 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 162 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 163 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, /* ../..... */ 164 0x78, 0x00, 0x1e, 0x05, 0x74, 0x65, 0x73, 0x74, /* x...test */ 165 0x32, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 2._ipp._ */ 166 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 167 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, /* l....... */ 168 0x40, 0x05, 0x74, 0x65, 0x73, 0x74, 0x33, 0x04, /* @.test3. */ 169 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 170 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 171 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .!.....d */ 172 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, /* .......P */ 173 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 174 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 175 0x61, 0x6c, 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, /* al..test */ 176 0x33, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 3._ipp._ */ 177 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 178 0x6c, 0x00, 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, /* l....... */ 179 0x00, 0x64, 0x00, 0x01, 0x00, 0x05, 0x74, 0x65, /* .d....te */ 180 0x73, 0x74, 0x33, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st3._ipp */ 181 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 182 0x63, 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, /* cal../.. */ 183 0x00, 0x00, 0x00, 0x78, 0x00, 0x1e, 0x05, 0x74, /* ...x...t */ 184 0x65, 0x73, 0x74, 0x33, 0x04, 0x5f, 0x69, 0x70, /* est3._ip */ 185 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 186 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, /* ocal.... */ 187 0x00, 0x80, 0x00, 0x40, 0x05, 0x74, 0x65, 0x73, /* ...@.tes */ 188 0x74, 0x34, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* t4._ipp. */ 189 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 190 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, /* al..!... */ 191 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, /* ..d..... */ 192 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ..P.ARMM */ 193 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 194 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x05, 0x74, /* local..t */ 195 0x65, 0x73, 0x74, 0x34, 0x04, 0x5f, 0x69, 0x70, /* est4._ip */ 196 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 197 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, /* ocal.... */ 198 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, /* ....d... */ 199 0x05, 0x74, 0x65, 0x73, 0x74, 0x34, 0x04, 0x5f, /* .test4._ */ 200 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 201 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 202 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* /.....x. */ 203 0x1e, 0x05, 0x74, 0x65, 0x73, 0x74, 0x34, 0x04, /* ..test4. */ 204 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 205 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 206 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, 0x05, /* ......@. */ 207 0x74, 0x65, 0x73, 0x74, 0x35, 0x04, 0x5f, 0x69, /* test5._i */ 208 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 209 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, /* local... */ 210 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, /* .....d.. */ 211 0x00 /* . */ 212 }; 213 214 /* Frame (1490 bytes) */ 215 static const unsigned char pkt3[1490] = { 216 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x11, /* ..^..... */ 217 0x22, 0x33, 0x44, 0x57, 0x08, 0x00, 0x45, 0x00, /* "3DW..E. */ 218 0x05, 0xc4, 0x00, 0x1e, 0x40, 0x00, 0xff, 0x11, /* ....@... */ 219 0x8a, 0xcd, 0x0a, 0x00, 0x00, 0x42, 0xe0, 0x00, /* .....B.. */ 220 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x05, 0xb0, /* ........ */ 221 0x12, 0x0c, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* ........ */ 222 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x05, 0x74, /* .......t */ 223 0x65, 0x73, 0x74, 0x35, 0x04, 0x5f, 0x69, 0x70, /* est5._ip */ 224 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 225 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, /* ocal..!. */ 226 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, /* ....d... */ 227 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, /* ....P.AR */ 228 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, /* MMDNSTes */ 229 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* t.local. */ 230 0x05, 0x74, 0x65, 0x73, 0x74, 0x35, 0x04, 0x5f, /* .test5._ */ 231 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 232 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 233 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* /.....x. */ 234 0x1e, 0x05, 0x74, 0x65, 0x73, 0x74, 0x35, 0x04, /* ..test5. */ 235 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 236 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 237 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, 0x05, /* ......@. */ 238 0x74, 0x65, 0x73, 0x74, 0x36, 0x04, 0x5f, 0x69, /* test6._i */ 239 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 240 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, /* local..! */ 241 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, /* .....d.. */ 242 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, /* .....P.A */ 243 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, /* RMMDNSTe */ 244 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* st.local */ 245 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, 0x36, 0x04, /* ..test6. */ 246 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 247 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 248 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .......d */ 249 0x00, 0x01, 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, /* ....test */ 250 0x36, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 6._ipp._ */ 251 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 252 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, /* l../.... */ 253 0x00, 0x78, 0x00, 0x1e, 0x05, 0x74, 0x65, 0x73, /* .x...tes */ 254 0x74, 0x36, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* t6._ipp. */ 255 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 256 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 257 0x00, 0x40, 0x05, 0x74, 0x65, 0x73, 0x74, 0x37, /* .@.test7 */ 258 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 259 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 260 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, /* ..!..... */ 261 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, /* d....... */ 262 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* P.ARMMDN */ 263 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, /* STest.lo */ 264 0x63, 0x61, 0x6c, 0x00, 0x05, 0x74, 0x65, 0x73, /* cal..tes */ 265 0x74, 0x37, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* t7._ipp. */ 266 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 267 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, 0x01, 0x00, /* al...... */ 268 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, 0x05, 0x74, /* ..d....t */ 269 0x65, 0x73, 0x74, 0x37, 0x04, 0x5f, 0x69, 0x70, /* est7._ip */ 270 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 271 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, /* ocal../. */ 272 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x1e, 0x05, /* ....x... */ 273 0x74, 0x65, 0x73, 0x74, 0x37, 0x04, 0x5f, 0x69, /* test7._i */ 274 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 275 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x05, /* local... */ 276 0x00, 0x00, 0x80, 0x00, 0x40, 0x05, 0x74, 0x65, /* ....@.te */ 277 0x73, 0x74, 0x38, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st8._ipp */ 278 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 279 0x63, 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, /* cal..!.. */ 280 0x00, 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, /* ...d.... */ 281 0x00, 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, /* ...P.ARM */ 282 0x4d, 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, /* MDNSTest */ 283 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x05, /* .local.. */ 284 0x74, 0x65, 0x73, 0x74, 0x38, 0x04, 0x5f, 0x69, /* test8._i */ 285 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 286 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, /* local... */ 287 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, /* .....d.. */ 288 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, 0x38, 0x04, /* ..test8. */ 289 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 290 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 291 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, /* ./.....x */ 292 0x00, 0x1e, 0x05, 0x74, 0x65, 0x73, 0x74, 0x38, /* ...test8 */ 293 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 294 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 295 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, /* .......@ */ 296 0x05, 0x74, 0x65, 0x73, 0x74, 0x39, 0x04, 0x5f, /* .test9._ */ 297 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 298 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 299 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* !.....d. */ 300 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, /* ......P. */ 301 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 302 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 303 0x6c, 0x00, 0x05, 0x74, 0x65, 0x73, 0x74, 0x39, /* l..test9 */ 304 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 305 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 306 0x00, 0x00, 0x10, 0x80, 0x01, 0x00, 0x00, 0x00, /* ........ */ 307 0x64, 0x00, 0x01, 0x00, 0x05, 0x74, 0x65, 0x73, /* d....tes */ 308 0x74, 0x39, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* t9._ipp. */ 309 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 310 0x61, 0x6c, 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, /* al../... */ 311 0x00, 0x00, 0x78, 0x00, 0x1e, 0x05, 0x74, 0x65, /* ..x...te */ 312 0x73, 0x74, 0x39, 0x04, 0x5f, 0x69, 0x70, 0x70, /* st9._ipp */ 313 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 314 0x63, 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, /* cal..... */ 315 0x80, 0x00, 0x40, 0x06, 0x74, 0x65, 0x73, 0x74, /* ..@.test */ 316 0x31, 0x30, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* 10._ipp. */ 317 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 318 0x61, 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, /* al..!... */ 319 0x00, 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, /* ..d..... */ 320 0x00, 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, /* ..P.ARMM */ 321 0x44, 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, /* DNSTest. */ 322 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x06, 0x74, /* local..t */ 323 0x65, 0x73, 0x74, 0x31, 0x30, 0x04, 0x5f, 0x69, /* est10._i */ 324 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 325 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, /* local... */ 326 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, /* .....d.. */ 327 0x00, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x30, /* ..test10 */ 328 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 329 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 330 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, /* ../..... */ 331 0x78, 0x00, 0x1f, 0x06, 0x74, 0x65, 0x73, 0x74, /* x...test */ 332 0x31, 0x30, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* 10._ipp. */ 333 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 334 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 335 0x00, 0x40, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, /* .@.test1 */ 336 0x31, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 1._ipp._ */ 337 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 338 0x6c, 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, /* l..!.... */ 339 0x00, 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, /* .d...... */ 340 0x00, 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, /* .P.ARMMD */ 341 0x4e, 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, /* NSTest.l */ 342 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x06, 0x74, 0x65, /* ocal..te */ 343 0x73, 0x74, 0x31, 0x31, 0x04, 0x5f, 0x69, 0x70, /* st11._ip */ 344 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, /* p._tcp.l */ 345 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, /* ocal.... */ 346 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, /* ....d... */ 347 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x31, 0x04, /* .test11. */ 348 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 349 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 350 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, /* ./.....x */ 351 0x00, 0x1f, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, /* ...test1 */ 352 0x31, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, /* 1._ipp._ */ 353 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* tcp.loca */ 354 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, /* l....... */ 355 0x40, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x32, /* @.test12 */ 356 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 357 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 358 0x00, 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, /* ..!..... */ 359 0x64, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, /* d....... */ 360 0x50, 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, /* P.ARMMDN */ 361 0x53, 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, /* STest.lo */ 362 0x63, 0x61, 0x6c, 0x00, 0x06, 0x74, 0x65, 0x73, /* cal..tes */ 363 0x74, 0x31, 0x32, 0x04, 0x5f, 0x69, 0x70, 0x70, /* t12._ipp */ 364 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, /* ._tcp.lo */ 365 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, 0x01, /* cal..... */ 366 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, 0x06, /* ...d.... */ 367 0x74, 0x65, 0x73, 0x74, 0x31, 0x32, 0x04, 0x5f, /* test12._ */ 368 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 369 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 370 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, /* /.....x. */ 371 0x1f, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x32, /* ..test12 */ 372 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 373 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 374 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, /* .......@ */ 375 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x33, 0x04, /* .test13. */ 376 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 377 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 378 0x00, 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, /* .!.....d */ 379 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, /* .......P */ 380 0x0b, 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, /* .ARMMDNS */ 381 0x54, 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, /* Test.loc */ 382 0x61, 0x6c, 0x00, 0x06, 0x74, 0x65, 0x73, 0x74, /* al..test */ 383 0x31, 0x33, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* 13._ipp. */ 384 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 385 0x61, 0x6c, 0x00, 0x00, 0x10, 0x80, 0x01, 0x00, /* al...... */ 386 0x00, 0x00, 0x64, 0x00, 0x01, 0x00, 0x06, 0x74, /* ..d....t */ 387 0x65, 0x73, 0x74, 0x31, 0x33, 0x04, 0x5f, 0x69, /* est13._i */ 388 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 389 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x2f, /* local../ */ 390 0x80, 0x01, 0x00, 0x00, 0x00, 0x78, 0x00, 0x1f, /* .....x.. */ 391 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x33, 0x04, /* .test13. */ 392 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, /* _ipp._tc */ 393 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, /* p.local. */ 394 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x40, 0x06, /* ......@. */ 395 0x74, 0x65, 0x73, 0x74, 0x31, 0x34, 0x04, 0x5f, /* test14._ */ 396 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, /* ipp._tcp */ 397 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, /* .local.. */ 398 0x21, 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, /* !.....d. */ 399 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, /* ......P. */ 400 0x41, 0x52, 0x4d, 0x4d, 0x44, 0x4e, 0x53, 0x54, /* ARMMDNST */ 401 0x65, 0x73, 0x74, 0x05, 0x6c, 0x6f, 0x63, 0x61, /* est.loca */ 402 0x6c, 0x00 /* l. */ 403 }; 404 405 /* Frame (154 bytes) */ 406 static const unsigned char pkt4[154] = { 407 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x11, /* ..^..... */ 408 0x22, 0x33, 0x44, 0x57, 0x08, 0x00, 0x45, 0x00, /* "3DW..E. */ 409 0x00, 0x8c, 0x00, 0x1f, 0x40, 0x00, 0xff, 0x11, /* ....@... */ 410 0x90, 0x04, 0x0a, 0x00, 0x00, 0x42, 0xe0, 0x00, /* .....B.. */ 411 0x00, 0xfb, 0x14, 0xe9, 0x14, 0xe9, 0x00, 0x78, /* .......x */ 412 0xef, 0x93, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, /* ........ */ 413 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x74, /* .......t */ 414 0x65, 0x73, 0x74, 0x31, 0x34, 0x04, 0x5f, 0x69, /* est14._i */ 415 0x70, 0x70, 0x04, 0x5f, 0x74, 0x63, 0x70, 0x05, /* pp._tcp. */ 416 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x10, /* local... */ 417 0x80, 0x01, 0x00, 0x00, 0x00, 0x64, 0x00, 0x01, /* .....d.. */ 418 0x00, 0x06, 0x74, 0x65, 0x73, 0x74, 0x31, 0x34, /* ..test14 */ 419 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, 0x5f, 0x74, /* ._ipp._t */ 420 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, /* cp.local */ 421 0x00, 0x00, 0x2f, 0x80, 0x01, 0x00, 0x00, 0x00, /* ../..... */ 422 0x78, 0x00, 0x1f, 0x06, 0x74, 0x65, 0x73, 0x74, /* x...test */ 423 0x31, 0x34, 0x04, 0x5f, 0x69, 0x70, 0x70, 0x04, /* 14._ipp. */ 424 0x5f, 0x74, 0x63, 0x70, 0x05, 0x6c, 0x6f, 0x63, /* _tcp.loc */ 425 0x61, 0x6c, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, /* al...... */ 426 0x00, 0x40 /* .@ */ 427 }; 428 429 430 static MDNS_SERVICE mdns_service1 = {"test1", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 431 static MDNS_SERVICE mdns_service2 = {"test2", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 432 static MDNS_SERVICE mdns_service3 = {"test3", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 433 static MDNS_SERVICE mdns_service4 = {"test4", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 434 static MDNS_SERVICE mdns_service5 = {"test5", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 435 static MDNS_SERVICE mdns_service6 = {"test6", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 436 static MDNS_SERVICE mdns_service7 = {"test7", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 437 static MDNS_SERVICE mdns_service8 = {"test8", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 438 static MDNS_SERVICE mdns_service9 = {"test9", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 439 static MDNS_SERVICE mdns_service10 = {"test10", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 440 static MDNS_SERVICE mdns_service11 = {"test11", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 441 static MDNS_SERVICE mdns_service12 = {"test12", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 442 static MDNS_SERVICE mdns_service13 = {"test13", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 443 static MDNS_SERVICE mdns_service14 = {"test14", "_ipp._tcp", NX_NULL, NX_NULL, 100, 0, 0, 80, NX_MDNS_RR_SET_UNIQUE, 0}; 444 445 MDNS_TEST_SEQ mdns_response_in_multiple_packets[] = { 446 {TITLE, "Response in multiple packets", 28, 0}, 447 448 /* Add a service. */ 449 {MDNS_SERVICE_ADD, (char*)&mdns_service1, 0, 0}, 450 {MDNS_SERVICE_ADD, (char*)&mdns_service2, 0, 0}, 451 {MDNS_SERVICE_ADD, (char*)&mdns_service3, 0, 0}, 452 {MDNS_SERVICE_ADD, (char*)&mdns_service4, 0, 0}, 453 {MDNS_SERVICE_ADD, (char*)&mdns_service5, 0, 0}, 454 {MDNS_SERVICE_ADD, (char*)&mdns_service6, 0, 0}, 455 {MDNS_SERVICE_ADD, (char*)&mdns_service7, 0, 0}, 456 {MDNS_SERVICE_ADD, (char*)&mdns_service8, 0, 0}, 457 {MDNS_SERVICE_ADD, (char*)&mdns_service9, 0, 0}, 458 {MDNS_SERVICE_ADD, (char*)&mdns_service10, 0, 0}, 459 {MDNS_SERVICE_ADD, (char*)&mdns_service11, 0, 0}, 460 {MDNS_SERVICE_ADD, (char*)&mdns_service12, 0, 0}, 461 {MDNS_SERVICE_ADD, (char*)&mdns_service13, 0, 0}, 462 {MDNS_SERVICE_ADD, (char*)&mdns_service14, 0, 0}, 463 464 {WAIT, NX_NULL, 0, 5}, 465 {DUMP, NX_NULL, 0, 0}, 466 467 /* Inject a query packet. */ 468 {INJECT, (char*)&pkt1[0], sizeof(pkt1), 1}, 469 470 /* Wait for the response in multiple packets. */ 471 {MDNS_CHECK_DATA_V4, (char*)&pkt2[0], sizeof(pkt2), 1}, 472 {MDNS_CHECK_DATA_V4, (char*)&pkt3[0], sizeof(pkt3), 1}, 473 {MDNS_CHECK_DATA_V4, (char*)&pkt4[0], sizeof(pkt4), 1}, 474 }; 475 476 int mdns_response_in_multiple_packets_size = sizeof(mdns_response_in_multiple_packets) / sizeof(MDNS_TEST_SEQ); 477 478 #endif /* __PRODUCT_NETXDUO__ */ 479 480