Lines Matching +full:protocol +full:- +full:id

1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
30 * $Id: search.c,v 1.2 2003/09/08 17:35:15 max Exp $
67 * Print Service Class ID List
81 if (end - start < 2) { in print_service_class_id_list()
82 fprintf(stderr, "Invalid Service Class ID List. " \ in print_service_class_id_list()
83 "Too short, len=%zd\n", end - start); in print_service_class_id_list()
102 fprintf(stderr, "Invalid Service Class ID List. " \ in print_service_class_id_list()
108 if (len > (end - start)) { in print_service_class_id_list()
109 fprintf(stderr, "Invalid Service Class ID List. " \ in print_service_class_id_list()
132 fprintf(stdout, "\t%#8.8x-%4.4x-%4.4x-%4.4x-%4.4x%8.8x\n", in print_service_class_id_list()
142 fprintf(stderr, "Invalid Service Class ID List. " \ in print_service_class_id_list()
151 * Print Protocol Descriptor List
155 * protocol descriptor. Each protocol descriptor is, in turn, a data element
156 * sequence whose first element is a UUID identifying the protocol and whose
157 * successive elements are protocol-specific parameters. The protocol
158 * descriptors are listed in order from the lowest layer protocol to the
159 * highest layer protocol used to gain access to the service. If it is possible
160 * for more than one kind of protocol stack to be used to gain access to the
177 /* Get Protocol UUID */ in print_protocol_descriptor()
193 fprintf(stdout, "\t%#8.8x-%4.4x-%4.4x-%4.4x-%4.4x%8.8x\n", in print_protocol_descriptor()
203 fprintf(stderr, "Invalid Protocol Descriptor. " \ in print_protocol_descriptor()
209 /* Protocol specific parameters */ in print_protocol_descriptor()
258 fprintf(stdout, "uuid128 %#8.8x-%4.4x-%4.4x-%4.4x-%4.4x%8.8x\n", in print_protocol_descriptor()
270 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
278 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
286 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
294 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
302 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
310 for (; start < end && len > 0; start ++, len --) in print_protocol_descriptor()
316 fprintf(stderr, "Invalid Protocol Descriptor. " \ in print_protocol_descriptor()
329 if (end - start < 2) { in print_protocol_descriptor_list()
330 fprintf(stderr, "Invalid Protocol Descriptor List. " \ in print_protocol_descriptor_list()
331 "Too short, len=%zd\n", end - start); in print_protocol_descriptor_list()
350 fprintf(stderr, "Invalid Protocol Descriptor List. " \ in print_protocol_descriptor_list()
356 if (len > (end - start)) { in print_protocol_descriptor_list()
357 fprintf(stderr, "Invalid Protocol Descriptor List. " \ in print_protocol_descriptor_list()
378 fprintf(stderr, "Invalid Protocol Descriptor List. " \ in print_protocol_descriptor_list()
384 if (len > (end - start)) { in print_protocol_descriptor_list()
385 fprintf(stderr, "Invalid Protocol Descriptor List. " \ in print_protocol_descriptor_list()
403 * second element is a 16-bit profile version number. Each version of a profile
404 * is assigned a 16-bit unsigned integer profile version number, which consists
405 * of two 8-bit fields. The higher-order 8 bits contain the major version
406 * number field and the lower-order 8 bits contain the minor version number
415 if (end - start < 2) { in print_bluetooth_profile_descriptor_list()
417 "Too short, len=%zd\n", end - start); in print_bluetooth_profile_descriptor_list()
442 if (len > (end - start)) { in print_bluetooth_profile_descriptor_list()
471 if (len > (end - start)) { in print_bluetooth_profile_descriptor_list()
496 fprintf(stdout, "\t%#8.8x-%4.4x-%4.4x-%4.4x-%4.4x%8.8x ", in print_bluetooth_profile_descriptor_list()
664 fprintf(stdout, "Service Class ID List:\n"); in do_sdp_search()
670 fprintf(stdout, "Protocol Descriptor List:\n"); in do_sdp_search()
682 fprintf(stderr, "Unexpected attribute ID=%#4.4x\n", in do_sdp_search()
721 "Browse for services. The <Group> parameter is a 16-bit UUID of the group\n" \
723 "\t<Group> - xxxx; 16-bit UUID of the group to browse\n",
728 "Search for the <Service>. The <Service> parameter is a 16-bit UUID of the\n" \
731 "\t<Service> - xxxx; 16-bit UUID of the service to search for\n\n" \
734 "\tCIP - Common ISDN Access\n" \
735 "\tCTP - Cordless Telephony\n" \
736 "\tDUN - DialUp Networking\n" \
737 "\tFAX - Fax\n" \
738 "\tFTRN - OBEX File Transfer\n" \
739 "\tGN - GN\n" \
740 "\tHID - Human Interface Device\n" \
741 "\tHSET - Headset\n" \
742 "\tLAN - LAN Access Using PPP\n" \
743 "\tNAP - Network Access Point\n" \
744 "\tOPUSH - OBEX Object Push\n" \
745 "\tSP - Serial Port\n",