From 56e07cd72a1817cce7274410e2264d46728ee23a Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 7 Jan 2013 00:24:01 -0800 Subject: [PATCH] unit: Add SDP Service Search Attribute Requests attribute responses --- unit/test-sdp.c | 615 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 615 insertions(+) diff --git a/unit/test-sdp.c b/unit/test-sdp.c index 284d01c82..45cb39eae 100644 --- a/unit/test-sdp.c +++ b/unit/test-sdp.c @@ -1550,6 +1550,621 @@ int main(int argc, char *argv[]) raw_pdu(0x07, 0x00, 0x03, 0x00, 0x09, 0x00, 0x06, 0x01, 0x35, 0x03, 0x19, 0x11, 0x05, 0x00)); + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceRecordState + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-07-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, + 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00, + 0x00, 0x12, 0x34, 0x00)); + define_ssa("BV-07-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, + 0x09, 0x00, 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00, + 0x00, 0x12, 0x34, 0x00)); + define_ssa("BV-07-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x02, 0x0a, 0x00, + 0x00, 0x12, 0x34, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceDataBaseState + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-08-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x10, 0x00, 0x00, 0x13, 0x35, 0x03, 0x09, 0x02, + 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49, + 0x6f, 0x06, 0x54, 0x00)); + define_ssa("BV-08-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x10, 0x00, 0x00, 0x13, 0x35, 0x03, + 0x09, 0x02, 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49, + 0x6f, 0x06, 0x54, 0x00)); + define_ssa("BV-08-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x13, 0x35, 0x03, 0x09, 0x02, 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x01, 0x0a, 0x49, + 0x6f, 0x06, 0x54, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceInfoTimeToLive + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-09-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, + 0x07, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00, + 0x00, 0xff, 0xff, 0x00)); + define_ssa("BV-09-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x13, 0x35, 0x03, + 0x09, 0x00, 0x07, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00, + 0x00, 0xff, 0xff, 0x00)); + define_ssa("BV-09-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x13, 0x35, 0x03, 0x09, 0x00, 0x07, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x07, 0x0a, 0x00, + 0x00, 0xff, 0xff, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceID using + * ServiceSearchAttributeRequest. + */ + define_ssa("BV-10-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1e, 0x35, 0x03, 0x09, 0x00, + 0x03, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35, + 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11, + 0x01, 0x00)); + define_ssa("BV-10-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1e, 0x35, 0x03, + 0x09, 0x00, 0x03, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35, + 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11, + 0x01, 0x00)); + define_ssa("BV-10-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1e, 0x35, 0x03, 0x09, 0x00, 0x03, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0d, 0x00, 0x0a, 0x35, + 0x08, 0x35, 0x06, 0x09, 0x00, 0x03, 0x19, 0x11, + 0x01, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ProtocolDescriptorList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-11-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, + 0x04, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35, + 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11, + 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19, + 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00, + 0x08, 0x00)); + define_ssa("BV-11-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, + 0x09, 0x00, 0x04, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35, + 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11, + 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19, + 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00, + 0x08, 0x00)); + define_ssa("BV-11-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x04, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1d, 0x00, 0x1a, 0x35, + 0x18, 0x35, 0x16, 0x09, 0x00, 0x04, 0x35, 0x11, + 0x35, 0x03, 0x19, 0x01, 0x00, 0x35, 0x05, 0x19, + 0x00, 0x03, 0x08, 0x09, 0x35, 0x03, 0x19, 0x00, + 0x08, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute BrowseGroupList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-12-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, + 0x05, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03, + 0x19, 0x10, 0x02, 0x00)); + define_ssa("BV-12-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, + 0x09, 0x00, 0x05, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03, + 0x19, 0x10, 0x02, 0x00)); + define_ssa("BV-12-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x05, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x00, 0x05, 0x35, 0x03, + 0x19, 0x10, 0x02, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute LanguageBaseAttributeIdList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-13-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x18, 0x35, 0x03, 0x09, 0x00, + 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00)); + define_ssa("BV-13-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x18, 0x35, 0x03, + 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00)); + define_ssa("BV-13-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x18, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceAvailability + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-14-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x0f, 0x35, 0x03, 0x09, 0x00, + 0x08, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35, + 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff, + 0x00)); + define_ssa("BV-14-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x0f, 0x35, 0x03, + 0x09, 0x00, 0x08, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35, + 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff, + 0x00)); + define_ssa("BV-14-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x0f, 0x35, 0x03, 0x09, 0x00, 0x08, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x09, 0x35, + 0x07, 0x35, 0x05, 0x09, 0x00, 0x08, 0x08, 0xff, + 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute IconURL using + * ServiceSearchAttributeRequest. + */ + define_ssa("BV-15-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, + 0x0c, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-15-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, + 0x09, 0x00, 0x0c, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-15-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0c, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0c, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceName using + * ServiceSearchAttributeRequest. + */ + define_ssa("BV-16-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, + 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1d, 0x35, 0x03, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35, + 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b, + 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50, + 0x6f, 0x72, 0x74, 0x00)); + define_ssa("BV-16-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, + 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1d, 0x35, 0x03, + 0x09, 0x01, 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35, + 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b, + 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50, + 0x6f, 0x72, 0x74, 0x00)); + define_ssa("BV-16-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1d, 0x35, 0x03, 0x09, 0x01, 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x17, 0x00, 0x14, 0x35, + 0x12, 0x35, 0x10, 0x09, 0x01, 0x00, 0x25, 0x0b, + 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x50, + 0x6f, 0x72, 0x74, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ServiceDescription + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-17-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, + 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1a, 0x35, 0x03, 0x09, 0x01, + 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08, + 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74, + 0x00)); + define_ssa("BV-17-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, + 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1a, 0x35, 0x03, + 0x09, 0x01, 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08, + 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74, + 0x00)); + define_ssa("BV-17-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1a, 0x35, 0x03, 0x09, 0x01, 0x01, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x01, 0x01, 0x25, 0x08, + 0x43, 0x4f, 0x4d, 0x20, 0x50, 0x6f, 0x72, 0x74, + 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ProviderName using + * ServiceSearchAttributeRequest. + */ + define_ssa("BV-18-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, + 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x17, 0x35, 0x03, 0x09, 0x01, + 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35, + 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05, + 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00)); + define_ssa("BV-18-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x1b, 0x35, 0x03, + 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x17, 0x35, 0x03, + 0x09, 0x01, 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35, + 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05, + 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00)); + define_ssa("BV-18-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x1b, 0x35, 0x03, 0x09, 0x00, 0x06, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x15, 0x00, 0x12, 0x35, + 0x10, 0x35, 0x0e, 0x09, 0x00, 0x06, 0x35, 0x09, + 0x09, 0x65, 0x6e, 0x09, 0x00, 0x6a, 0x09, 0x01, + 0x00, 0x00), + raw_pdu(0x06, 0x00, 0x02, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x17, 0x35, 0x03, 0x09, 0x01, 0x02, 0x00), + raw_pdu(0x07, 0x00, 0x02, 0x00, 0x11, 0x00, 0x0e, 0x35, + 0x0c, 0x35, 0x0a, 0x09, 0x01, 0x02, 0x25, 0x05, + 0x42, 0x6c, 0x75, 0x65, 0x5a, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute VersionNumberList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-19-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x10, 0x00, 0x00, 0x12, 0x35, 0x03, 0x09, 0x02, + 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03, + 0x09, 0x01, 0x00, 0x00)); + define_ssa("BV-19-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x10, 0x00, 0x00, 0x12, 0x35, 0x03, + 0x09, 0x02, 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03, + 0x09, 0x01, 0x00, 0x00)); + define_ssa("BV-19-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x12, 0x35, 0x03, 0x09, 0x02, 0x00, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x0c, 0x35, + 0x0a, 0x35, 0x08, 0x09, 0x02, 0x00, 0x35, 0x03, + 0x09, 0x01, 0x00, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching for + * existing Service(s) and Attribute BluetoothProfileDescriptorList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-20-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, + 0x09, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08, + 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00, + 0x00)); + define_ssa("BV-20-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x05, 0xff, 0xff, 0x35, 0x03, + 0x09, 0x00, 0x09, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08, + 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00, + 0x00)); + define_ssa("BV-20-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x09, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x14, 0x00, 0x11, 0x35, + 0x0f, 0x35, 0x0d, 0x09, 0x00, 0x09, 0x35, 0x08, + 0x35, 0x06, 0x19, 0x11, 0x05, 0x09, 0x01, 0x00, + 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute DocumentationURL + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-21-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, + 0x0a, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-21-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, + 0x09, 0x00, 0x0a, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-21-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0a, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0a, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching + * for existing Service(s) and Attribute ClientExecutableURL + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-22-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, + 0x0b, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-22-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x24, 0x35, 0x03, + 0x09, 0x00, 0x0b, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + define_ssa("BV-22-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0x00, 0x24, 0x35, 0x03, 0x09, 0x00, 0x0b, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x21, 0x00, 0x1e, 0x35, + 0x1c, 0x35, 0x1a, 0x09, 0x00, 0x0b, 0x45, 0x15, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x62, 0x6c, 0x75, 0x65, 0x7a, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x00)); + + /* + * Service Search Attribute Request + * + * Verify the correct behaviour of the IUT when searching for + * existing Service(s) and Attribute AdditionalProtocolDescriptorList + * using ServiceSearchAttributeRequest. + */ + define_ssa("BV-23-C/UUID-16", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0d, 0x35, 0x03, 0x19, + 0x11, 0x24, 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, + 0x0d, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35, + 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f, + 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09, + 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00)); + define_ssa("BV-23-C/UUID-32", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x0f, 0x35, 0x05, 0x1a, + 0x00, 0x00, 0x11, 0x24, 0xff, 0xff, 0x35, 0x03, + 0x09, 0x00, 0x0d, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35, + 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f, + 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09, + 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00)); + define_ssa("BV-23-C/UUID-128", + raw_pdu(0x06, 0x00, 0x01, 0x00, 0x1b, 0x35, 0x11, 0x1c, + 0x00, 0x00, 0x11, 0x24, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb, + 0xff, 0xff, 0x35, 0x03, 0x09, 0x00, 0x0d, 0x00), + raw_pdu(0x07, 0x00, 0x01, 0x00, 0x1b, 0x00, 0x18, 0x35, + 0x16, 0x35, 0x14, 0x09, 0x00, 0x0d, 0x35, 0x0f, + 0x35, 0x0d, 0x35, 0x06, 0x19, 0x01, 0x00, 0x09, + 0x00, 0x13, 0x35, 0x03, 0x19, 0x00, 0x11, 0x00)); + /* * Service Search Attribute Request * -- 2.47.3