test-hog.c 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2015 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #ifdef HAVE_CONFIG_H
  11. #include <config.h>
  12. #endif
  13. #define _GNU_SOURCE
  14. #include <unistd.h>
  15. #include <string.h>
  16. #include <sys/socket.h>
  17. #include <fcntl.h>
  18. #include <glib.h>
  19. #include "lib/bluetooth.h"
  20. #include "lib/uuid.h"
  21. #include "src/shared/util.h"
  22. #include "src/shared/tester.h"
  23. #include "src/shared/queue.h"
  24. #include "src/shared/att.h"
  25. #include "src/shared/gatt-db.h"
  26. #include "attrib/gattrib.h"
  27. #include "profiles/input/hog-lib.h"
  28. struct test_pdu {
  29. bool valid;
  30. const uint8_t *data;
  31. size_t size;
  32. };
  33. struct test_data {
  34. char *test_name;
  35. struct test_pdu *pdu_list;
  36. };
  37. struct context {
  38. GAttrib *attrib;
  39. struct bt_hog *hog;
  40. guint source;
  41. guint process;
  42. int fd;
  43. unsigned int pdu_offset;
  44. const struct test_data *data;
  45. };
  46. #define data(args...) ((const unsigned char[]) { args })
  47. #define raw_pdu(args...) \
  48. { \
  49. .valid = true, \
  50. .data = g_memdup(data(args), sizeof(data(args))), \
  51. .size = sizeof(data(args)), \
  52. }
  53. #define false_pdu() \
  54. { \
  55. .valid = false, \
  56. }
  57. #define define_test(name, function, args...) \
  58. do { \
  59. const struct test_pdu pdus[] = { \
  60. args, { } \
  61. }; \
  62. static struct test_data data; \
  63. data.test_name = g_strdup(name); \
  64. data.pdu_list = g_memdup(pdus, sizeof(pdus)); \
  65. tester_add(name, &data, NULL, function, NULL); \
  66. } while (0)
  67. static void test_debug(const char *str, void *user_data)
  68. {
  69. const char *prefix = user_data;
  70. tester_debug("%s%s", prefix, str);
  71. }
  72. static gboolean context_quit(gpointer user_data)
  73. {
  74. struct context *context = user_data;
  75. if (context->process > 0)
  76. g_source_remove(context->process);
  77. if (context->source > 0)
  78. g_source_remove(context->source);
  79. bt_hog_unref(context->hog);
  80. g_attrib_unref(context->attrib);
  81. g_free(context);
  82. tester_test_passed();
  83. return FALSE;
  84. }
  85. static gboolean send_pdu(gpointer user_data)
  86. {
  87. struct context *context = user_data;
  88. const struct test_pdu *pdu;
  89. ssize_t len;
  90. pdu = &context->data->pdu_list[context->pdu_offset++];
  91. len = write(context->fd, pdu->data, pdu->size);
  92. util_hexdump('<', pdu->data, len, test_debug, "hog: ");
  93. g_assert_cmpint(len, ==, pdu->size);
  94. context->process = 0;
  95. if (!context->data->pdu_list[context->pdu_offset].valid)
  96. context_quit(context);
  97. return FALSE;
  98. }
  99. static gboolean test_handler(GIOChannel *channel, GIOCondition cond,
  100. gpointer user_data)
  101. {
  102. struct context *context = user_data;
  103. unsigned char buf[512];
  104. const struct test_pdu *pdu;
  105. ssize_t len;
  106. int fd;
  107. pdu = &context->data->pdu_list[context->pdu_offset++];
  108. if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) {
  109. context->source = 0;
  110. g_print("%s: cond %x\n", __func__, cond);
  111. return FALSE;
  112. }
  113. fd = g_io_channel_unix_get_fd(channel);
  114. len = read(fd, buf, sizeof(buf));
  115. g_assert(len > 0);
  116. util_hexdump('>', buf, len, test_debug, "hog: ");
  117. g_assert_cmpint(len, ==, pdu->size);
  118. g_assert(memcmp(buf, pdu->data, pdu->size) == 0);
  119. context->process = g_idle_add(send_pdu, context);
  120. return TRUE;
  121. }
  122. static struct context *create_context(gconstpointer data)
  123. {
  124. struct context *context;
  125. GIOChannel *channel, *att_io;
  126. int err, sv[2], fd;
  127. char name[] = "bluez-hog";
  128. uint16_t vendor = 0x0002;
  129. uint16_t product = 0x0001;
  130. uint16_t version = 0x0001;
  131. context = g_new0(struct context, 1);
  132. err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv);
  133. g_assert(err == 0);
  134. att_io = g_io_channel_unix_new(sv[0]);
  135. g_io_channel_set_close_on_unref(att_io, TRUE);
  136. context->attrib = g_attrib_new(att_io, 23, false);
  137. g_assert(context->attrib);
  138. g_io_channel_unref(att_io);
  139. fd = open("/dev/null", O_WRONLY | O_CLOEXEC);
  140. g_assert(fd > 0);
  141. context->hog = bt_hog_new(fd, name, vendor, product, version, NULL);
  142. g_assert(context->hog);
  143. channel = g_io_channel_unix_new(sv[1]);
  144. g_io_channel_set_close_on_unref(channel, TRUE);
  145. g_io_channel_set_encoding(channel, NULL, NULL);
  146. g_io_channel_set_buffered(channel, FALSE);
  147. context->source = g_io_add_watch(channel,
  148. G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
  149. test_handler, context);
  150. g_assert(context->source > 0);
  151. g_io_channel_unref(channel);
  152. context->fd = sv[1];
  153. context->data = data;
  154. return context;
  155. }
  156. static void test_hog(gconstpointer data)
  157. {
  158. struct context *context = create_context(data);
  159. g_assert(bt_hog_attach(context->hog, context->attrib));
  160. }
  161. int main(int argc, char *argv[])
  162. {
  163. tester_init(&argc, &argv);
  164. define_test("/TP/HGRF/RH/BV-01-I", test_hog,
  165. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  166. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12,
  167. 0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18),
  168. raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28),
  169. raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a),
  170. raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28),
  171. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00,
  172. 0x4b, 0x2a),
  173. raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28),
  174. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  175. raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28),
  176. raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
  177. raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28),
  178. raw_pdu(0x09, 0x07, 0x07, 0x00, 0x02, 0x08, 0x00,
  179. 0x4b, 0x2a),
  180. raw_pdu(0x0a, 0x04, 0x00),
  181. raw_pdu(0x0b, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  182. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  183. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
  184. 0x15, 0x16),
  185. raw_pdu(0x0c, 0x04, 0x00, 0x16, 0x00),
  186. raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  187. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  188. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
  189. 0x15, 0x16),
  190. raw_pdu(0x0c, 0x04, 0x00, 0x2c, 0x00),
  191. raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  192. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  193. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13),
  194. raw_pdu(0x0a, 0x08, 0x00),
  195. raw_pdu(0x0b, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  196. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  197. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
  198. 0x15, 0x16),
  199. raw_pdu(0x0c, 0x08, 0x00, 0x16, 0x00),
  200. raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  201. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  202. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
  203. 0x15, 0x16),
  204. raw_pdu(0x0c, 0x08, 0x00, 0x2c, 0x00),
  205. raw_pdu(0x0d, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
  206. 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,
  207. 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13));
  208. define_test("/TP/HGRF/RH/BV-08-I", test_hog,
  209. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  210. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12,
  211. 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18),
  212. raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28),
  213. raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a),
  214. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28),
  215. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x0a, 0x04, 0x00,
  216. 0x4d, 0x2a),
  217. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28),
  218. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  219. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28),
  220. raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a),
  221. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28),
  222. raw_pdu(0x09, 0x07, 0x08, 0x00, 0x0a, 0x09, 0x00,
  223. 0x4d, 0x2a),
  224. raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28),
  225. raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a),
  226. raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28),
  227. raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a),
  228. raw_pdu(0x0a, 0x04, 0x00),
  229. raw_pdu(0x0b, 0xee, 0xee, 0xff, 0xff),
  230. raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00),
  231. raw_pdu(0x05, 0x01, 0x05, 0x00, 0x08, 0x29),
  232. raw_pdu(0x0a, 0x09, 0x00),
  233. raw_pdu(0x0b, 0xff, 0xff, 0xee, 0xee),
  234. raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00),
  235. raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x08, 0x29),
  236. raw_pdu(0x0a, 0x05, 0x00),
  237. raw_pdu(0x0b, 0x01, 0x03),
  238. raw_pdu(0x0a, 0x0a, 0x00),
  239. raw_pdu(0x0b, 0x02, 0x03));
  240. define_test("/TP/HGRF/RH/BV-09-I", test_hog,
  241. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  242. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12,
  243. 0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18),
  244. raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28),
  245. raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a),
  246. raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28),
  247. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00,
  248. 0x4a, 0x2a),
  249. raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28),
  250. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  251. raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28),
  252. raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
  253. raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28),
  254. raw_pdu(0x09, 0x07, 0x07, 0x00, 0x02, 0x08, 0x00,
  255. 0x4a, 0x2a),
  256. raw_pdu(0x0a, 0x04, 0x00),
  257. raw_pdu(0x0b, 0x01, 0x11, 0x00, 0x01),
  258. raw_pdu(0x0a, 0x08, 0x00),
  259. raw_pdu(0x0b, 0x01, 0x11, 0x00, 0x01));
  260. define_test("/TP/HGRF/RH/BV-06-I", test_hog,
  261. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  262. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12,
  263. 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18),
  264. raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28),
  265. raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a),
  266. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28),
  267. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x0a, 0x04, 0x00,
  268. 0x4d, 0x2a),
  269. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28),
  270. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  271. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28),
  272. raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a),
  273. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28),
  274. raw_pdu(0x09, 0x07, 0x08, 0x00, 0x0a, 0x09, 0x00,
  275. 0x4d, 0x2a),
  276. raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28),
  277. raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
  278. raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28),
  279. raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a),
  280. raw_pdu(0x0a, 0x04, 0x00),
  281. raw_pdu(0x0b, 0xee, 0xee, 0xff, 0xff),
  282. raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00),
  283. raw_pdu(0x05, 0x01, 0x05, 0x00, 0x08, 0x29),
  284. raw_pdu(0x0a, 0x09, 0x00),
  285. raw_pdu(0x0b, 0xff, 0xff, 0xee, 0xee),
  286. raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00),
  287. raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x08, 0x29),
  288. raw_pdu(0x0a, 0x05, 0x00),
  289. raw_pdu(0x0b, 0x01, 0x02),
  290. raw_pdu(0x0a, 0x0a, 0x00),
  291. raw_pdu(0x0b, 0x02, 0x02));
  292. define_test("/TP/HGCF/RH/BV-01-I", test_hog,
  293. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  294. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x06, 0x00, 0x12,
  295. 0x18, 0x07, 0x00, 0x0c, 0x00, 0x12, 0x18),
  296. raw_pdu(0x10, 0x0d, 0x00, 0xff, 0xff, 0x00, 0x28),
  297. raw_pdu(0x01, 0x10, 0x0d, 0x00, 0x0a),
  298. raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x03, 0x28),
  299. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x1a, 0x04, 0x00,
  300. 0x4d, 0x2a),
  301. raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x02, 0x28),
  302. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  303. raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x02, 0x28),
  304. raw_pdu(0x01, 0x08, 0x07, 0x00, 0x0a),
  305. raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x03, 0x28),
  306. raw_pdu(0x09, 0x07, 0x09, 0x00, 0x1a, 0x0a, 0x00,
  307. 0x4d, 0x2a),
  308. raw_pdu(0x08, 0x04, 0x00, 0x06, 0x00, 0x03, 0x28),
  309. raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a),
  310. raw_pdu(0x08, 0x0a, 0x00, 0x0c, 0x00, 0x03, 0x28),
  311. raw_pdu(0x01, 0x08, 0x0a, 0x00, 0x0a),
  312. raw_pdu(0x0a, 0x04, 0x00),
  313. raw_pdu(0x0b, 0xed, 0x00),
  314. raw_pdu(0x04, 0x05, 0x00, 0x06, 0x00),
  315. raw_pdu(0x05, 0x01, 0x05, 0x00, 0x02, 0x29,
  316. 0x06, 0x00, 0x08, 0x29),
  317. raw_pdu(0x0a, 0x0a, 0x00),
  318. raw_pdu(0x0b, 0xed, 0x00),
  319. raw_pdu(0x04, 0x0b, 0x00, 0x0c, 0x00),
  320. raw_pdu(0x05, 0x01, 0x0b, 0x00, 0x02, 0x29,
  321. 0x0c, 0x00, 0x08, 0x29),
  322. raw_pdu(0x0a, 0x06, 0x00),
  323. raw_pdu(0x0b, 0x01, 0x01),
  324. raw_pdu(0x0a, 0x0c, 0x00),
  325. raw_pdu(0x0b, 0x02, 0x01),
  326. raw_pdu(0x0a, 0x05, 0x00),
  327. raw_pdu(0x0b, 0x00, 0x00),
  328. raw_pdu(0x0a, 0x0b, 0x00),
  329. raw_pdu(0x0b, 0x00, 0x00),
  330. raw_pdu(0x12, 0x05, 0x00, 0x01, 0x00),
  331. raw_pdu(0x13),
  332. raw_pdu(0x12, 0x0b, 0x00, 0x01, 0x00),
  333. raw_pdu(0x13));
  334. define_test("/TP/HGRF/RH/BV-02-I", test_hog,
  335. raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
  336. raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12,
  337. 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18),
  338. raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28),
  339. raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a),
  340. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28),
  341. raw_pdu(0x09, 0x07, 0x03, 0x00, 0x02, 0x04, 0x00,
  342. 0x4b, 0x2a),
  343. raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28),
  344. raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
  345. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28),
  346. raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a),
  347. raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28),
  348. raw_pdu(0x09, 0x07, 0x08, 0x00, 0x02, 0x09, 0x00,
  349. 0x4b, 0x2a),
  350. raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28),
  351. raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a),
  352. raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28),
  353. raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a),
  354. raw_pdu(0x0a, 0x04, 0x00),
  355. raw_pdu(0x0b, 0x01, 0x02, 0x03),
  356. raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00),
  357. raw_pdu(0x05, 0x01, 0x05, 0x00, 0x07, 0x29),
  358. raw_pdu(0x0a, 0x09, 0x00),
  359. raw_pdu(0x0b, 0x01, 0x02, 0x03),
  360. raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00),
  361. raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x07, 0x29),
  362. raw_pdu(0x0a, 0x05, 0x00),
  363. raw_pdu(0x0b, 0x19, 0x2a),
  364. raw_pdu(0x0a, 0x0a, 0x00),
  365. raw_pdu(0x0b, 0x19, 0x2a));
  366. return tester_run();
  367. }