test-sdp.c 99 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2012 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #ifdef HAVE_CONFIG_H
  11. #include <config.h>
  12. #endif
  13. #include <unistd.h>
  14. #include <stdlib.h>
  15. #include <stdbool.h>
  16. #include <sys/socket.h>
  17. #include <sys/uio.h>
  18. #include <glib.h>
  19. #include "lib/bluetooth.h"
  20. #include "lib/sdp.h"
  21. #include "lib/sdp_lib.h"
  22. #include "src/shared/util.h"
  23. #include "src/shared/tester.h"
  24. #include "src/log.h"
  25. #include "src/sdpd.h"
  26. struct sdp_pdu {
  27. bool valid;
  28. const void *raw_data;
  29. size_t raw_size;
  30. uint16_t cont_len;
  31. };
  32. struct test_data {
  33. int mtu;
  34. struct sdp_pdu *pdu_list;
  35. };
  36. #define raw_data(args...) ((const unsigned char[]) { args })
  37. #define build_u128(args...) ((const uint128_t) { .data = { args } })
  38. #define raw_pdu(args...) \
  39. { \
  40. .valid = true, \
  41. .raw_data = g_memdup(raw_data(args), sizeof(raw_data(args))), \
  42. .raw_size = sizeof(raw_data(args)), \
  43. }
  44. #define raw_pdu_cont(cont, args...) \
  45. { \
  46. .valid = true, \
  47. .raw_data = g_memdup(raw_data(args), sizeof(raw_data(args))), \
  48. .raw_size = sizeof(raw_data(args)), \
  49. .cont_len = cont, \
  50. }
  51. #define define_test(name, _mtu, args...) \
  52. do { \
  53. const struct sdp_pdu pdus[] = { \
  54. args, { } \
  55. }; \
  56. static struct test_data data; \
  57. data.mtu = _mtu; \
  58. data.pdu_list = g_memdup(pdus, sizeof(pdus)); \
  59. tester_add(name, &data, NULL, test_sdp, NULL); \
  60. } while (0)
  61. #define define_ss(name, args...) define_test("/TP/SERVER/SS/" name, 48, args)
  62. #define define_sa(name, args...) define_test("/TP/SERVER/SA/" name, 48, args)
  63. #define define_ssa(name, args...) define_test("/TP/SERVER/SSA/" name, 48, args)
  64. #define define_brw(name, args...) define_test("/TP/SERVER/BRW/" name, 672, args)
  65. #define define_rob(name, args...) define_test("/TP/SERVER/ROB/" name, 48, args)
  66. /* SDP Data Element (DE) tests */
  67. struct test_data_de {
  68. const void *input_data;
  69. size_t input_size;
  70. sdp_data_t expected;
  71. };
  72. #define exp_data(_dtd, val_type, val_data) \
  73. ((const sdp_data_t) { \
  74. .dtd = _dtd, \
  75. .val.val_type = val_data, \
  76. })
  77. #define define_test_de_attr(name, input, exp) \
  78. do { \
  79. static struct test_data_de data; \
  80. data.input_data = g_memdup(input, sizeof(input)); \
  81. data.input_size = sizeof(input); \
  82. data.expected = exp; \
  83. tester_add("/sdp/DE/ATTR/" name, &data, NULL, \
  84. test_sdp_de_attr, NULL); \
  85. } while (0)
  86. struct context {
  87. guint server_source;
  88. guint client_source;
  89. int fd;
  90. uint8_t cont_data[16];
  91. uint8_t cont_size;
  92. unsigned int pdu_offset;
  93. const struct test_data *data;
  94. };
  95. static void destroy_context(struct context *context)
  96. {
  97. sdp_svcdb_collect_all(context->fd);
  98. sdp_svcdb_reset();
  99. g_source_remove(context->server_source);
  100. g_source_remove(context->client_source);
  101. g_free(context);
  102. }
  103. static gboolean context_quit(gpointer user_data)
  104. {
  105. struct context *context = user_data;
  106. if (context == NULL)
  107. return FALSE;
  108. destroy_context(context);
  109. tester_test_passed();
  110. return FALSE;
  111. }
  112. static gboolean server_handler(GIOChannel *channel, GIOCondition cond,
  113. gpointer user_data)
  114. {
  115. struct context *context = user_data;
  116. sdp_pdu_hdr_t hdr;
  117. void *buf;
  118. size_t size;
  119. ssize_t len;
  120. int fd;
  121. fd = g_io_channel_unix_get_fd(channel);
  122. if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) {
  123. sdp_svcdb_collect_all(fd);
  124. return FALSE;
  125. }
  126. len = recv(fd, &hdr, sizeof(sdp_pdu_hdr_t), MSG_PEEK);
  127. if (len != sizeof(sdp_pdu_hdr_t)) {
  128. sdp_svcdb_collect_all(fd);
  129. return FALSE;
  130. }
  131. size = sizeof(sdp_pdu_hdr_t) + ntohs(hdr.plen);
  132. buf = malloc(size);
  133. if (!buf)
  134. return TRUE;
  135. len = recv(fd, buf, size, 0);
  136. if (len <= 0) {
  137. sdp_svcdb_collect_all(fd);
  138. free(buf);
  139. return FALSE;
  140. }
  141. tester_monitor('<', 0x0000, 0x0001, buf, len);
  142. handle_internal_request(fd, context->data->mtu, buf, len);
  143. return TRUE;
  144. }
  145. static gboolean send_pdu(gpointer user_data)
  146. {
  147. struct context *context = user_data;
  148. const struct sdp_pdu *req_pdu;
  149. struct iovec iov[2];
  150. ssize_t len;
  151. req_pdu = &context->data->pdu_list[context->pdu_offset];
  152. iov[0].iov_base = (void *) req_pdu->raw_data;
  153. iov[0].iov_len = req_pdu->raw_size;
  154. iov[1].iov_base = context->cont_data;
  155. iov[1].iov_len = context->cont_size;
  156. if (context->cont_size && context->cont_size != req_pdu->cont_len)
  157. put_be16(req_pdu->cont_len, iov[1].iov_base + 4);
  158. len = writev(context->fd, iov, 2);
  159. g_assert(len == (ssize_t) (iov[0].iov_len + iov[1].iov_len));
  160. return FALSE;
  161. }
  162. static void context_increment(struct context *context)
  163. {
  164. context->pdu_offset += 2;
  165. if (!context->data->pdu_list[context->pdu_offset].valid) {
  166. context_quit(context);
  167. return;
  168. }
  169. g_idle_add(send_pdu, context);
  170. }
  171. static gboolean client_handler(GIOChannel *channel, GIOCondition cond,
  172. gpointer user_data)
  173. {
  174. struct context *context = user_data;
  175. const struct sdp_pdu *rsp_pdu;
  176. unsigned char buf[512];
  177. ssize_t len;
  178. int fd;
  179. rsp_pdu = &context->data->pdu_list[context->pdu_offset + 1];
  180. if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP))
  181. return FALSE;
  182. fd = g_io_channel_unix_get_fd(channel);
  183. len = read(fd, buf, sizeof(buf));
  184. if (len < 0)
  185. return FALSE;
  186. tester_monitor('>', 0x0000, 0x0001, buf, len);
  187. g_assert(len > 0);
  188. g_assert((size_t) len == rsp_pdu->raw_size + rsp_pdu->cont_len);
  189. g_assert(memcmp(buf, rsp_pdu->raw_data, rsp_pdu->raw_size) == 0);
  190. if (rsp_pdu->cont_len > 0)
  191. memcpy(context->cont_data, buf + rsp_pdu->raw_size,
  192. rsp_pdu->cont_len);
  193. context->cont_size = rsp_pdu->cont_len;
  194. context_increment(context);
  195. return TRUE;
  196. }
  197. static void update_db_timestamp(void)
  198. {
  199. }
  200. static void register_serial_port(void)
  201. {
  202. sdp_list_t *svclass_id, *apseq, *proto[2], *profiles, *root, *aproto;
  203. uuid_t root_uuid, sp_uuid, l2cap, rfcomm;
  204. sdp_profile_desc_t profile;
  205. uint8_t u8 = 1;
  206. sdp_data_t *sdp_data, *channel;
  207. sdp_record_t *record = sdp_record_alloc();
  208. record->handle = sdp_next_handle();
  209. sdp_record_add(BDADDR_ANY, record);
  210. sdp_data = sdp_data_alloc(SDP_UINT32, &record->handle);
  211. sdp_attr_add(record, SDP_ATTR_RECORD_HANDLE, sdp_data);
  212. sdp_uuid16_create(&root_uuid, PUBLIC_BROWSE_GROUP);
  213. root = sdp_list_append(0, &root_uuid);
  214. sdp_set_browse_groups(record, root);
  215. sdp_list_free(root, 0);
  216. sdp_uuid16_create(&sp_uuid, SERIAL_PORT_SVCLASS_ID);
  217. svclass_id = sdp_list_append(0, &sp_uuid);
  218. sdp_set_service_classes(record, svclass_id);
  219. sdp_list_free(svclass_id, 0);
  220. sdp_uuid16_create(&profile.uuid, SERIAL_PORT_PROFILE_ID);
  221. profile.version = 0x0100;
  222. profiles = sdp_list_append(0, &profile);
  223. sdp_set_profile_descs(record, profiles);
  224. sdp_list_free(profiles, 0);
  225. sdp_uuid16_create(&l2cap, L2CAP_UUID);
  226. proto[0] = sdp_list_append(0, &l2cap);
  227. apseq = sdp_list_append(0, proto[0]);
  228. sdp_uuid16_create(&rfcomm, RFCOMM_UUID);
  229. proto[1] = sdp_list_append(0, &rfcomm);
  230. channel = sdp_data_alloc(SDP_UINT8, &u8);
  231. proto[1] = sdp_list_append(proto[1], channel);
  232. apseq = sdp_list_append(apseq, proto[1]);
  233. aproto = sdp_list_append(0, apseq);
  234. sdp_set_access_protos(record, aproto);
  235. sdp_add_lang_attr(record);
  236. sdp_set_info_attr(record, "Serial Port", "BlueZ", "COM Port");
  237. sdp_set_url_attr(record, "http://www.bluez.org/",
  238. "http://www.bluez.org/", "http://www.bluez.org/");
  239. sdp_set_service_id(record, sp_uuid);
  240. sdp_set_service_ttl(record, 0xffff);
  241. sdp_set_service_avail(record, 0xff);
  242. sdp_set_record_state(record, 0x00001234);
  243. sdp_data_free(channel);
  244. sdp_list_free(proto[0], 0);
  245. sdp_list_free(proto[1], 0);
  246. sdp_list_free(apseq, 0);
  247. sdp_list_free(aproto, 0);
  248. update_db_timestamp();
  249. }
  250. static void register_object_push(void)
  251. {
  252. sdp_list_t *svclass_id, *pfseq, *apseq, *root;
  253. uuid_t root_uuid, opush_uuid, l2cap_uuid, rfcomm_uuid, obex_uuid;
  254. sdp_profile_desc_t profile[1];
  255. sdp_list_t *aproto, *proto[3];
  256. uint8_t chan = 9;
  257. sdp_data_t *channel;
  258. uint8_t formats[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0xff };
  259. void *dtds[sizeof(formats)], *values[sizeof(formats)];
  260. unsigned int i;
  261. uint8_t dtd = SDP_UINT8;
  262. sdp_data_t *sdp_data, *sflist;
  263. sdp_record_t *record = sdp_record_alloc();
  264. record->handle = sdp_next_handle();
  265. sdp_record_add(BDADDR_ANY, record);
  266. sdp_data = sdp_data_alloc(SDP_UINT32, &record->handle);
  267. sdp_attr_add(record, SDP_ATTR_RECORD_HANDLE, sdp_data);
  268. sdp_uuid16_create(&root_uuid, PUBLIC_BROWSE_GROUP);
  269. root = sdp_list_append(0, &root_uuid);
  270. sdp_set_browse_groups(record, root);
  271. sdp_uuid16_create(&opush_uuid, OBEX_OBJPUSH_SVCLASS_ID);
  272. svclass_id = sdp_list_append(0, &opush_uuid);
  273. sdp_set_service_classes(record, svclass_id);
  274. sdp_uuid16_create(&profile[0].uuid, OBEX_OBJPUSH_PROFILE_ID);
  275. profile[0].version = 0x0100;
  276. pfseq = sdp_list_append(0, profile);
  277. sdp_set_profile_descs(record, pfseq);
  278. sdp_uuid16_create(&l2cap_uuid, L2CAP_UUID);
  279. proto[0] = sdp_list_append(0, &l2cap_uuid);
  280. apseq = sdp_list_append(0, proto[0]);
  281. sdp_uuid16_create(&rfcomm_uuid, RFCOMM_UUID);
  282. proto[1] = sdp_list_append(0, &rfcomm_uuid);
  283. channel = sdp_data_alloc(SDP_UINT8, &chan);
  284. proto[1] = sdp_list_append(proto[1], channel);
  285. apseq = sdp_list_append(apseq, proto[1]);
  286. sdp_uuid16_create(&obex_uuid, OBEX_UUID);
  287. proto[2] = sdp_list_append(0, &obex_uuid);
  288. apseq = sdp_list_append(apseq, proto[2]);
  289. aproto = sdp_list_append(0, apseq);
  290. sdp_set_access_protos(record, aproto);
  291. for (i = 0; i < sizeof(formats); i++) {
  292. dtds[i] = &dtd;
  293. values[i] = &formats[i];
  294. }
  295. sflist = sdp_seq_alloc(dtds, values, sizeof(formats));
  296. sdp_attr_add(record, SDP_ATTR_SUPPORTED_FORMATS_LIST, sflist);
  297. sdp_set_info_attr(record, "OBEX Object Push", 0, 0);
  298. sdp_data_free(channel);
  299. sdp_list_free(root, 0);
  300. sdp_list_free(svclass_id, 0);
  301. sdp_list_free(pfseq, 0);
  302. sdp_list_free(proto[0], 0);
  303. sdp_list_free(proto[1], 0);
  304. sdp_list_free(proto[2], 0);
  305. sdp_list_free(apseq, 0);
  306. sdp_list_free(aproto, 0);
  307. update_db_timestamp();
  308. }
  309. static void register_hid_keyboard(void)
  310. {
  311. sdp_list_t *svclass_id, *pfseq, *apseq, *root;
  312. uuid_t root_uuid, hidkb_uuid, l2cap_uuid, hidp_uuid;
  313. sdp_profile_desc_t profile[1];
  314. sdp_list_t *aproto, *proto[3];
  315. sdp_data_t *psm, *lang_lst, *lang_lst2, *hid_spec_lst, *hid_spec_lst2;
  316. unsigned int i;
  317. uint8_t dtd = SDP_UINT16;
  318. uint8_t dtd2 = SDP_UINT8;
  319. uint8_t dtd_data = SDP_TEXT_STR8;
  320. void *dtds[2];
  321. void *values[2];
  322. void *dtds2[2];
  323. void *values2[2];
  324. int leng[2];
  325. uint8_t hid_spec_type = 0x22;
  326. uint16_t hid_attr_lang[] = { 0x409, 0x100 };
  327. static const uint16_t ctrl = 0x11;
  328. static const uint16_t intr = 0x13;
  329. static const uint16_t hid_attr[] = { 0x100, 0x111, 0x40, 0x0d,
  330. 0x01, 0x01 };
  331. static const uint16_t hid_attr2[] = { 0x0, 0x01, 0x100, 0x1f40,
  332. 0x01, 0x01 };
  333. const uint8_t hid_spec[] = {
  334. 0x05, 0x01, // usage page
  335. 0x09, 0x06, // keyboard
  336. 0xa1, 0x01, // key codes
  337. 0x85, 0x01, // minimum
  338. 0x05, 0x07, // max
  339. 0x19, 0xe0, // logical min
  340. 0x29, 0xe7, // logical max
  341. 0x15, 0x00, // report size
  342. 0x25, 0x01, // report count
  343. 0x75, 0x01, // input data variable absolute
  344. 0x95, 0x08, // report count
  345. 0x81, 0x02, // report size
  346. 0x75, 0x08,
  347. 0x95, 0x01,
  348. 0x81, 0x01,
  349. 0x75, 0x01,
  350. 0x95, 0x05,
  351. 0x05, 0x08,
  352. 0x19, 0x01,
  353. 0x29, 0x05,
  354. 0x91, 0x02,
  355. 0x75, 0x03,
  356. 0x95, 0x01,
  357. 0x91, 0x01,
  358. 0x75, 0x08,
  359. 0x95, 0x06,
  360. 0x15, 0x00,
  361. 0x26, 0xff,
  362. 0x00, 0x05,
  363. 0x07, 0x19,
  364. 0x00, 0x2a,
  365. 0xff, 0x00,
  366. 0x81, 0x00,
  367. 0x75, 0x01,
  368. 0x95, 0x01,
  369. 0x15, 0x00,
  370. 0x25, 0x01,
  371. 0x05, 0x0c,
  372. 0x09, 0xb8,
  373. 0x81, 0x06,
  374. 0x09, 0xe2,
  375. 0x81, 0x06,
  376. 0x09, 0xe9,
  377. 0x81, 0x02,
  378. 0x09, 0xea,
  379. 0x81, 0x02,
  380. 0x75, 0x01,
  381. 0x95, 0x04,
  382. 0x81, 0x01,
  383. 0xc0 // end tag
  384. };
  385. sdp_data_t *sdp_data;
  386. sdp_record_t *record = sdp_record_alloc();
  387. record->handle = sdp_next_handle();
  388. sdp_record_add(BDADDR_ANY, record);
  389. sdp_data = sdp_data_alloc(SDP_UINT32, &record->handle);
  390. sdp_attr_add(record, SDP_ATTR_RECORD_HANDLE, sdp_data);
  391. sdp_uuid16_create(&root_uuid, PUBLIC_BROWSE_GROUP);
  392. root = sdp_list_append(0, &root_uuid);
  393. sdp_set_browse_groups(record, root);
  394. sdp_list_free(root, 0);
  395. sdp_add_lang_attr(record);
  396. sdp_uuid16_create(&hidkb_uuid, HID_SVCLASS_ID);
  397. svclass_id = sdp_list_append(0, &hidkb_uuid);
  398. sdp_set_service_classes(record, svclass_id);
  399. sdp_list_free(svclass_id, 0);
  400. sdp_uuid16_create(&profile[0].uuid, HID_PROFILE_ID);
  401. profile[0].version = 0x0100;
  402. pfseq = sdp_list_append(0, profile);
  403. sdp_set_profile_descs(record, pfseq);
  404. sdp_list_free(pfseq, 0);
  405. /* protocols */
  406. sdp_uuid16_create(&l2cap_uuid, L2CAP_UUID);
  407. proto[1] = sdp_list_append(0, &l2cap_uuid);
  408. psm = sdp_data_alloc(SDP_UINT16, &ctrl);
  409. proto[1] = sdp_list_append(proto[1], psm);
  410. apseq = sdp_list_append(0, proto[1]);
  411. sdp_uuid16_create(&hidp_uuid, HIDP_UUID);
  412. proto[2] = sdp_list_append(0, &hidp_uuid);
  413. apseq = sdp_list_append(apseq, proto[2]);
  414. aproto = sdp_list_append(0, apseq);
  415. sdp_set_access_protos(record, aproto);
  416. sdp_data_free(psm);
  417. sdp_list_free(proto[1], 0);
  418. sdp_list_free(proto[2], 0);
  419. sdp_list_free(apseq, 0);
  420. sdp_list_free(aproto, 0);
  421. /* additional protocols */
  422. proto[1] = sdp_list_append(0, &l2cap_uuid);
  423. psm = sdp_data_alloc(SDP_UINT16, &intr);
  424. proto[1] = sdp_list_append(proto[1], psm);
  425. apseq = sdp_list_append(0, proto[1]);
  426. sdp_uuid16_create(&hidp_uuid, HIDP_UUID);
  427. proto[2] = sdp_list_append(0, &hidp_uuid);
  428. apseq = sdp_list_append(apseq, proto[2]);
  429. aproto = sdp_list_append(0, apseq);
  430. sdp_set_add_access_protos(record, aproto);
  431. sdp_data_free(psm);
  432. sdp_list_free(proto[1], 0);
  433. sdp_list_free(proto[2], 0);
  434. sdp_list_free(apseq, 0);
  435. sdp_list_free(aproto, 0);
  436. sdp_set_info_attr(record, "HID Keyboard", NULL, NULL);
  437. for (i = 0; i < sizeof(hid_attr) / 2; i++)
  438. sdp_attr_add_new(record,
  439. SDP_ATTR_HID_DEVICE_RELEASE_NUMBER + i,
  440. SDP_UINT16, &hid_attr[i]);
  441. dtds[0] = &dtd2;
  442. values[0] = &hid_spec_type;
  443. dtds[1] = &dtd_data;
  444. values[1] = (uint8_t *) hid_spec;
  445. leng[0] = 0;
  446. leng[1] = sizeof(hid_spec);
  447. hid_spec_lst = sdp_seq_alloc_with_length(dtds, values, leng, 2);
  448. hid_spec_lst2 = sdp_data_alloc(SDP_SEQ8, hid_spec_lst);
  449. sdp_attr_add(record, SDP_ATTR_HID_DESCRIPTOR_LIST, hid_spec_lst2);
  450. for (i = 0; i < sizeof(hid_attr_lang) / 2; i++) {
  451. dtds2[i] = &dtd;
  452. values2[i] = &hid_attr_lang[i];
  453. }
  454. lang_lst = sdp_seq_alloc(dtds2, values2, sizeof(hid_attr_lang) / 2);
  455. lang_lst2 = sdp_data_alloc(SDP_SEQ8, lang_lst);
  456. sdp_attr_add(record, SDP_ATTR_HID_LANG_ID_BASE_LIST, lang_lst2);
  457. sdp_attr_add_new(record, SDP_ATTR_HID_SDP_DISABLE,
  458. SDP_UINT16, &hid_attr2[0]);
  459. for (i = 0; i < sizeof(hid_attr2) / 2 - 1; i++)
  460. sdp_attr_add_new(record, SDP_ATTR_HID_REMOTE_WAKEUP + i,
  461. SDP_UINT16, &hid_attr2[i + 1]);
  462. update_db_timestamp();
  463. }
  464. static void register_file_transfer(void)
  465. {
  466. sdp_list_t *svclass_id, *pfseq, *apseq, *root;
  467. uuid_t root_uuid, ftrn_uuid, l2cap_uuid, rfcomm_uuid, obex_uuid;
  468. sdp_profile_desc_t profile[1];
  469. sdp_list_t *aproto, *proto[3];
  470. uint8_t u8 = 10;
  471. sdp_data_t *sdp_data, *channel;
  472. sdp_record_t *record = sdp_record_alloc();
  473. record->handle = sdp_next_handle();
  474. sdp_record_add(BDADDR_ANY, record);
  475. sdp_data = sdp_data_alloc(SDP_UINT32, &record->handle);
  476. sdp_attr_add(record, SDP_ATTR_RECORD_HANDLE, sdp_data);
  477. sdp_uuid16_create(&root_uuid, PUBLIC_BROWSE_GROUP);
  478. root = sdp_list_append(0, &root_uuid);
  479. sdp_set_browse_groups(record, root);
  480. sdp_uuid16_create(&ftrn_uuid, OBEX_FILETRANS_SVCLASS_ID);
  481. svclass_id = sdp_list_append(0, &ftrn_uuid);
  482. sdp_set_service_classes(record, svclass_id);
  483. sdp_uuid16_create(&profile[0].uuid, OBEX_FILETRANS_PROFILE_ID);
  484. profile[0].version = 0x0100;
  485. pfseq = sdp_list_append(0, &profile[0]);
  486. sdp_set_profile_descs(record, pfseq);
  487. sdp_uuid16_create(&l2cap_uuid, L2CAP_UUID);
  488. proto[0] = sdp_list_append(0, &l2cap_uuid);
  489. apseq = sdp_list_append(0, proto[0]);
  490. sdp_uuid16_create(&rfcomm_uuid, RFCOMM_UUID);
  491. proto[1] = sdp_list_append(0, &rfcomm_uuid);
  492. channel = sdp_data_alloc(SDP_UINT8, &u8);
  493. proto[1] = sdp_list_append(proto[1], channel);
  494. apseq = sdp_list_append(apseq, proto[1]);
  495. sdp_uuid16_create(&obex_uuid, OBEX_UUID);
  496. proto[2] = sdp_list_append(0, &obex_uuid);
  497. apseq = sdp_list_append(apseq, proto[2]);
  498. aproto = sdp_list_append(0, apseq);
  499. sdp_set_access_protos(record, aproto);
  500. sdp_set_info_attr(record, "OBEX File Transfer", 0, 0);
  501. sdp_data_free(channel);
  502. sdp_list_free(root, 0);
  503. sdp_list_free(svclass_id, 0);
  504. sdp_list_free(pfseq, 0);
  505. sdp_list_free(proto[0], 0);
  506. sdp_list_free(proto[1], 0);
  507. sdp_list_free(proto[2], 0);
  508. sdp_list_free(apseq, 0);
  509. sdp_list_free(aproto, 0);
  510. update_db_timestamp();
  511. }
  512. static struct context *create_context(gconstpointer data)
  513. {
  514. struct context *context = g_new0(struct context, 1);
  515. GIOChannel *channel;
  516. int err, sv[2];
  517. err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv);
  518. g_assert(err == 0);
  519. channel = g_io_channel_unix_new(sv[0]);
  520. g_io_channel_set_close_on_unref(channel, TRUE);
  521. g_io_channel_set_encoding(channel, NULL, NULL);
  522. g_io_channel_set_buffered(channel, FALSE);
  523. context->server_source = g_io_add_watch(channel,
  524. G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
  525. server_handler, context);
  526. g_assert(context->server_source > 0);
  527. g_io_channel_unref(channel);
  528. channel = g_io_channel_unix_new(sv[1]);
  529. g_io_channel_set_close_on_unref(channel, TRUE);
  530. g_io_channel_set_encoding(channel, NULL, NULL);
  531. g_io_channel_set_buffered(channel, FALSE);
  532. context->client_source = g_io_add_watch(channel,
  533. G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
  534. client_handler, context);
  535. g_assert(context->client_source > 0);
  536. g_io_channel_unref(channel);
  537. context->fd = sv[1];
  538. context->data = data;
  539. set_fixed_db_timestamp(0x496f0654);
  540. register_public_browse_group();
  541. register_server_service();
  542. register_serial_port();
  543. register_object_push();
  544. register_hid_keyboard();
  545. register_file_transfer();
  546. register_file_transfer();
  547. register_file_transfer();
  548. register_file_transfer();
  549. register_file_transfer();
  550. return context;
  551. }
  552. static void test_sdp(gconstpointer data)
  553. {
  554. struct context *context = create_context(data);
  555. g_idle_add(send_pdu, context);
  556. }
  557. static void test_sdp_de_attr(gconstpointer data)
  558. {
  559. const struct test_data_de *test = data;
  560. uint128_t u128;
  561. sdp_data_t *d;
  562. int size = 0;
  563. d = sdp_extract_attr(test->input_data, test->input_size, &size, NULL);
  564. g_assert(d != NULL);
  565. g_assert_cmpuint(test->input_size, ==, size);
  566. g_assert_cmpuint(test->expected.dtd, ==, d->dtd);
  567. tester_debug("DTD=0x%02x\n", d->dtd);
  568. switch (d->dtd) {
  569. case SDP_TEXT_STR8:
  570. case SDP_TEXT_STR16:
  571. case SDP_URL_STR8:
  572. case SDP_URL_STR16:
  573. g_assert_cmpstr(test->expected.val.str, ==, d->val.str);
  574. break;
  575. case SDP_DATA_NIL:
  576. case SDP_UINT8:
  577. g_assert_cmpuint(test->expected.val.uint8, ==, d->val.uint8);
  578. break;
  579. case SDP_UINT16:
  580. g_assert_cmpuint(test->expected.val.uint16, ==, d->val.uint16);
  581. break;
  582. case SDP_UINT32:
  583. g_assert_cmpuint(test->expected.val.uint32, ==, d->val.uint32);
  584. break;
  585. case SDP_UINT64:
  586. g_assert_cmpuint(test->expected.val.uint64, ==, d->val.uint64);
  587. break;
  588. case SDP_BOOL:
  589. case SDP_INT8:
  590. g_assert_cmpuint(test->expected.val.int8, ==, d->val.int8);
  591. break;
  592. case SDP_INT16:
  593. g_assert_cmpuint(test->expected.val.int16, ==, d->val.int16);
  594. break;
  595. case SDP_INT32:
  596. g_assert_cmpuint(test->expected.val.int32, ==, d->val.int32);
  597. break;
  598. case SDP_INT64:
  599. g_assert_cmpuint(test->expected.val.int64, ==, d->val.int64);
  600. break;
  601. case SDP_UINT128:
  602. case SDP_INT128:
  603. /* Expected bytes are in network order */
  604. hton128(&d->val.uint128, &u128);
  605. g_assert(memcmp(&test->expected.val.uint128, &u128,
  606. sizeof(uint128_t)) == 0);
  607. break;
  608. default:
  609. g_assert_not_reached();
  610. }
  611. sdp_data_free(d);
  612. tester_test_passed();
  613. }
  614. int main(int argc, char *argv[])
  615. {
  616. tester_init(&argc, &argv);
  617. __btd_log_init("*", 0);
  618. /*
  619. * Service Search Request
  620. *
  621. * Verify the correct behaviour of the IUT when searching for
  622. * existing service(s).
  623. */
  624. define_ss("BV-01-C/UUID-16",
  625. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  626. 0x11, 0x05, 0x00, 0x01, 0x00),
  627. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  628. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00));
  629. define_ss("BV-01-C/UUID-32",
  630. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  631. 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00),
  632. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  633. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00));
  634. define_ss("BV-01-C/UUID-128",
  635. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  636. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  637. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  638. 0x00, 0x01, 0x00),
  639. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  640. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00));
  641. /*
  642. * Service Search Request
  643. *
  644. * Verify the correct behaviour of the IUT when searching for
  645. * existing service(s), using continuation state.
  646. */
  647. define_ss("BV-03-C/UUID-16",
  648. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  649. 0x01, 0x00, 0xff, 0xff, 0x00),
  650. raw_pdu_cont(8, 0x03, 0x00, 0x01, 0x00, 0x29, 0x00, 0x08, 0x00,
  651. 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  652. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  653. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  654. 0x05, 0x00, 0x01, 0x00, 0x06, 0x08),
  655. raw_pdu_cont(8, 0x02, 0x00, 0x02, 0x00, 0x10, 0x35, 0x03, 0x19,
  656. 0x01, 0x00, 0xff, 0xff, 0x08),
  657. raw_pdu(0x03, 0x00, 0x02, 0x00, 0x09, 0x00, 0x08, 0x00,
  658. 0x01, 0x00, 0x01, 0x00, 0x07, 0x00));
  659. define_ss("BV-03-C/UUID-32",
  660. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  661. 0x00, 0x00, 0x01, 0x00, 0xff, 0xff, 0x00),
  662. raw_pdu_cont(8, 0x03, 0x00, 0x01, 0x00, 0x29, 0x00, 0x08, 0x00,
  663. 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  664. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  665. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  666. 0x05, 0x00, 0x01, 0x00, 0x06, 0x08),
  667. raw_pdu_cont(8, 0x02, 0x00, 0x02, 0x00, 0x12, 0x35, 0x05, 0x1a,
  668. 0x00, 0x00, 0x01, 0x00, 0xff, 0xff, 0x08),
  669. raw_pdu(0x03, 0x00, 0x02, 0x00, 0x09, 0x00, 0x08, 0x00,
  670. 0x01, 0x00, 0x01, 0x00, 0x07, 0x00));
  671. define_ss("BV-03-C/UUID-128",
  672. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  673. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  674. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  675. 0xff, 0xff, 0x00),
  676. raw_pdu_cont(8, 0x03, 0x00, 0x01, 0x00, 0x29, 0x00, 0x08, 0x00,
  677. 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  678. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  679. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  680. 0x05, 0x00, 0x01, 0x00, 0x06, 0x08),
  681. raw_pdu_cont(8, 0x02, 0x00, 0x02, 0x00, 0x1e, 0x35, 0x11, 0x1c,
  682. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  683. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  684. 0xff, 0xff, 0x08),
  685. raw_pdu(0x03, 0x00, 0x02, 0x00, 0x09, 0x00, 0x08, 0x00,
  686. 0x01, 0x00, 0x01, 0x00, 0x07, 0x00));
  687. /*
  688. * Service Search Request
  689. *
  690. * Verify the correct behaviour of the IUT when searching for
  691. * no existing service(s).
  692. */
  693. define_ss("BV-04-C/UUID-16",
  694. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  695. 0xff, 0xff, 0x00, 0x01, 0x00),
  696. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x05, 0x00, 0x00, 0x00,
  697. 0x00, 0x00));
  698. define_ss("BV-04-C/UUID-128",
  699. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  700. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  701. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  702. 0x00, 0x01, 0x00),
  703. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x05, 0x00, 0x00, 0x00,
  704. 0x00, 0x00));
  705. define_ss("BV-04-C/UUID-32",
  706. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  707. 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x00),
  708. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x05, 0x00, 0x00, 0x00,
  709. 0x00, 0x00));
  710. /*
  711. * Service Search Request
  712. *
  713. * Verify the correct behaviour of the IUT when searching for
  714. * existing service(s), using invalid PDU size.
  715. */
  716. define_ss("BI-01-C/UUID-16",
  717. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  718. 0x01, 0x00, 0x00, 0x05, 0x00),
  719. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  720. define_ss("BI-01-C/UUID-32",
  721. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  722. 0x00, 0x00, 0x01, 0x00, 0x00, 0x05, 0x00),
  723. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  724. define_ss("BI-01-C/UUID-128",
  725. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  726. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  727. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  728. 0x00, 0x05, 0x00),
  729. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  730. /*
  731. * Service Search Request
  732. *
  733. * Verify the correct behaviour of the IUT when searching for
  734. * existing service(s), using invalid request syntax.
  735. */
  736. define_ss("BI-02-C/UUID-16",
  737. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x06, 0x35, 0x03, 0x19,
  738. 0x01, 0x00, 0x00),
  739. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  740. define_ss("BI-02-C/UUID-32",
  741. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x05, 0x1a,
  742. 0x00, 0x00, 0x01, 0x00, 0x00),
  743. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  744. define_ss("BI-02-C/UUID-128",
  745. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x14, 0x35, 0x11, 0x1c,
  746. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  747. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  748. 0x00),
  749. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  750. /*
  751. * Service Attribute Request
  752. *
  753. * Verify that the IUT is able to respond with attribute(s).
  754. */
  755. define_sa("BV-01-C",
  756. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  757. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  758. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  759. 0x00, 0x01, 0x00),
  760. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  761. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00),
  762. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  763. 0x01, 0x00, 0x0a, 0x35, 0x03, 0x09, 0x00, 0x01,
  764. 0x00),
  765. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  766. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  767. 0x05, 0x00));
  768. /*
  769. * Service Attribute Request
  770. *
  771. * Verify that the IUT is able to respond with the existing
  772. * Attribute(s) using ContinuationState.
  773. */
  774. define_sa("BV-03-C",
  775. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  776. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  777. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  778. 0x00, 0x01, 0x00),
  779. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  780. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  781. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x01, 0x00,
  782. 0x00, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00,
  783. 0x09, 0x00, 0x01, 0x00),
  784. raw_pdu_cont(8, 0x05, 0x00, 0x01, 0x00, 0x12, 0x00, 0x07, 0x35,
  785. 0x10, 0x09, 0x00, 0x00, 0x0a, 0x00, 0x08),
  786. raw_pdu_cont(8, 0x04, 0x00, 0x02, 0x00, 0x17, 0x00, 0x01, 0x00,
  787. 0x00, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00,
  788. 0x09, 0x00, 0x01, 0x08),
  789. raw_pdu_cont(8, 0x05, 0x00, 0x02, 0x00, 0x12, 0x00, 0x07, 0x01,
  790. 0x00, 0x00, 0x09, 0x00, 0x01, 0x35, 0x08),
  791. raw_pdu_cont(8, 0x04, 0x00, 0x03, 0x00, 0x17, 0x00, 0x01, 0x00,
  792. 0x00, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00,
  793. 0x09, 0x00, 0x01, 0x08),
  794. raw_pdu(0x05, 0x00, 0x03, 0x00, 0x07, 0x00, 0x04, 0x03,
  795. 0x19, 0x11, 0x01, 0x00));
  796. /*
  797. * Service Attribute Request
  798. *
  799. * Verify that the IUT is able to respond with an
  800. * ServiceID attribute.
  801. */
  802. define_sa("BV-04-C",
  803. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  804. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  805. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  806. 0x00, 0x01, 0x00),
  807. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  808. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  809. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  810. 0x00, 0x00, 0x19, 0x35, 0x03, 0x09, 0x00, 0x03,
  811. 0x00),
  812. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0b, 0x00, 0x08, 0x35,
  813. 0x06, 0x09, 0x00, 0x03, 0x19, 0x11, 0x01, 0x00));
  814. /*
  815. * Service Attribute Request
  816. *
  817. * Verify that the IUT is able to respond with an
  818. * ProtocolDescriptorList attribute.
  819. */
  820. define_sa("BV-05-C",
  821. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  822. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  823. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  824. 0x00, 0x01, 0x00),
  825. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  826. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00),
  827. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  828. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x04,
  829. 0x00),
  830. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x1b, 0x00, 0x18, 0x35,
  831. 0x16, 0x09, 0x00, 0x04, 0x35, 0x11, 0x35, 0x03,
  832. 0x19, 0x01, 0x00, 0x35, 0x05, 0x19, 0x00, 0x03,
  833. 0x08, 0x09, 0x35, 0x03, 0x19, 0x00, 0x08, 0x00));
  834. /*
  835. * Service Attribute Request
  836. *
  837. * Verify that the IUT is able to respond with the
  838. * ServiceRecordState attribute.
  839. */
  840. define_sa("BV-06-C",
  841. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  842. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  843. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  844. 0x00, 0x01, 0x00),
  845. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  846. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  847. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  848. 0x00, 0x00, 0x0d, 0x35, 0x03, 0x09, 0x00, 0x02,
  849. 0x00),
  850. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  851. 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00, 0x00, 0x12,
  852. 0x34, 0x00));
  853. /*
  854. * Service Attribute Request
  855. *
  856. * Verify that the IUT is able to respond with the
  857. * ServiceInfoTime attribute.
  858. */
  859. define_sa("BV-07-C",
  860. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  861. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  862. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  863. 0x00, 0x01, 0x00),
  864. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  865. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  866. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  867. 0x00, 0x00, 0x0d, 0x35, 0x03, 0x09, 0x00, 0x07,
  868. 0x00),
  869. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  870. 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00, 0x00, 0xff,
  871. 0xff, 0x00));
  872. /*
  873. * Service Attribute Request
  874. *
  875. * Verify that the IUT is able to respond with an
  876. * BrowseGroupList attribute.
  877. */
  878. define_sa("BV-08-C",
  879. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  880. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  881. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  882. 0x00, 0x01, 0x00),
  883. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  884. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00),
  885. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  886. 0x01, 0x00, 0x0a, 0x35, 0x03, 0x09, 0x00, 0x05,
  887. 0x00),
  888. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  889. 0x08, 0x09, 0x00, 0x05, 0x35, 0x03, 0x19, 0x10,
  890. 0x02, 0x00));
  891. /*
  892. * Service Attribute Request
  893. *
  894. * Verify that the IUT is able to respond with an
  895. * LanguageBaseAttributeIdList attribute.
  896. */
  897. define_sa("BV-09-C",
  898. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  899. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  900. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  901. 0x00, 0x01, 0x00),
  902. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  903. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  904. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  905. 0x00, 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, 0x06,
  906. 0x00),
  907. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x13, 0x00, 0x10, 0x35,
  908. 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, 0x09, 0x65,
  909. 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, 0x00, 0x00));
  910. /*
  911. * Service Attribute Request
  912. *
  913. * Verify that the IUT is able to respond with an
  914. * ServiceAvailability attribute.
  915. */
  916. define_sa("BV-10-C",
  917. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  918. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  919. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  920. 0x00, 0x01, 0x00),
  921. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  922. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  923. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  924. 0x00, 0x00, 0x0a, 0x35, 0x03, 0x09, 0x00, 0x08,
  925. 0x00),
  926. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0a, 0x00, 0x07, 0x35,
  927. 0x05, 0x09, 0x00, 0x08, 0x08, 0xff, 0x00));
  928. /*
  929. * Service Attribute Request
  930. *
  931. * Verify that the IUT is able to respond with an
  932. * IconURL attribute.
  933. */
  934. define_sa("BV-11-C",
  935. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  936. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  937. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  938. 0x00, 0x01, 0x00),
  939. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  940. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  941. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  942. 0x00, 0x00, 0x1f, 0x35, 0x03, 0x09, 0x00, 0x0c,
  943. 0x00),
  944. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x1f, 0x00, 0x1c, 0x35,
  945. 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15, 0x68, 0x74,
  946. 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
  947. 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, 0x2e, 0x6f,
  948. 0x72, 0x67, 0x2f, 0x00));
  949. /*
  950. * Service Attribute Request
  951. *
  952. * Verify that the IUT is able to respond with an
  953. * ServiceName attribute.
  954. */
  955. define_sa("BV-12-C",
  956. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  957. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  958. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  959. 0x00, 0x01, 0x00),
  960. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  961. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  962. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  963. 0x00, 0x00, 0x16, 0x35, 0x03, 0x09, 0x00, 0x06,
  964. 0x00),
  965. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x13, 0x00, 0x10, 0x35,
  966. 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, 0x09, 0x65,
  967. 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, 0x00, 0x00),
  968. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  969. 0x00, 0x00, 0x15, 0x35, 0x03, 0x09, 0x01, 0x00,
  970. 0x00),
  971. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  972. 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b, 0x53, 0x65,
  973. 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50, 0x6f, 0x72,
  974. 0x74, 0x00));
  975. /*
  976. * Service Attribute Request
  977. *
  978. * Verify that the IUT is able to respond with an
  979. * ServiceDescription attribute.
  980. */
  981. define_sa("BV-13-C",
  982. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  983. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  984. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  985. 0x00, 0x01, 0x00),
  986. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  987. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  988. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  989. 0x00, 0x00, 0x16, 0x35, 0x03, 0x09, 0x00, 0x06,
  990. 0x00),
  991. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x13, 0x00, 0x10, 0x35,
  992. 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, 0x09, 0x65,
  993. 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, 0x00, 0x00),
  994. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  995. 0x00, 0x00, 0x12, 0x35, 0x03, 0x09, 0x01, 0x01,
  996. 0x00),
  997. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x12, 0x00, 0x0f, 0x35,
  998. 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08, 0x43, 0x4f,
  999. 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74, 0x00));
  1000. /*
  1001. * Service Attribute Request
  1002. *
  1003. * Verify that the IUT is able to respond with an
  1004. * ProviderName attribute.
  1005. */
  1006. define_sa("BV-14-C",
  1007. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1008. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1009. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1010. 0x00, 0x01, 0x00),
  1011. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1012. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1013. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1014. 0x00, 0x00, 0x16, 0x35, 0x03, 0x09, 0x00, 0x06,
  1015. 0x00),
  1016. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x13, 0x00, 0x10, 0x35,
  1017. 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, 0x09, 0x65,
  1018. 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, 0x00, 0x00),
  1019. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1020. 0x00, 0x00, 0x0f, 0x35, 0x03, 0x09, 0x01, 0x02,
  1021. 0x00),
  1022. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1023. 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05, 0x42, 0x6c,
  1024. 0x75, 0x65, 0x5a, 0x00));
  1025. /*
  1026. * Service Attribute Request
  1027. *
  1028. * Verify that the IUT is able to respond with an
  1029. * VersionNumberList attribute.
  1030. */
  1031. define_sa("BV-15-C",
  1032. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1033. 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00,
  1034. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1035. 0x00, 0x01, 0x00),
  1036. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1037. 0x01, 0x00, 0x00, 0x00, 0x00, 0x00),
  1038. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x00,
  1039. 0x00, 0x00, 0x0d, 0x35, 0x03, 0x09, 0x02, 0x00,
  1040. 0x00),
  1041. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  1042. 0x08, 0x09, 0x02, 0x00, 0x35, 0x03, 0x09, 0x01,
  1043. 0x00, 0x00));
  1044. /*
  1045. * Service Attribute Request
  1046. *
  1047. * Verify that the IUT is able to respond with the
  1048. * ServiceDatabaseState attribute.
  1049. */
  1050. define_sa("BV-16-C",
  1051. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1052. 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00,
  1053. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1054. 0x00, 0x01, 0x00),
  1055. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1056. 0x01, 0x00, 0x00, 0x00, 0x00, 0x00),
  1057. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x00,
  1058. 0x00, 0x00, 0x0d, 0x35, 0x03, 0x09, 0x02, 0x01,
  1059. 0x00),
  1060. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  1061. 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49, 0x6f, 0x06,
  1062. 0x54, 0x00));
  1063. /*
  1064. * Service Attribute Request
  1065. *
  1066. * Verify that the IUT is able to respond with the
  1067. * BluetoothProfileDescriptorList attribute.
  1068. */
  1069. define_sa("BV-17-C",
  1070. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1071. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1072. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1073. 0x00, 0x01, 0x00),
  1074. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1075. 0x01, 0x00, 0x01, 0x00, 0x01, 0x00),
  1076. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1077. 0x01, 0x00, 0x0f, 0x35, 0x03, 0x09, 0x00, 0x09,
  1078. 0x00),
  1079. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x12, 0x00, 0x0f, 0x35,
  1080. 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08, 0x35, 0x06,
  1081. 0x19, 0x11, 0x05, 0x09, 0x01, 0x00, 0x00));
  1082. /*
  1083. * Service Attribute Request
  1084. *
  1085. * Verify that the IUT is able to respond with the
  1086. * DocumentationURL attribute.
  1087. */
  1088. define_sa("BV-18-C",
  1089. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1090. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1091. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1092. 0x00, 0x01, 0x00),
  1093. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1094. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1095. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1096. 0x00, 0x00, 0x1f, 0x35, 0x03, 0x09, 0x00, 0x0a,
  1097. 0x00),
  1098. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x1f, 0x00, 0x1c, 0x35,
  1099. 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15, 0x68, 0x74,
  1100. 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
  1101. 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, 0x2e, 0x6f,
  1102. 0x72, 0x67, 0x2f, 0x00));
  1103. /*
  1104. * Service Attribute Request
  1105. *
  1106. * Verify that the IUT is able to respond with the
  1107. * ClientExecutableURL attribute.
  1108. */
  1109. define_sa("BV-19-C",
  1110. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1111. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1112. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1113. 0x00, 0x01, 0x00),
  1114. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1115. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1116. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1117. 0x00, 0x00, 0x1f, 0x35, 0x03, 0x09, 0x00, 0x0b,
  1118. 0x00),
  1119. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x1f, 0x00, 0x1c, 0x35,
  1120. 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15, 0x68, 0x74,
  1121. 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
  1122. 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, 0x2e, 0x6f,
  1123. 0x72, 0x67, 0x2f, 0x00));
  1124. /*
  1125. * Service Attribute Request
  1126. *
  1127. * Verify the correct behaviour of the IUT when searching
  1128. * for non-existing Attribute.
  1129. */
  1130. define_sa("BV-20-C",
  1131. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1132. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  1133. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1134. 0x00, 0x01, 0x00),
  1135. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1136. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1137. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1138. 0x00, 0x00, 0x07, 0x35, 0x03, 0x09, 0xff, 0xff,
  1139. 0x00),
  1140. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x05, 0x00, 0x02, 0x35,
  1141. 0x00, 0x00));
  1142. /*
  1143. * Service Attribute Request
  1144. *
  1145. * Verify that the IUT is able to respond with an
  1146. * AdditionalProtocolDescriptorList attribute.
  1147. */
  1148. define_sa("BV-21-C",
  1149. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1150. 0x00, 0x00, 0x11, 0x24, 0x00, 0x00, 0x10, 0x00,
  1151. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1152. 0x00, 0x01, 0x00),
  1153. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1154. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00),
  1155. raw_pdu(0x04, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x01, 0x00,
  1156. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x0d,
  1157. 0x00),
  1158. raw_pdu(0x05, 0x00, 0x02, 0x00, 0x19, 0x00, 0x16, 0x35,
  1159. 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f, 0x35, 0x0d,
  1160. 0x35, 0x06, 0x19, 0x01, 0x00, 0x09, 0x00, 0x13,
  1161. 0x35, 0x03, 0x19, 0x00, 0x11, 0x00));
  1162. /*
  1163. * Service Attribute Request
  1164. *
  1165. * Verify the correct behaviour of the IUT when searching
  1166. * for existing Attribute, using invalid ServiceRecordHandle.
  1167. */
  1168. define_sa("BI-01-C",
  1169. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0xff, 0xff, 0xff,
  1170. 0xff, 0x00, 0x07, 0x35, 0x03, 0x09, 0x00, 0x01,
  1171. 0x00),
  1172. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x02));
  1173. /*
  1174. * Service Attribute Request
  1175. *
  1176. * Verify the correct behaviour of the IUT when searching
  1177. * for existing Attribute, using invalid request syntax.
  1178. */
  1179. define_sa("BI-02-C",
  1180. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1181. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  1182. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1183. 0x00, 0x01, 0x00),
  1184. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1185. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1186. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0a, 0x00, 0x01, 0x00,
  1187. 0x00, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  1188. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  1189. /*
  1190. * Service Attribute Request
  1191. *
  1192. * Verify the correct behaviour of the IUT when searching
  1193. * for existing Attribute, using invalid PDU-Size.
  1194. */
  1195. define_sa("BI-03-C",
  1196. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  1197. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  1198. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1199. 0x00, 0x01, 0x00),
  1200. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  1201. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  1202. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x11, 0x00, 0x01, 0x00,
  1203. 0x00, 0x00, 0x07, 0x35, 0x03, 0x09, 0x00, 0x01,
  1204. 0x00),
  1205. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  1206. /*
  1207. * Service Search Attribute Request
  1208. *
  1209. * Verify the correct behaviour of the IUT when searching
  1210. * for non-existing Service, existing Attribute using
  1211. * ServiceSearchAttributeRequest.
  1212. */
  1213. define_ssa("BV-01-C/UUID-16",
  1214. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1215. 0xff, 0xff, 0x00, 0x0a, 0x35, 0x03, 0x09, 0x00,
  1216. 0x01, 0x00),
  1217. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1218. 0x00, 0x00));
  1219. define_ssa("BV-01-C/UUID-32",
  1220. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1221. 0xff, 0xff, 0xff, 0xff, 0x00, 0x0a, 0x35, 0x03,
  1222. 0x09, 0x00, 0x01, 0x00),
  1223. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1224. 0x00, 0x00));
  1225. define_ssa("BV-01-C/UUID-128",
  1226. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1227. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1228. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1229. 0x00, 0x0a, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  1230. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1231. 0x00, 0x00));
  1232. /*
  1233. * Service Search Attribute Request
  1234. *
  1235. * Verify the correct behaviour of the IUT when searching
  1236. * for existing Service, non-existing Attribute using
  1237. * ServiceSearchAttributeRequest.
  1238. */
  1239. define_ssa("BV-02-C/UUID-16",
  1240. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1241. 0x11, 0x05, 0x00, 0x0a, 0x35, 0x03, 0x09, 0xff,
  1242. 0xff, 0x00),
  1243. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1244. 0x00, 0x00));
  1245. define_ssa("BV-02-C/UUID-32",
  1246. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1247. 0x00, 0x00, 0x11, 0x05, 0x00, 0x0a, 0x35, 0x03,
  1248. 0x09, 0xff, 0xff, 0x00),
  1249. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1250. 0x00, 0x00));
  1251. define_ssa("BV-02-C/UUID-128",
  1252. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1253. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1254. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1255. 0x00, 0x0a, 0x35, 0x03, 0x09, 0xff, 0xff, 0x00),
  1256. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1257. 0x00, 0x00));
  1258. /*
  1259. * Service Search Attribute Request
  1260. *
  1261. * Verify the correct behaviour of the IUT when searching
  1262. * for non-existing Service, non-existing Attribute using
  1263. * ServiceSearchAttributeRequest.
  1264. */
  1265. define_ssa("BV-03-C/UUID-16",
  1266. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1267. 0xff, 0xff, 0x00, 0x0a, 0x35, 0x03, 0x09, 0xff,
  1268. 0xff, 0x00),
  1269. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1270. 0x00, 0x00));
  1271. define_ssa("BV-03-C/UUID-32",
  1272. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1273. 0xff, 0xff, 0xff, 0xff, 0x00, 0x0a, 0x35, 0x03,
  1274. 0x09, 0xff, 0xff, 0x00),
  1275. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1276. 0x00, 0x00));
  1277. define_ssa("BV-03-C/UUID-128",
  1278. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1279. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1280. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  1281. 0x00, 0x0a, 0x35, 0x03, 0x09, 0xff, 0xff, 0x00),
  1282. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x05, 0x00, 0x02, 0x35,
  1283. 0x00, 0x00));
  1284. /*
  1285. * Service Search Attribute Request
  1286. *
  1287. * Verify the correct behaviour of the IUT when searching
  1288. * for existing Service(s) and Attribute(s) using
  1289. * ServiceSearchAttributeRequest.
  1290. */
  1291. define_ssa("BV-04-C/UUID-16",
  1292. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1293. 0x11, 0x05, 0x00, 0x11, 0x35, 0x03, 0x09, 0x00,
  1294. 0x01, 0x00),
  1295. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1296. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  1297. 0x19, 0x11, 0x05, 0x00));
  1298. define_ssa("BV-04-C/UUID-32",
  1299. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1300. 0x00, 0x00, 0x11, 0x05, 0x00, 0x11, 0x35, 0x03,
  1301. 0x09, 0x00, 0x01, 0x00),
  1302. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1303. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  1304. 0x19, 0x11, 0x05, 0x00));
  1305. define_ssa("BV-04-C/UUID-128",
  1306. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1307. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1308. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1309. 0x00, 0x11, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  1310. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1311. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  1312. 0x19, 0x11, 0x05, 0x00));
  1313. /*
  1314. * Service Search Attribute Request
  1315. *
  1316. * Verify the correct behaviour of the IUT when searching
  1317. * for existing Attributes, using Continuation State and
  1318. * ServiceSearchAttributeRequest.
  1319. */
  1320. define_ssa("BV-06-C/UUID-16",
  1321. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x10, 0x35, 0x03, 0x19,
  1322. 0x11, 0x05, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00,
  1323. 0x00, 0x09, 0x00, 0x01, 0x00),
  1324. raw_pdu_cont(8, 0x07, 0x00, 0x01, 0x00, 0x12, 0x00, 0x07, 0x35,
  1325. 0x12, 0x35, 0x10, 0x09, 0x00, 0x00, 0x08),
  1326. raw_pdu_cont(8, 0x06, 0x00, 0x02, 0x00, 0x18, 0x35, 0x03, 0x19,
  1327. 0x11, 0x05, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00,
  1328. 0x00, 0x09, 0x00, 0x01, 0x08),
  1329. raw_pdu_cont(8, 0x07, 0x00, 0x02, 0x00, 0x12, 0x00, 0x07, 0x0a,
  1330. 0x00, 0x01, 0x00, 0x01, 0x09, 0x00, 0x08),
  1331. raw_pdu_cont(8, 0x06, 0x00, 0x03, 0x00, 0x18, 0x35, 0x03, 0x19,
  1332. 0x11, 0x05, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00,
  1333. 0x00, 0x09, 0x00, 0x01, 0x08),
  1334. raw_pdu(0x07, 0x00, 0x03, 0x00, 0x09, 0x00, 0x06, 0x01,
  1335. 0x35, 0x03, 0x19, 0x11, 0x05, 0x00));
  1336. define_ssa("BV-06-C/UUID-32",
  1337. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x12, 0x35, 0x05, 0x1a,
  1338. 0x00, 0x00, 0x11, 0x05, 0x00, 0x07, 0x35, 0x06,
  1339. 0x09, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00),
  1340. raw_pdu_cont(8, 0x07, 0x00, 0x01, 0x00, 0x12, 0x00, 0x07, 0x35,
  1341. 0x12, 0x35, 0x10, 0x09, 0x00, 0x00, 0x08),
  1342. raw_pdu_cont(8, 0x06, 0x00, 0x02, 0x00, 0x1a, 0x35, 0x05, 0x1a,
  1343. 0x00, 0x00, 0x11, 0x05, 0x00, 0x07, 0x35, 0x06,
  1344. 0x09, 0x00, 0x00, 0x09, 0x00, 0x01, 0x08),
  1345. raw_pdu_cont(8, 0x07, 0x00, 0x02, 0x00, 0x12, 0x00, 0x07, 0x0a,
  1346. 0x00, 0x01, 0x00, 0x01, 0x09, 0x00, 0x08),
  1347. raw_pdu_cont(8, 0x06, 0x00, 0x03, 0x00, 0x1a, 0x35, 0x05, 0x1a,
  1348. 0x00, 0x00, 0x11, 0x05, 0x00, 0x07, 0x35, 0x06,
  1349. 0x09, 0x00, 0x00, 0x09, 0x00, 0x01, 0x08),
  1350. raw_pdu(0x07, 0x00, 0x03, 0x00, 0x09, 0x00, 0x06, 0x01,
  1351. 0x35, 0x03, 0x19, 0x11, 0x05, 0x00));
  1352. define_ssa("BV-06-C/UUID-128",
  1353. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1e, 0x35, 0x11, 0x1c,
  1354. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1355. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1356. 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00, 0x09,
  1357. 0x00, 0x01, 0x00),
  1358. raw_pdu_cont(8, 0x07, 0x00, 0x01, 0x00, 0x12, 0x00, 0x07, 0x35,
  1359. 0x12, 0x35, 0x10, 0x09, 0x00, 0x00, 0x08),
  1360. raw_pdu_cont(8, 0x06, 0x00, 0x02, 0x00, 0x26, 0x35, 0x11, 0x1c,
  1361. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1362. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1363. 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00, 0x09,
  1364. 0x00, 0x01, 0x08),
  1365. raw_pdu_cont(8, 0x07, 0x00, 0x02, 0x00, 0x12, 0x00, 0x07, 0x0a,
  1366. 0x00, 0x01, 0x00, 0x01, 0x09, 0x00, 0x08),
  1367. raw_pdu_cont(8, 0x06, 0x00, 0x03, 0x00, 0x26, 0x35, 0x11, 0x1c,
  1368. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1369. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1370. 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00, 0x09,
  1371. 0x00, 0x01, 0x08),
  1372. raw_pdu(0x07, 0x00, 0x03, 0x00, 0x09, 0x00, 0x06, 0x01,
  1373. 0x35, 0x03, 0x19, 0x11, 0x05, 0x00));
  1374. /*
  1375. * Service Search Attribute Request
  1376. *
  1377. * Verify the correct behaviour of the IUT when searching
  1378. * for existing Service(s) and Attribute ServiceRecordState
  1379. * using ServiceSearchAttributeRequest.
  1380. */
  1381. define_ssa("BV-07-C/UUID-16",
  1382. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1383. 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, 0x09, 0x00,
  1384. 0x02, 0x00),
  1385. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1386. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00,
  1387. 0x00, 0x12, 0x34, 0x00));
  1388. define_ssa("BV-07-C/UUID-32",
  1389. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1390. 0x00, 0x00, 0x11, 0x01, 0x00, 0x13, 0x35, 0x03,
  1391. 0x09, 0x00, 0x02, 0x00),
  1392. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1393. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00,
  1394. 0x00, 0x12, 0x34, 0x00));
  1395. define_ssa("BV-07-C/UUID-128",
  1396. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1397. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1398. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1399. 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, 0x02, 0x00),
  1400. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1401. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00,
  1402. 0x00, 0x12, 0x34, 0x00));
  1403. /*
  1404. * Service Search Attribute Request
  1405. *
  1406. * Verify the correct behaviour of the IUT when searching
  1407. * for existing Service(s) and Attribute ServiceDataBaseState
  1408. * using ServiceSearchAttributeRequest.
  1409. */
  1410. define_ssa("BV-08-C/UUID-16",
  1411. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1412. 0x10, 0x00, 0x00, 0x13, 0x35, 0x03, 0x09, 0x02,
  1413. 0x01, 0x00),
  1414. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1415. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49,
  1416. 0x6f, 0x06, 0x54, 0x00));
  1417. define_ssa("BV-08-C/UUID-32",
  1418. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1419. 0x00, 0x00, 0x10, 0x00, 0x00, 0x13, 0x35, 0x03,
  1420. 0x09, 0x02, 0x01, 0x00),
  1421. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1422. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49,
  1423. 0x6f, 0x06, 0x54, 0x00));
  1424. define_ssa("BV-08-C/UUID-128",
  1425. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1426. 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00,
  1427. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1428. 0x00, 0x13, 0x35, 0x03, 0x09, 0x02, 0x01, 0x00),
  1429. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1430. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49,
  1431. 0x6f, 0x06, 0x54, 0x00));
  1432. /*
  1433. * Service Search Attribute Request
  1434. *
  1435. * Verify the correct behaviour of the IUT when searching
  1436. * for existing Service(s) and Attribute ServiceInfoTimeToLive
  1437. * using ServiceSearchAttributeRequest.
  1438. */
  1439. define_ssa("BV-09-C/UUID-16",
  1440. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1441. 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, 0x09, 0x00,
  1442. 0x07, 0x00),
  1443. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1444. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00,
  1445. 0x00, 0xff, 0xff, 0x00));
  1446. define_ssa("BV-09-C/UUID-32",
  1447. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1448. 0x00, 0x00, 0x11, 0x01, 0x00, 0x13, 0x35, 0x03,
  1449. 0x09, 0x00, 0x07, 0x00),
  1450. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1451. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00,
  1452. 0x00, 0xff, 0xff, 0x00));
  1453. define_ssa("BV-09-C/UUID-128",
  1454. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1455. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1456. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1457. 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, 0x07, 0x00),
  1458. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1459. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00,
  1460. 0x00, 0xff, 0xff, 0x00));
  1461. /*
  1462. * Service Search Attribute Request
  1463. *
  1464. * Verify the correct behaviour of the IUT when searching
  1465. * for existing Service(s) and Attribute ServiceID using
  1466. * ServiceSearchAttributeRequest.
  1467. */
  1468. define_ssa("BV-10-C/UUID-16",
  1469. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1470. 0x11, 0x01, 0x00, 0x1e, 0x35, 0x03, 0x09, 0x00,
  1471. 0x03, 0x00),
  1472. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  1473. 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11,
  1474. 0x01, 0x00));
  1475. define_ssa("BV-10-C/UUID-32",
  1476. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1477. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1e, 0x35, 0x03,
  1478. 0x09, 0x00, 0x03, 0x00),
  1479. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  1480. 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11,
  1481. 0x01, 0x00));
  1482. define_ssa("BV-10-C/UUID-128",
  1483. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1484. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1485. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1486. 0x00, 0x1e, 0x35, 0x03, 0x09, 0x00, 0x03, 0x00),
  1487. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  1488. 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11,
  1489. 0x01, 0x00));
  1490. /*
  1491. * Service Search Attribute Request
  1492. *
  1493. * Verify the correct behaviour of the IUT when searching
  1494. * for existing Service(s) and Attribute ProtocolDescriptorList
  1495. * using ServiceSearchAttributeRequest.
  1496. */
  1497. define_ssa("BV-11-C/UUID-16",
  1498. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1499. 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  1500. 0x04, 0x00),
  1501. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35,
  1502. 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11,
  1503. 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19,
  1504. 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00,
  1505. 0x08, 0x00));
  1506. define_ssa("BV-11-C/UUID-32",
  1507. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1508. 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03,
  1509. 0x09, 0x00, 0x04, 0x00),
  1510. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35,
  1511. 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11,
  1512. 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19,
  1513. 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00,
  1514. 0x08, 0x00));
  1515. define_ssa("BV-11-C/UUID-128",
  1516. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1517. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1518. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1519. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x04, 0x00),
  1520. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35,
  1521. 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11,
  1522. 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19,
  1523. 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00,
  1524. 0x08, 0x00));
  1525. /*
  1526. * Service Search Attribute Request
  1527. *
  1528. * Verify the correct behaviour of the IUT when searching
  1529. * for existing Service(s) and Attribute BrowseGroupList
  1530. * using ServiceSearchAttributeRequest.
  1531. */
  1532. define_ssa("BV-12-C/UUID-16",
  1533. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1534. 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  1535. 0x05, 0x00),
  1536. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1537. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03,
  1538. 0x19, 0x10, 0x02, 0x00));
  1539. define_ssa("BV-12-C/UUID-32",
  1540. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1541. 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03,
  1542. 0x09, 0x00, 0x05, 0x00),
  1543. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1544. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03,
  1545. 0x19, 0x10, 0x02, 0x00));
  1546. define_ssa("BV-12-C/UUID-128",
  1547. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1548. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1549. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1550. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x05, 0x00),
  1551. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1552. 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03,
  1553. 0x19, 0x10, 0x02, 0x00));
  1554. /*
  1555. * Service Search Attribute Request
  1556. *
  1557. * Verify the correct behaviour of the IUT when searching
  1558. * for existing Service(s) and Attribute LanguageBaseAttributeIdList
  1559. * using ServiceSearchAttributeRequest.
  1560. */
  1561. define_ssa("BV-13-C/UUID-16",
  1562. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1563. 0x11, 0x01, 0x00, 0x18, 0x35, 0x03, 0x09, 0x00,
  1564. 0x06, 0x00),
  1565. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1566. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1567. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1568. 0x00, 0x00));
  1569. define_ssa("BV-13-C/UUID-32",
  1570. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1571. 0x00, 0x00, 0x11, 0x01, 0x00, 0x18, 0x35, 0x03,
  1572. 0x09, 0x00, 0x06, 0x00),
  1573. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1574. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1575. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1576. 0x00, 0x00));
  1577. define_ssa("BV-13-C/UUID-128",
  1578. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1579. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1580. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1581. 0x00, 0x18, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00),
  1582. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1583. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1584. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1585. 0x00, 0x00));
  1586. /*
  1587. * Service Search Attribute Request
  1588. *
  1589. * Verify the correct behaviour of the IUT when searching
  1590. * for existing Service(s) and Attribute ServiceAvailability
  1591. * using ServiceSearchAttributeRequest.
  1592. */
  1593. define_ssa("BV-14-C/UUID-16",
  1594. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1595. 0x11, 0x01, 0x00, 0x0f, 0x35, 0x03, 0x09, 0x00,
  1596. 0x08, 0x00),
  1597. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35,
  1598. 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff,
  1599. 0x00));
  1600. define_ssa("BV-14-C/UUID-32",
  1601. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1602. 0x00, 0x00, 0x11, 0x01, 0x00, 0x0f, 0x35, 0x03,
  1603. 0x09, 0x00, 0x08, 0x00),
  1604. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35,
  1605. 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff,
  1606. 0x00));
  1607. define_ssa("BV-14-C/UUID-128",
  1608. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1609. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1610. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1611. 0x00, 0x0f, 0x35, 0x03, 0x09, 0x00, 0x08, 0x00),
  1612. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35,
  1613. 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff,
  1614. 0x00));
  1615. /*
  1616. * Service Search Attribute Request
  1617. *
  1618. * Verify the correct behaviour of the IUT when searching
  1619. * for existing Service(s) and Attribute IconURL using
  1620. * ServiceSearchAttributeRequest.
  1621. */
  1622. define_ssa("BV-15-C/UUID-16",
  1623. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1624. 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00,
  1625. 0x0c, 0x00),
  1626. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1627. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15,
  1628. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1629. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1630. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1631. define_ssa("BV-15-C/UUID-32",
  1632. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1633. 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03,
  1634. 0x09, 0x00, 0x0c, 0x00),
  1635. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1636. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15,
  1637. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1638. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1639. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1640. define_ssa("BV-15-C/UUID-128",
  1641. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1642. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1643. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1644. 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0c, 0x00),
  1645. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1646. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15,
  1647. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1648. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1649. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1650. /*
  1651. * Service Search Attribute Request
  1652. *
  1653. * Verify the correct behaviour of the IUT when searching
  1654. * for existing Service(s) and Attribute ServiceName using
  1655. * ServiceSearchAttributeRequest.
  1656. */
  1657. define_ssa("BV-16-C/UUID-16",
  1658. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1659. 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00,
  1660. 0x06, 0x00),
  1661. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1662. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1663. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1664. 0x00, 0x00),
  1665. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1666. 0x11, 0x01, 0x00, 0x1d, 0x35, 0x03, 0x09, 0x01,
  1667. 0x00, 0x00),
  1668. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35,
  1669. 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b,
  1670. 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50,
  1671. 0x6f, 0x72, 0x74, 0x00));
  1672. define_ssa("BV-16-C/UUID-32",
  1673. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1674. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03,
  1675. 0x09, 0x00, 0x06, 0x00),
  1676. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1677. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1678. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1679. 0x00, 0x00),
  1680. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1681. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1d, 0x35, 0x03,
  1682. 0x09, 0x01, 0x00, 0x00),
  1683. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35,
  1684. 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b,
  1685. 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50,
  1686. 0x6f, 0x72, 0x74, 0x00));
  1687. define_ssa("BV-16-C/UUID-128",
  1688. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1689. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1690. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1691. 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00),
  1692. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1693. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1694. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1695. 0x00, 0x00),
  1696. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1697. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1698. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1699. 0x00, 0x1d, 0x35, 0x03, 0x09, 0x01, 0x00, 0x00),
  1700. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35,
  1701. 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b,
  1702. 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50,
  1703. 0x6f, 0x72, 0x74, 0x00));
  1704. /*
  1705. * Service Search Attribute Request
  1706. *
  1707. * Verify the correct behaviour of the IUT when searching
  1708. * for existing Service(s) and Attribute ServiceDescription
  1709. * using ServiceSearchAttributeRequest.
  1710. */
  1711. define_ssa("BV-17-C/UUID-16",
  1712. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1713. 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00,
  1714. 0x06, 0x00),
  1715. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1716. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1717. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1718. 0x00, 0x00),
  1719. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1720. 0x11, 0x01, 0x00, 0x1a, 0x35, 0x03, 0x09, 0x01,
  1721. 0x01, 0x00),
  1722. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35,
  1723. 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08,
  1724. 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74,
  1725. 0x00));
  1726. define_ssa("BV-17-C/UUID-32",
  1727. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1728. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03,
  1729. 0x09, 0x00, 0x06, 0x00),
  1730. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1731. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1732. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1733. 0x00, 0x00),
  1734. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1735. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1a, 0x35, 0x03,
  1736. 0x09, 0x01, 0x01, 0x00),
  1737. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35,
  1738. 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08,
  1739. 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74,
  1740. 0x00));
  1741. define_ssa("BV-17-C/UUID-128",
  1742. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1743. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1744. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1745. 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00),
  1746. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1747. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1748. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1749. 0x00, 0x00),
  1750. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1751. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1752. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1753. 0x00, 0x1a, 0x35, 0x03, 0x09, 0x01, 0x01, 0x00),
  1754. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35,
  1755. 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08,
  1756. 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74,
  1757. 0x00));
  1758. /*
  1759. * Service Search Attribute Request
  1760. *
  1761. * Verify the correct behaviour of the IUT when searching
  1762. * for existing Service(s) and Attribute ProviderName using
  1763. * ServiceSearchAttributeRequest.
  1764. */
  1765. define_ssa("BV-18-C/UUID-16",
  1766. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1767. 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00,
  1768. 0x06, 0x00),
  1769. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1770. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1771. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1772. 0x00, 0x00),
  1773. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1774. 0x11, 0x01, 0x00, 0x17, 0x35, 0x03, 0x09, 0x01,
  1775. 0x02, 0x00),
  1776. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35,
  1777. 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05,
  1778. 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00));
  1779. define_ssa("BV-18-C/UUID-32",
  1780. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1781. 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03,
  1782. 0x09, 0x00, 0x06, 0x00),
  1783. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1784. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1785. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1786. 0x00, 0x00),
  1787. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1788. 0x00, 0x00, 0x11, 0x01, 0x00, 0x17, 0x35, 0x03,
  1789. 0x09, 0x01, 0x02, 0x00),
  1790. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35,
  1791. 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05,
  1792. 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00));
  1793. define_ssa("BV-18-C/UUID-128",
  1794. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1795. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1796. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1797. 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00),
  1798. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35,
  1799. 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09,
  1800. 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01,
  1801. 0x00, 0x00),
  1802. raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1803. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1804. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1805. 0x00, 0x17, 0x35, 0x03, 0x09, 0x01, 0x02, 0x00),
  1806. raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35,
  1807. 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05,
  1808. 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00));
  1809. /*
  1810. * Service Search Attribute Request
  1811. *
  1812. * Verify the correct behaviour of the IUT when searching
  1813. * for existing Service(s) and Attribute VersionNumberList
  1814. * using ServiceSearchAttributeRequest.
  1815. */
  1816. define_ssa("BV-19-C/UUID-16",
  1817. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1818. 0x10, 0x00, 0x00, 0x12, 0x35, 0x03, 0x09, 0x02,
  1819. 0x00, 0x00),
  1820. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1821. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03,
  1822. 0x09, 0x01, 0x00, 0x00));
  1823. define_ssa("BV-19-C/UUID-32",
  1824. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1825. 0x00, 0x00, 0x10, 0x00, 0x00, 0x12, 0x35, 0x03,
  1826. 0x09, 0x02, 0x00, 0x00),
  1827. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1828. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03,
  1829. 0x09, 0x01, 0x00, 0x00));
  1830. define_ssa("BV-19-C/UUID-128",
  1831. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1832. 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00,
  1833. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1834. 0x00, 0x12, 0x35, 0x03, 0x09, 0x02, 0x00, 0x00),
  1835. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35,
  1836. 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03,
  1837. 0x09, 0x01, 0x00, 0x00));
  1838. /*
  1839. * Service Search Attribute Request
  1840. *
  1841. * Verify the correct behaviour of the IUT when searching for
  1842. * existing Service(s) and Attribute BluetoothProfileDescriptorList
  1843. * using ServiceSearchAttributeRequest.
  1844. */
  1845. define_ssa("BV-20-C/UUID-16",
  1846. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1847. 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  1848. 0x09, 0x00),
  1849. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35,
  1850. 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08,
  1851. 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00,
  1852. 0x00));
  1853. define_ssa("BV-20-C/UUID-32",
  1854. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1855. 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03,
  1856. 0x09, 0x00, 0x09, 0x00),
  1857. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35,
  1858. 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08,
  1859. 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00,
  1860. 0x00));
  1861. define_ssa("BV-20-C/UUID-128",
  1862. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1863. 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
  1864. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1865. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x09, 0x00),
  1866. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35,
  1867. 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08,
  1868. 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00,
  1869. 0x00));
  1870. /*
  1871. * Service Search Attribute Request
  1872. *
  1873. * Verify the correct behaviour of the IUT when searching
  1874. * for existing Service(s) and Attribute DocumentationURL
  1875. * using ServiceSearchAttributeRequest.
  1876. */
  1877. define_ssa("BV-21-C/UUID-16",
  1878. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1879. 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00,
  1880. 0x0a, 0x00),
  1881. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1882. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15,
  1883. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1884. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1885. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1886. define_ssa("BV-21-C/UUID-32",
  1887. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1888. 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03,
  1889. 0x09, 0x00, 0x0a, 0x00),
  1890. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1891. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15,
  1892. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1893. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1894. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1895. define_ssa("BV-21-C/UUID-128",
  1896. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1897. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1898. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1899. 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0a, 0x00),
  1900. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1901. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15,
  1902. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1903. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1904. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1905. /*
  1906. * Service Search Attribute Request
  1907. *
  1908. * Verify the correct behaviour of the IUT when searching
  1909. * for existing Service(s) and Attribute ClientExecutableURL
  1910. * using ServiceSearchAttributeRequest.
  1911. */
  1912. define_ssa("BV-22-C/UUID-16",
  1913. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1914. 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00,
  1915. 0x0b, 0x00),
  1916. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1917. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15,
  1918. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1919. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1920. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1921. define_ssa("BV-22-C/UUID-32",
  1922. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1923. 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03,
  1924. 0x09, 0x00, 0x0b, 0x00),
  1925. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1926. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15,
  1927. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1928. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1929. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1930. define_ssa("BV-22-C/UUID-128",
  1931. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1932. 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
  1933. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1934. 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0b, 0x00),
  1935. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35,
  1936. 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15,
  1937. 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77,
  1938. 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a,
  1939. 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00));
  1940. /*
  1941. * Service Search Attribute Request
  1942. *
  1943. * Verify the correct behaviour of the IUT when searching for
  1944. * existing Service(s) and Attribute AdditionalProtocolDescriptorList
  1945. * using ServiceSearchAttributeRequest.
  1946. */
  1947. define_ssa("BV-23-C/UUID-16",
  1948. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  1949. 0x11, 0x24, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  1950. 0x0d, 0x00),
  1951. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35,
  1952. 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f,
  1953. 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09,
  1954. 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00));
  1955. define_ssa("BV-23-C/UUID-32",
  1956. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  1957. 0x00, 0x00, 0x11, 0x24, 0xff, 0xff, 0x35, 0x03,
  1958. 0x09, 0x00, 0x0d, 0x00),
  1959. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35,
  1960. 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f,
  1961. 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09,
  1962. 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00));
  1963. define_ssa("BV-23-C/UUID-128",
  1964. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  1965. 0x00, 0x00, 0x11, 0x24, 0x00, 0x00, 0x10, 0x00,
  1966. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1967. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x0d, 0x00),
  1968. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35,
  1969. 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f,
  1970. 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09,
  1971. 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00));
  1972. /*
  1973. * Service Search Attribute Request
  1974. *
  1975. * Verify the correct behaviour of the IUT when searching
  1976. * for existing Attribute, using invalid request syntax,
  1977. * using the ServiceSearchAttributeRequest PDU.
  1978. */
  1979. define_ssa("BI-01-C/UUID-16",
  1980. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0b, 0x35, 0x03, 0x19,
  1981. 0x01, 0x00, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  1982. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  1983. define_ssa("BI-01-C/UUID-32",
  1984. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x05, 0x1a,
  1985. 0x00, 0x00, 0x01, 0x00, 0x35, 0x03, 0x09, 0x00,
  1986. 0x01, 0x00),
  1987. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  1988. define_ssa("BI-01-C/UUID-128",
  1989. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x19, 0x35, 0x11, 0x1c,
  1990. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  1991. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  1992. 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  1993. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03));
  1994. /*
  1995. * Service Search Attribute Request
  1996. *
  1997. * Verify the correct behaviour of the IUT when searching
  1998. * for existing Attribute, using invalid PDU-size, using the
  1999. * ServiceSearchAttributeRequest PDU.
  2000. */
  2001. define_ssa("BI-02-C/UUID-16",
  2002. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x12, 0x35, 0x03, 0x19,
  2003. 0x01, 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  2004. 0x01, 0x00),
  2005. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  2006. define_ssa("BI-02-C/UUID-32",
  2007. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x14, 0x35, 0x05, 0x1a,
  2008. 0x00, 0x00, 0x01, 0x00, 0xff, 0xff, 0x35, 0x03,
  2009. 0x09, 0x00, 0x01, 0x00),
  2010. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  2011. define_ssa("BI-02-C/UUID-128",
  2012. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x20, 0x35, 0x11, 0x1c,
  2013. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  2014. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2015. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  2016. raw_pdu(0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04));
  2017. /*
  2018. * Service Browse
  2019. *
  2020. * Verify that the IUT behave correct using SDP_ServiceSearchRequest
  2021. * and SDP_ServiceAttributeRequest for Service Browse.
  2022. */
  2023. define_brw("BV-01-C/UUID-16",
  2024. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  2025. 0x10, 0x02, 0xff, 0xff, 0x00),
  2026. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2027. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2028. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2029. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2030. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2031. 0x07, 0x00),
  2032. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2033. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2034. 0x00),
  2035. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2036. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2037. 0x01, 0x00),
  2038. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2039. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2040. 0x00),
  2041. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2042. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2043. 0x05, 0x00),
  2044. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2045. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2046. 0x00),
  2047. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2048. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2049. 0x24, 0x00),
  2050. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2051. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2052. 0x00),
  2053. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2054. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2055. 0x06, 0x00),
  2056. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2057. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2058. 0x00),
  2059. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2060. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2061. 0x06, 0x00),
  2062. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2063. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2064. 0x00),
  2065. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2066. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2067. 0x06, 0x00),
  2068. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2069. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2070. 0x00),
  2071. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2072. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2073. 0x06, 0x00),
  2074. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2075. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2076. 0x00),
  2077. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2078. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2079. 0x06, 0x00),
  2080. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  2081. 0x10, 0x01, 0xff, 0xff, 0x00),
  2082. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  2083. 0x01, 0x00, 0x00, 0x00, 0x01, 0x00),
  2084. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00,
  2085. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x02, 0x00,
  2086. 0x00),
  2087. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0b, 0x00, 0x08, 0x35,
  2088. 0x06, 0x09, 0x02, 0x00, 0x19, 0x10, 0x02, 0x00),
  2089. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x08, 0x35, 0x03, 0x19,
  2090. 0x10, 0x02, 0xff, 0xff, 0x00),
  2091. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2092. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2093. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2094. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2095. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2096. 0x07, 0x00),
  2097. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2098. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2099. 0x00),
  2100. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2101. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2102. 0x01, 0x00),
  2103. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2104. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2105. 0x00),
  2106. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2107. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2108. 0x05, 0x00),
  2109. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2110. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2111. 0x00),
  2112. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2113. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2114. 0x24, 0x00),
  2115. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2116. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2117. 0x00),
  2118. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2119. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2120. 0x06, 0x00),
  2121. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2122. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2123. 0x00),
  2124. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2125. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2126. 0x06, 0x00),
  2127. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2128. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2129. 0x00),
  2130. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2131. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2132. 0x06, 0x00),
  2133. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2134. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2135. 0x00),
  2136. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2137. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2138. 0x06, 0x00),
  2139. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2140. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2141. 0x00),
  2142. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2143. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2144. 0x06, 0x00));
  2145. define_brw("BV-01-C/UUID-32",
  2146. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  2147. 0x00, 0x00, 0x10, 0x02, 0xff, 0xff, 0x00),
  2148. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2149. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2150. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2151. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2152. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2153. 0x07, 0x00),
  2154. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2155. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2156. 0x00),
  2157. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2158. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2159. 0x01, 0x00),
  2160. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2161. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2162. 0x00),
  2163. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2164. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2165. 0x05, 0x00),
  2166. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2167. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2168. 0x00),
  2169. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2170. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2171. 0x24, 0x00),
  2172. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2173. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2174. 0x00),
  2175. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2176. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2177. 0x06, 0x00),
  2178. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2179. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2180. 0x00),
  2181. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2182. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2183. 0x06, 0x00),
  2184. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2185. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2186. 0x00),
  2187. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2188. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2189. 0x06, 0x00),
  2190. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2191. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2192. 0x00),
  2193. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2194. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2195. 0x06, 0x00),
  2196. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2197. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2198. 0x00),
  2199. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2200. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2201. 0x06, 0x00),
  2202. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  2203. 0x00, 0x00, 0x10, 0x01, 0xff, 0xff, 0x00),
  2204. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  2205. 0x01, 0x00, 0x00, 0x00, 0x01, 0x00),
  2206. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00,
  2207. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x02, 0x00,
  2208. 0x00),
  2209. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0b, 0x00, 0x08, 0x35,
  2210. 0x06, 0x09, 0x02, 0x00, 0x19, 0x10, 0x02, 0x00),
  2211. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x0a, 0x35, 0x05, 0x1a,
  2212. 0x00, 0x00, 0x10, 0x02, 0xff, 0xff, 0x00),
  2213. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2214. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2215. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2216. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2217. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2218. 0x07, 0x00),
  2219. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2220. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2221. 0x00),
  2222. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2223. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2224. 0x01, 0x00),
  2225. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2226. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2227. 0x00),
  2228. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2229. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2230. 0x05, 0x00),
  2231. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2232. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2233. 0x00),
  2234. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2235. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2236. 0x24, 0x00),
  2237. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2238. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2239. 0x00),
  2240. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2241. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2242. 0x06, 0x00),
  2243. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2244. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2245. 0x00),
  2246. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2247. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2248. 0x06, 0x00),
  2249. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2250. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2251. 0x00),
  2252. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2253. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2254. 0x06, 0x00),
  2255. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2256. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2257. 0x00),
  2258. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2259. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2260. 0x06, 0x00),
  2261. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2262. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2263. 0x00),
  2264. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2265. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2266. 0x06, 0x00));
  2267. define_brw("BV-01-C/UUID-128",
  2268. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  2269. 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x10, 0x00,
  2270. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2271. 0xff, 0xff, 0x00),
  2272. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2273. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2274. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2275. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2276. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2277. 0x07, 0x00),
  2278. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2279. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2280. 0x00),
  2281. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2282. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2283. 0x01, 0x00),
  2284. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2285. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2286. 0x00),
  2287. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2288. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2289. 0x05, 0x00),
  2290. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2291. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2292. 0x00),
  2293. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2294. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2295. 0x24, 0x00),
  2296. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2297. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2298. 0x00),
  2299. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2300. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2301. 0x06, 0x00),
  2302. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2303. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2304. 0x00),
  2305. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2306. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2307. 0x06, 0x00),
  2308. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2309. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2310. 0x00),
  2311. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2312. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2313. 0x06, 0x00),
  2314. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2315. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2316. 0x00),
  2317. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2318. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2319. 0x06, 0x00),
  2320. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2321. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2322. 0x00),
  2323. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2324. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2325. 0x06, 0x00),
  2326. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  2327. 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x00,
  2328. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2329. 0xff, 0xff, 0x00),
  2330. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  2331. 0x01, 0x00, 0x00, 0x00, 0x01, 0x00),
  2332. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00,
  2333. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x02, 0x00,
  2334. 0x00),
  2335. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0b, 0x00, 0x08, 0x35,
  2336. 0x06, 0x09, 0x02, 0x00, 0x19, 0x10, 0x02, 0x00),
  2337. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  2338. 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x10, 0x00,
  2339. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2340. 0xff, 0xff, 0x00),
  2341. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x25, 0x00, 0x08, 0x00,
  2342. 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
  2343. 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x00,
  2344. 0x03, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00,
  2345. 0x05, 0x00, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00,
  2346. 0x07, 0x00),
  2347. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2348. 0x00, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2349. 0x00),
  2350. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2351. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2352. 0x01, 0x00),
  2353. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2354. 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2355. 0x00),
  2356. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2357. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2358. 0x05, 0x00),
  2359. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2360. 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2361. 0x00),
  2362. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2363. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2364. 0x24, 0x00),
  2365. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2366. 0x03, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2367. 0x00),
  2368. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2369. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2370. 0x06, 0x00),
  2371. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2372. 0x04, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2373. 0x00),
  2374. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2375. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2376. 0x06, 0x00),
  2377. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2378. 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2379. 0x00),
  2380. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2381. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2382. 0x06, 0x00),
  2383. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2384. 0x06, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2385. 0x00),
  2386. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2387. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2388. 0x06, 0x00),
  2389. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00,
  2390. 0x07, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01,
  2391. 0x00),
  2392. raw_pdu(0x05, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2393. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2394. 0x06, 0x00));
  2395. /*
  2396. * Service Browse
  2397. *
  2398. * Verify that the IUT behave correct using
  2399. * SDP_ServiceSearchAttributeRequest for Service Browse.
  2400. */
  2401. define_brw("BV-02-C/UUID-16",
  2402. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  2403. 0x10, 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  2404. 0x01, 0x00),
  2405. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2406. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2407. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2408. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2409. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2410. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2411. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2412. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2413. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2414. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2415. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2416. 0x06, 0x00),
  2417. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  2418. 0x10, 0x01, 0xff, 0xff, 0x35, 0x03, 0x09, 0x02,
  2419. 0x00, 0x00),
  2420. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2421. 0x08, 0x35, 0x06, 0x09, 0x02, 0x00, 0x19, 0x10,
  2422. 0x02, 0x00),
  2423. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19,
  2424. 0x10, 0x02, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00,
  2425. 0x01, 0x00),
  2426. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2427. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2428. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2429. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2430. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2431. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2432. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2433. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2434. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2435. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2436. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2437. 0x06, 0x00));
  2438. define_brw("BV-02-C/UUID-32",
  2439. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  2440. 0x00, 0x00, 0x10, 0x02, 0xff, 0xff, 0x35, 0x03,
  2441. 0x09, 0x00, 0x01, 0x00),
  2442. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2443. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2444. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2445. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2446. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2447. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2448. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2449. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2450. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2451. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2452. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2453. 0x06, 0x00),
  2454. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  2455. 0x00, 0x00, 0x10, 0x01, 0xff, 0xff, 0x35, 0x03,
  2456. 0x09, 0x02, 0x00, 0x00),
  2457. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2458. 0x08, 0x35, 0x06, 0x09, 0x02, 0x00, 0x19, 0x10,
  2459. 0x02, 0x00),
  2460. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a,
  2461. 0x00, 0x00, 0x10, 0x02, 0xff, 0xff, 0x35, 0x03,
  2462. 0x09, 0x00, 0x01, 0x00),
  2463. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2464. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2465. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2466. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2467. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2468. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2469. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2470. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2471. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2472. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2473. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2474. 0x06, 0x00));
  2475. define_brw("BV-02-C/UUID-128",
  2476. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  2477. 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x10, 0x00,
  2478. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2479. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  2480. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2481. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2482. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2483. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2484. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2485. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2486. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2487. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2488. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2489. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2490. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2491. 0x06, 0x00),
  2492. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  2493. 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x00,
  2494. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2495. 0xff, 0xff, 0x35, 0x03, 0x09, 0x02, 0x00, 0x00),
  2496. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35,
  2497. 0x08, 0x35, 0x06, 0x09, 0x02, 0x00, 0x19, 0x10,
  2498. 0x02, 0x00),
  2499. raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c,
  2500. 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x10, 0x00,
  2501. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2502. 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00),
  2503. raw_pdu(0x07, 0x00, 0x01, 0x00, 0x55, 0x00, 0x52, 0x35,
  2504. 0x50, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2505. 0x19, 0x11, 0x01, 0x35, 0x08, 0x09, 0x00, 0x01,
  2506. 0x35, 0x03, 0x19, 0x11, 0x05, 0x35, 0x08, 0x09,
  2507. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x24, 0x35,
  2508. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2509. 0x06, 0x35, 0x08, 0x09, 0x00, 0x01, 0x35, 0x03,
  2510. 0x19, 0x11, 0x06, 0x35, 0x08, 0x09, 0x00, 0x01,
  2511. 0x35, 0x03, 0x19, 0x11, 0x06, 0x35, 0x08, 0x09,
  2512. 0x00, 0x01, 0x35, 0x03, 0x19, 0x11, 0x06, 0x35,
  2513. 0x08, 0x09, 0x00, 0x01, 0x35, 0x03, 0x19, 0x11,
  2514. 0x06, 0x00));
  2515. /*
  2516. * SDP Data Element (DE) tests
  2517. *
  2518. * Test extraction of valid DEs supported by sdp_extract_attr().
  2519. */
  2520. define_test_de_attr("TEXT_STR8/empty",
  2521. raw_data(0x25, 0x00),
  2522. exp_data(SDP_TEXT_STR8, str, ""));
  2523. define_test_de_attr("TEXT_STR8",
  2524. raw_data(0x25, 0x04, 0x41, 0x42, 0x43, 0x44),
  2525. exp_data(SDP_TEXT_STR8, str, "ABCD"));
  2526. define_test_de_attr("TEXT_STR16",
  2527. raw_data(0x26, 0x00, 0x04, 0x41, 0x42, 0x43, 0x44),
  2528. exp_data(SDP_TEXT_STR16, str, "ABCD"));
  2529. define_test_de_attr("URL_STR8",
  2530. raw_data(0x45, 0x15, 0x68, 0x74, 0x74, 0x70, 0x3a,
  2531. 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x62, 0x6c,
  2532. 0x75, 0x65, 0x7a, 0x2e, 0x6f, 0x72, 0x67,
  2533. 0x2f),
  2534. exp_data(SDP_URL_STR8, str, "http://www.bluez.org/"));
  2535. define_test_de_attr("URL_STR16",
  2536. raw_data(0x46, 0x00, 0x15, 0x68, 0x74, 0x74, 0x70,
  2537. 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x62,
  2538. 0x6c, 0x75, 0x65, 0x7a, 0x2e, 0x6f, 0x72, 0x67,
  2539. 0x2f),
  2540. exp_data(SDP_URL_STR16, str, "http://www.bluez.org/"));
  2541. define_test_de_attr("NIL",
  2542. raw_data(0x00),
  2543. exp_data(SDP_DATA_NIL, uint8, 0));
  2544. define_test_de_attr("UINT8",
  2545. raw_data(0x08, 0xff),
  2546. exp_data(SDP_UINT8, uint8, UINT8_MAX));
  2547. define_test_de_attr("INT8",
  2548. raw_data(0x10, 0x80),
  2549. exp_data(SDP_INT8, int8, INT8_MIN));
  2550. define_test_de_attr("BOOL",
  2551. raw_data(0x28, 0x01),
  2552. exp_data(SDP_BOOL, int8, 1));
  2553. define_test_de_attr("UINT16",
  2554. raw_data(0x09, 0xff, 0xff),
  2555. exp_data(SDP_UINT16, uint16, UINT16_MAX));
  2556. define_test_de_attr("INT16",
  2557. raw_data(0x11, 0x80, 0x00),
  2558. exp_data(SDP_INT16, int16, INT16_MIN));
  2559. define_test_de_attr("UINT32",
  2560. raw_data(0x0A, 0xff, 0xff, 0xff, 0xff),
  2561. exp_data(SDP_UINT32, uint32, UINT32_MAX));
  2562. define_test_de_attr("INT32",
  2563. raw_data(0x12, 0x80, 0x00, 0x00, 0x00),
  2564. exp_data(SDP_INT32, int32, INT32_MIN));
  2565. define_test_de_attr("UINT64",
  2566. raw_data(0x0B, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2567. 0xff),
  2568. exp_data(SDP_UINT64, uint64, UINT64_MAX));
  2569. define_test_de_attr("INT64",
  2570. raw_data(0x13, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2571. 0x00),
  2572. exp_data(SDP_INT64, int64, INT64_MIN));
  2573. /* UINT128/INT128 are just byte arrays parsed as uint128_t */
  2574. define_test_de_attr("UINT128",
  2575. raw_data(0x0C, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2576. 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2577. 0xff, 0xff, 0xff),
  2578. exp_data(SDP_UINT128, uint128,
  2579. build_u128(0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  2580. 0xff, 0xff, 0xff, 0xff, 0xff,
  2581. 0xff, 0xff, 0xff, 0xff, 0xff)));
  2582. define_test_de_attr("INT128",
  2583. raw_data(0x14, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2584. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2585. 0x00, 0x00, 0x00),
  2586. exp_data(SDP_INT128, uint128,
  2587. build_u128(0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
  2588. 0x00, 0x00, 0x00, 0x00, 0x00,
  2589. 0x00, 0x00, 0x00, 0x00, 0x00)));
  2590. /*
  2591. * Service Attribute Request
  2592. *
  2593. * Verify the correct behaviour of the IUT when searching
  2594. * for existing Attribute, using invalid continuation state.
  2595. */
  2596. define_rob("BI-01-C",
  2597. raw_pdu(0x02, 0x00, 0x01, 0x00, 0x16, 0x35, 0x11, 0x1c,
  2598. 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00,
  2599. 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
  2600. 0x00, 0x01, 0x00),
  2601. raw_pdu(0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0x01, 0x00,
  2602. 0x01, 0x00, 0x01, 0x00, 0x00, 0x00),
  2603. raw_pdu(0x04, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x01, 0x00,
  2604. 0x00, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00, 0x00,
  2605. 0x09, 0x00, 0x01, 0x00),
  2606. raw_pdu_cont(8, 0x05, 0x00, 0x01, 0x00, 0x12, 0x00, 0x07, 0x35,
  2607. 0x10, 0x09, 0x00, 0x00, 0x0a, 0x00, 0x08),
  2608. raw_pdu_cont(0xffff, 0x04, 0x00, 0x02, 0x00, 0x17, 0x00, 0x01,
  2609. 0x00, 0x00, 0x00, 0x07, 0x35, 0x06, 0x09, 0x00,
  2610. 0x00, 0x09, 0x00, 0x01, 0x08),
  2611. raw_pdu(0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x05));
  2612. return tester_run();
  2613. }