2011-01-02 08:29:33 +00:00
|
|
|
/* packet-btsdp.h
|
|
|
|
*
|
2012-03-08 17:48:46 +00:00
|
|
|
* $Id$
|
2011-01-02 08:29:33 +00:00
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2011-01-02 08:29:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_BTSDP_H__
|
|
|
|
#define __PACKET_BTSDP_H__
|
|
|
|
|
|
|
|
/* protocol UUIDs */
|
2012-03-08 17:48:46 +00:00
|
|
|
#define BTSDP_SDP_PROTOCOL_UUID 0x0001
|
|
|
|
#define BTSDP_RFCOMM_PROTOCOL_UUID 0x0003
|
|
|
|
#define BTSDP_BNEP_PROTOCOL_UUID 0x000f
|
|
|
|
#define BTSDP_HIDP_PROTOCOL_UUID 0x0011
|
|
|
|
#define BTSDP_AVCTP_PROTOCOL_UUID 0x0017
|
|
|
|
#define BTSDP_AVDTP_PROTOCOL_UUID 0x0019
|
|
|
|
#define BTSDP_L2CAP_PROTOCOL_UUID 0x0100
|
2011-01-02 08:29:33 +00:00
|
|
|
/* service UUIDs */
|
2012-03-08 17:48:46 +00:00
|
|
|
#define BTSDP_SPP_SERVICE_UUID 0x1101
|
|
|
|
#define BTSDP_DUN_SERVICE_UUID 0x1103
|
|
|
|
#define BTSDP_OPP_SERVICE_UUID 0x1105
|
|
|
|
#define BTSDP_FTP_SERVICE_UUID 0x1106
|
|
|
|
#define BTSDP_HSP_SERVICE_UUID 0x1108
|
|
|
|
#define BTSDP_PAN_PANU_SERVICE_UUID 0x1115
|
|
|
|
#define BTSDP_PAN_NAP_SERVICE_UUID 0x1116
|
|
|
|
#define BTSDP_PAN_GN_SERVICE_UUID 0x1117
|
|
|
|
#define BTSDP_BIP_SERVICE_UUID 0x111a
|
|
|
|
#define BTSDP_BIP_RESPONDER_SERVICE_UUID 0x111b
|
|
|
|
#define BTSDP_BIP_AUTO_ARCH_SERVICE_UUID 0x111c
|
|
|
|
#define BTSDP_BIP_REF_OBJ_SERVICE_UUID 0x111d
|
|
|
|
#define BTSDP_HFP_SERVICE_UUID 0x111e
|
|
|
|
#define BTSDP_HFP_GW_SERVICE_UUID 0x111f
|
|
|
|
#define BTSDP_BPP_SERVICE_UUID 0x1122
|
|
|
|
#define BTSDP_BPP_STATUS_SERVICE_UUID 0x1123
|
|
|
|
#define BTSDP_SAP_SERVICE_UUID 0x112d
|
|
|
|
#define BTSDP_PBAP_PCE_SERVICE_UUID 0x112e
|
|
|
|
#define BTSDP_PBAP_PSE_SERVICE_UUID 0x112f
|
|
|
|
#define BTSDP_PBAP_SERVICE_UUID 0x1130
|
|
|
|
#define BTSDP_MAP_ACCESS_SRV_SERVICE_UUID 0x1132
|
|
|
|
#define BTSDP_MAP_NOIYFY_SRV_SERVICE_UUID 0x1133
|
|
|
|
#define BTSDP_MAP_SERVICE_UUID 0x1134
|
|
|
|
#define BTSDP_HDP_SERVICE_UUID 0x1400
|
2011-01-02 08:29:33 +00:00
|
|
|
|
2012-03-08 17:48:46 +00:00
|
|
|
#define BTSDP_LOCAL_SERVICE_FLAG_MASK 0x0001
|
|
|
|
#define BTSDP_SECONDARY_CHANNEL_FLAG_MASK 0x0002
|
2011-01-02 08:29:33 +00:00
|
|
|
|
2012-03-08 17:48:46 +00:00
|
|
|
/* This structure is passed to other dissectors through the tap interface
|
2011-01-02 08:29:33 +00:00
|
|
|
* and contains information about the relation between service, PSM/server
|
|
|
|
* channel, local/remote service. The btrfcomm and btl2cap dissectors
|
|
|
|
* need this information to determine the kind of data transfered on
|
2012-03-08 17:48:46 +00:00
|
|
|
* dynamically assigned server channels and PSM's, respectively.
|
2011-01-02 08:29:33 +00:00
|
|
|
*/
|
|
|
|
typedef struct _btsdp_data_t {
|
2012-03-08 17:48:46 +00:00
|
|
|
guint32 service; /* service UUID, see below */
|
|
|
|
guint32 channel; /* rfcomm server channel or PSM */
|
|
|
|
guint16 protocol; /* either rfcomm or l2cap UUID */
|
|
|
|
guint16 flags; /* indicate if the service is local or remote
|
|
|
|
(peer device) and/or a secondary PSM */
|
2011-01-02 08:29:33 +00:00
|
|
|
} btsdp_data_t;
|
|
|
|
|
2012-03-12 14:38:59 +00:00
|
|
|
extern value_string_ext vs_service_classes_ext;
|
2011-01-02 08:29:33 +00:00
|
|
|
|
|
|
|
#endif
|