2008-01-27 23:18:57 +00:00
|
|
|
/* packet-diameter_3gpp.c
|
|
|
|
* Routines for dissecting 3GPP OctetSting AVP:s
|
|
|
|
* Copyright 2008, Anders Broman <anders.broman[at]ericsson.com>
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
2010-01-19 17:40:52 +00:00
|
|
|
*
|
2008-01-27 23:18:57 +00:00
|
|
|
* 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.
|
2010-01-19 17:40:52 +00:00
|
|
|
*
|
2008-01-27 23:18:57 +00:00
|
|
|
* 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.
|
2010-01-19 17:40:52 +00:00
|
|
|
*
|
2008-01-27 23:18:57 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This dissector registers a dissector table for 3GPP Vendor specific
|
|
|
|
* AVP:s which will be called from the Diameter dissector to dissect
|
|
|
|
* the content of AVP:s of the OctetString type(or similar).
|
|
|
|
*/
|
|
|
|
|
2011-03-12 23:26:55 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2008-01-27 23:18:57 +00:00
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
2009-01-15 20:55:24 +00:00
|
|
|
#include <epan/asn1.h>
|
2008-01-27 23:18:57 +00:00
|
|
|
|
2009-01-15 20:55:24 +00:00
|
|
|
#include "packet-gsm_map.h"
|
2008-08-04 16:11:17 +00:00
|
|
|
#include "packet-gsm_a_common.h"
|
2010-04-05 07:37:04 +00:00
|
|
|
#include "packet-e164.h"
|
2008-01-29 20:05:02 +00:00
|
|
|
#include "packet-e212.h"
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
2010-01-19 17:40:52 +00:00
|
|
|
static int proto_diameter_3gpp = -1;
|
2008-01-27 23:18:57 +00:00
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
static int hf_diameter_3gpp_visited_nw_id = -1;
|
2009-01-15 20:55:24 +00:00
|
|
|
static int hf_diameter_3gpp_msisdn = -1;
|
2011-05-19 14:41:58 +00:00
|
|
|
static int hf_diameter_3gpp_path = -1;
|
|
|
|
static int hf_diameter_3gpp_contact = -1;
|
2010-01-19 17:20:17 +00:00
|
|
|
static int hf_diameter_3gpp_user_data = -1;
|
2008-01-27 23:18:57 +00:00
|
|
|
static int hf_diameter_3gpp_ipaddr = -1;
|
|
|
|
static int hf_diameter_3gpp_mbms_required_qos_prio = -1;
|
2008-01-29 20:05:02 +00:00
|
|
|
static int hf_diameter_3gpp_tmgi = -1;
|
2011-05-20 13:55:21 +00:00
|
|
|
static int hf_diameter_3gpp_service_ind = -1;
|
2008-01-29 20:05:02 +00:00
|
|
|
static int hf_diameter_mbms_service_id = -1;
|
2010-04-05 07:37:04 +00:00
|
|
|
static int hf_diameter_address_digits = -1;
|
2010-06-20 10:25:26 +00:00
|
|
|
static int hf_diameter_3gpp_spare_bits = -1;
|
2011-04-06 15:01:42 +00:00
|
|
|
static int hf_diameter_3gpp_feature_list_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_feature_list_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_feature_list_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_feature_list_flags_bit2 = -1;
|
2010-06-20 10:25:26 +00:00
|
|
|
static int hf_diameter_3gpp_ulr_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit2 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit3 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit4 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit5 = -1;
|
|
|
|
static int hf_diameter_3gpp_ulr_flags_bit6 = -1;
|
|
|
|
static int hf_diameter_3gpp_ula_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_ula_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit2 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit3 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit4 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit5 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit6 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit7 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit8 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit9 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit10 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit11 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit12 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsr_flags_bit13 = -1;
|
|
|
|
static int hf_diameter_3gpp_dsa_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_dsa_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_ida_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_ida_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_pua_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_pua_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_pua_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags_bit2 = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags_bit3 = -1;
|
|
|
|
static int hf_diameter_3gpp_nor_flags_bit4 = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags_bit0 = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags_bit1 = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags_bit2 = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags_bit3 = -1;
|
|
|
|
static int hf_diameter_3gpp_idr_flags_bit4 = -1;
|
2011-05-19 14:41:58 +00:00
|
|
|
static gint diameter_3gpp_path_ett = -1;
|
|
|
|
static gint diameter_3gpp_msisdn_ett = -1;
|
2011-04-06 15:01:42 +00:00
|
|
|
static gint diameter_3gpp_feature_list_ett = -1;
|
2011-05-19 14:41:58 +00:00
|
|
|
static gint diameter_3gpp_tmgi_ett = -1;
|
2010-06-20 10:25:26 +00:00
|
|
|
static gint diameter_3gpp_ulr_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_ula_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_dsr_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_dsa_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_ida_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_pua_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_nor_flags_ett = -1;
|
|
|
|
static gint diameter_3gpp_idr_flags_ett = -1;
|
|
|
|
|
|
|
|
/* Dissector handles */
|
2010-01-19 17:20:17 +00:00
|
|
|
static dissector_handle_t xml_handle;
|
|
|
|
|
2011-04-06 15:01:42 +00:00
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* AVP Code: 600 Visited-Network-Identifier
|
|
|
|
* imscxdx.xml
|
|
|
|
* 6.3.1 Visited-Network-Identifier AVP
|
|
|
|
* The Visited-Network-Identifier AVP is of type OctetString. This AVP contains an identifier that helps the home
|
|
|
|
* network to identify the visited network (e.g. the visited network domain name).
|
|
|
|
*/
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_diameter_3gpp_visited_nw_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
int offset = 0, i;
|
|
|
|
int length = tvb_length(tvb);
|
|
|
|
|
|
|
|
for(i = 0; i < length; i++)
|
|
|
|
if(!g_ascii_isprint(tvb_get_guint8(tvb, i)))
|
|
|
|
return length;
|
|
|
|
|
2011-10-15 18:46:26 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_visited_nw_id, tvb, offset, length, ENC_ASCII|ENC_NA);
|
2011-05-20 13:55:21 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
|
|
|
|
|
|
|
|
|
|
|
return length;
|
|
|
|
}
|
2011-04-06 15:01:42 +00:00
|
|
|
/* AVP Code: 630 Feature-List
|
|
|
|
* imscxdx.xml
|
|
|
|
* IMS Cx Dx AVPS 3GPP TS 29.229
|
|
|
|
*/
|
|
|
|
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_feature_list(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2011-04-06 15:01:42 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_feature_list_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2011-04-06 15:01:42 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_feature_list_ett);
|
|
|
|
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 29, ENC_BIG_ENDIAN);
|
2011-04-06 15:01:42 +00:00
|
|
|
bit_offset+=29;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_feature_list_flags_bit2, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2011-04-06 15:01:42 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_feature_list_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2011-04-06 15:01:42 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_feature_list_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2011-04-06 15:01:42 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
/* AVP Code: 640 Path
|
|
|
|
* imscxdx.xml
|
|
|
|
* IMS Cx Dx AVPS 3GPP TS 29.229
|
|
|
|
* 6.3.47 Path AVP
|
|
|
|
* The Path AVP is of type OctetString and it contains a comma separated list of SIP proxies in the Path header as defined
|
|
|
|
* in IETF RFC 3327 [17].
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
dissect_diameter_3gpp_path(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0, comma_offset;
|
|
|
|
int end_offset = tvb_length(tvb) - 1;
|
|
|
|
|
|
|
|
item = proto_tree_add_text(tree, tvb, offset, -1,"Paths");
|
|
|
|
sub_tree = proto_item_add_subtree(item,diameter_3gpp_path_ett);
|
|
|
|
|
|
|
|
while (offset < end_offset){
|
|
|
|
comma_offset = tvb_find_guint8(tvb, offset, -1, ',');
|
|
|
|
if(comma_offset == -1){
|
2011-10-15 18:46:26 +00:00
|
|
|
proto_tree_add_item(sub_tree, hf_diameter_3gpp_path, tvb, offset, comma_offset, ENC_ASCII|ENC_NA);
|
2011-05-19 14:41:58 +00:00
|
|
|
return end_offset;
|
|
|
|
}
|
2011-10-15 18:46:26 +00:00
|
|
|
proto_tree_add_item(sub_tree, hf_diameter_3gpp_path, tvb, offset, comma_offset, ENC_ASCII|ENC_NA);
|
2011-05-19 14:41:58 +00:00
|
|
|
offset = comma_offset+1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return tvb_length(tvb);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 641 Contact
|
|
|
|
* imscxdx.xml
|
|
|
|
* IMS Cx Dx AVPS 3GPP TS 29.229
|
|
|
|
* 6.3.48 Contact AVP
|
|
|
|
* The Contact AVP is of type OctetString and it contains the Contact Addresses and Parameters in the Contact header as
|
|
|
|
* defined in IETF RFC 3261.
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
dissect_diameter_3gpp_contact(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
proto_item* item;
|
2011-05-19 14:41:58 +00:00
|
|
|
int offset = 0;
|
|
|
|
|
2011-10-15 18:46:26 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_contact, tvb, offset, -1, ENC_ASCII|ENC_NA);
|
2011-05-20 13:55:21 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
2011-05-19 14:41:58 +00:00
|
|
|
|
|
|
|
return tvb_length(tvb);
|
|
|
|
}
|
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
/* AVP Code: 701 MSISDN */
|
2009-01-15 20:55:24 +00:00
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2009-01-15 20:55:24 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
2010-04-05 07:37:04 +00:00
|
|
|
const char *digit_str;
|
2011-07-27 13:17:58 +00:00
|
|
|
int length = tvb_length(tvb);
|
2009-01-15 20:55:24 +00:00
|
|
|
|
2011-10-04 22:44:31 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_msisdn, tvb, offset, length, ENC_NA);
|
2009-01-15 20:55:24 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item,diameter_3gpp_msisdn_ett);
|
|
|
|
|
2010-04-05 07:37:04 +00:00
|
|
|
dissect_e164_cc(tvb, sub_tree, offset, TRUE);
|
|
|
|
|
|
|
|
digit_str = unpack_digits(tvb, 1);
|
|
|
|
proto_tree_add_string(sub_tree, hf_diameter_address_digits, tvb, 1, -1, digit_str);
|
2009-01-15 20:55:24 +00:00
|
|
|
|
|
|
|
return tvb_length(tvb);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-12-16 10:04:00 +00:00
|
|
|
/* AVP Code: 702 User-Data
|
|
|
|
* TGPPSh.xml
|
|
|
|
* The AVP codes from 709 to799 are reserved for TS 29.329
|
|
|
|
*/
|
|
|
|
/* AVP Code: 606 User-Data
|
|
|
|
* imscxdx.xml
|
|
|
|
* IMS Cx Dx AVPS 3GPP TS 29.229
|
|
|
|
*/
|
2010-01-19 17:40:52 +00:00
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_user_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-01-19 17:20:17 +00:00
|
|
|
|
|
|
|
guint8 word[6];
|
|
|
|
int length = tvb_length(tvb);
|
|
|
|
|
2010-01-19 17:40:52 +00:00
|
|
|
/* If there is less than 38 characters this is not XML
|
2010-01-19 17:20:17 +00:00
|
|
|
* <?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
*/
|
|
|
|
if(length < 38)
|
|
|
|
return length;
|
|
|
|
|
|
|
|
tvb_get_nstringz0(tvb, 0, sizeof(word),word);
|
|
|
|
if (g_ascii_strncasecmp(word, "<?xml", 5) == 0){
|
|
|
|
call_dissector(xml_handle, tvb, pinfo, tree);
|
|
|
|
}
|
2009-01-15 20:55:24 +00:00
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
return length;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
/*
|
|
|
|
* AVP Code: 704 Service-Indication
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
dissect_diameter_3gpp_service_ind(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
int offset = 0, i;
|
|
|
|
int length = tvb_length(tvb);
|
|
|
|
|
|
|
|
for(i = 0; i < length; i++)
|
|
|
|
if(!g_ascii_isprint(tvb_get_guint8(tvb, i)))
|
|
|
|
return length;
|
|
|
|
|
2011-10-15 18:46:26 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_service_ind, tvb, offset, length, ENC_ASCII|ENC_NA);
|
2011-05-20 13:55:21 +00:00
|
|
|
PROTO_ITEM_SET_GENERATED(item);
|
|
|
|
|
|
|
|
return length;
|
|
|
|
}
|
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
/* AVP Code: 900 TMGI */
|
2008-01-29 20:33:43 +00:00
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_tmgi(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2008-01-29 20:05:02 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
|
2011-10-04 22:44:31 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_tmgi, tvb, offset, 6, ENC_NA);
|
2008-01-29 20:05:02 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item,diameter_3gpp_tmgi_ett);
|
|
|
|
|
|
|
|
/* MBMS Service ID consisting of three octets. MBMS Service ID consists of a 6-digit
|
2010-01-19 17:40:52 +00:00
|
|
|
* fixed-length hexadecimal number between 000000 and FFFFFF.
|
2008-01-29 20:05:02 +00:00
|
|
|
* MBMS Service ID uniquely identifies an MBMS bearer service within a PLMN.
|
|
|
|
*/
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_item(sub_tree, hf_diameter_mbms_service_id, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2008-01-29 20:05:02 +00:00
|
|
|
offset = offset+3;
|
2010-03-20 23:53:22 +00:00
|
|
|
offset = dissect_e212_mcc_mnc(tvb, pinfo, sub_tree, offset, TRUE);
|
2008-01-29 20:05:02 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2011-03-12 23:26:55 +00:00
|
|
|
/* AVP Code: 903 MBMS-Service-Area */
|
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
/* AVP Code: 918 MBMS-BMSC-SSM-IP-Address */
|
2010-01-19 17:40:52 +00:00
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_ipaddr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
int offset = 0;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_item(tree, hf_diameter_3gpp_ipaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2008-01-27 23:33:09 +00:00
|
|
|
offset += 4;
|
2008-01-27 23:18:57 +00:00
|
|
|
|
2008-01-27 23:33:09 +00:00
|
|
|
return offset;
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
/* AVP Code: 913 MBMS-Required-QoS */
|
2010-01-19 17:40:52 +00:00
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_mbms_required_qos(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
int offset = 0;
|
|
|
|
guint length;
|
|
|
|
|
|
|
|
/* Octet
|
2010-01-19 17:40:52 +00:00
|
|
|
* 1 Allocation/Retention Priority as specified in 3GPP TS 23.107.
|
2008-01-27 23:18:57 +00:00
|
|
|
* This octet encodes each priority level defined in 3GPP TS 23.107
|
|
|
|
* as the binary value of the priority level. It specifies the relative
|
|
|
|
* importance of the actual MBMS bearer service compared to other MBMS
|
2010-01-19 17:40:52 +00:00
|
|
|
* and non-MBMS bearer services for allocation and retention of the
|
2008-01-27 23:18:57 +00:00
|
|
|
* MBMS bearer service.
|
|
|
|
* 2-N QoS Profile as specified by the Quality-of-Service information element,
|
|
|
|
* from octet 3 onwards, in 3GPP TS 24.008
|
|
|
|
*/
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_item(tree, hf_diameter_3gpp_mbms_required_qos_prio, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2008-01-27 23:18:57 +00:00
|
|
|
offset++;
|
|
|
|
length = tvb_length(tvb) - 1;
|
2011-04-04 14:37:25 +00:00
|
|
|
de_sm_qos(tvb, tree, pinfo, offset,length, NULL, 0);
|
2008-01-27 23:18:57 +00:00
|
|
|
return offset+length;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-06-20 10:25:26 +00:00
|
|
|
/* AVP Code: 1405 ULR-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_ulr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_ulr_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_ulr_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 25, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=25;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit6, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit5, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit4, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit3, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit2, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ulr_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1406 ULA-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_ula_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_ula_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_ula_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 31, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=31;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ula_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1421 DSR-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_dsr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_dsr_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_dsr_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 18, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=18;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit13, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit12, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit11, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit10, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit9, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit8, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit7, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit6, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit5, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit4, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit3, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit2, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsr_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1422 DSA-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_dsa_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_dsa_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_dsa_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 31, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=31;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_dsa_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1441 IDA-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_ida_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_ida_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_ida_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 31, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=31;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_ida_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1442 PUA-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_pua_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_pua_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_pua_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 30, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=30;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_pua_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_pua_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1443 NOR-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_nor_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_nor_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_nor_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 27, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=27;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_nor_flags_bit4, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_nor_flags_bit3, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_nor_flags_bit2, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_nor_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_nor_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* AVP Code: 1490 IDR-Flags */
|
|
|
|
static int
|
2011-05-19 14:41:58 +00:00
|
|
|
dissect_diameter_3gpp_idr_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) {
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
proto_item* item;
|
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
guint32 bit_offset;
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_diameter_3gpp_idr_flags, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
sub_tree = proto_item_add_subtree(item, diameter_3gpp_idr_flags_ett);
|
|
|
|
bit_offset = 0;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_spare_bits, tvb, bit_offset, 27, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset+=27;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_idr_flags_bit4, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_idr_flags_bit3, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_idr_flags_bit2, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_idr_flags_bit1, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
2011-05-19 14:41:58 +00:00
|
|
|
proto_tree_add_bits_item(sub_tree, hf_diameter_3gpp_idr_flags_bit0, tvb, bit_offset, 1, ENC_BIG_ENDIAN);
|
2010-06-20 10:25:26 +00:00
|
|
|
bit_offset++;
|
|
|
|
|
|
|
|
offset = bit_offset>>3;
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2008-01-27 23:18:57 +00:00
|
|
|
void
|
|
|
|
proto_reg_handoff_diameter_3gpp(void)
|
|
|
|
{
|
|
|
|
|
2010-05-01 14:58:03 +00:00
|
|
|
/* AVP Code: 5 3GPP-GPRS Negotiated QoS profile */
|
|
|
|
/* Registered by packet-gtp.c */
|
|
|
|
|
2010-06-08 08:36:22 +00:00
|
|
|
/* AVP Code: 22 3GPP-User-Location-Info
|
|
|
|
* Registered by packet-gtpv2.c
|
|
|
|
*/
|
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
/* AVP Code: 600 Visited-Network-Identifier */
|
|
|
|
dissector_add_uint("diameter.3gpp", 600, new_create_dissector_handle(dissect_diameter_3gpp_visited_nw_id, proto_diameter_3gpp));
|
|
|
|
|
2010-12-16 12:26:01 +00:00
|
|
|
/* AVP Code: 606 User-Data */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 606, new_create_dissector_handle(dissect_diameter_3gpp_user_data, proto_diameter_3gpp));
|
2010-06-08 08:36:22 +00:00
|
|
|
|
2011-04-06 15:01:42 +00:00
|
|
|
/* AVP Code: 630 Feature-List */
|
|
|
|
dissector_add_uint("diameter.3gpp", 630, new_create_dissector_handle(dissect_diameter_3gpp_feature_list, proto_diameter_3gpp));
|
|
|
|
|
2011-05-19 14:41:58 +00:00
|
|
|
/* AVP Code: 640 Path */
|
|
|
|
dissector_add_uint("diameter.3gpp", 640, new_create_dissector_handle(dissect_diameter_3gpp_path, proto_diameter_3gpp));
|
|
|
|
|
2011-05-19 15:23:19 +00:00
|
|
|
/* AVP Code: 641 Contact */
|
2011-05-19 14:41:58 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 641, new_create_dissector_handle(dissect_diameter_3gpp_contact, proto_diameter_3gpp));
|
|
|
|
|
2009-01-15 20:55:24 +00:00
|
|
|
/* AVP Code: 701 MSISDN */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 701, new_create_dissector_handle(dissect_diameter_3gpp_msisdn, proto_diameter_3gpp));
|
2009-01-15 20:55:24 +00:00
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
/* AVP Code: 702 User-Data */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 702, new_create_dissector_handle(dissect_diameter_3gpp_user_data, proto_diameter_3gpp));
|
2010-01-19 17:20:17 +00:00
|
|
|
|
2011-05-20 13:55:21 +00:00
|
|
|
/* AVP Code: 704 Service-Indication */
|
|
|
|
dissector_add_uint("diameter.3gpp", 704, new_create_dissector_handle(dissect_diameter_3gpp_service_ind, proto_diameter_3gpp));
|
|
|
|
|
2008-01-29 20:05:02 +00:00
|
|
|
/* AVP Code: 900 TMGI */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 900, new_create_dissector_handle(dissect_diameter_3gpp_tmgi, proto_diameter_3gpp));
|
2008-01-29 20:05:02 +00:00
|
|
|
|
2011-03-12 23:26:55 +00:00
|
|
|
/* AVP Code: 904 MBMS-Session-Duration Registered by packet-gtp.c */
|
|
|
|
/* AVP Code: 903 MBMS-Service-Area Registered by packet-gtp.c */
|
|
|
|
|
|
|
|
/* AVP Code: 911 MBMS-Time-To-Data-Transfer Registered by packet-gtp.c */
|
2010-05-01 14:58:03 +00:00
|
|
|
/* Registered by packet-gtp.c */
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
/* AVP Code: 913 MBMS-Required-QoS */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 913, new_create_dissector_handle(dissect_diameter_3gpp_mbms_required_qos, proto_diameter_3gpp));
|
2008-01-27 23:18:57 +00:00
|
|
|
|
2010-05-01 14:58:03 +00:00
|
|
|
/* AVP Code: 918 MBMS-BMSC-SSM-IP-Address */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 918, new_create_dissector_handle(dissect_diameter_3gpp_ipaddr, proto_diameter_3gpp));
|
2010-05-01 14:58:03 +00:00
|
|
|
|
2010-06-20 10:25:26 +00:00
|
|
|
/* AVP Code: 1405 ULR-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1405, new_create_dissector_handle(dissect_diameter_3gpp_ulr_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1406 ULA-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1406, new_create_dissector_handle(dissect_diameter_3gpp_ula_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1421 DSR-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1421, new_create_dissector_handle(dissect_diameter_3gpp_dsr_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1422 DSA-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1422, new_create_dissector_handle(dissect_diameter_3gpp_dsa_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1441 IDA-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1441, new_create_dissector_handle(dissect_diameter_3gpp_ida_flags, proto_diameter_3gpp));
|
2010-05-01 14:58:03 +00:00
|
|
|
|
2010-06-20 10:25:26 +00:00
|
|
|
/* AVP Code: 1442 PUA-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1442, new_create_dissector_handle(dissect_diameter_3gpp_pua_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1443 NOR-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1443, new_create_dissector_handle(dissect_diameter_3gpp_nor_flags, proto_diameter_3gpp));
|
2010-06-20 10:25:26 +00:00
|
|
|
|
|
|
|
/* AVP Code: 1490 IDR-Flags */
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("diameter.3gpp", 1490, new_create_dissector_handle(dissect_diameter_3gpp_idr_flags, proto_diameter_3gpp));
|
2008-01-29 20:05:02 +00:00
|
|
|
|
2010-01-19 17:20:17 +00:00
|
|
|
xml_handle = find_dissector("xml");
|
2008-01-27 23:18:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_diameter_3gpp(void)
|
2010-01-19 17:40:52 +00:00
|
|
|
{
|
2008-01-27 23:18:57 +00:00
|
|
|
|
|
|
|
/* Setup list of header fields See Section 1.6.1 for details*/
|
|
|
|
static hf_register_info hf[] = {
|
2011-05-19 14:41:58 +00:00
|
|
|
{ &hf_diameter_3gpp_path,
|
|
|
|
{ "Path", "diameter.3gpp.path",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_contact,
|
|
|
|
{ "Contact", "diameter.3gpp.contact",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2011-05-20 13:55:21 +00:00
|
|
|
{ &hf_diameter_3gpp_visited_nw_id,
|
|
|
|
{ "Visited-Network-Identifier", "diameter.3gpp.visited_nw_id",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-01-15 20:55:24 +00:00
|
|
|
{ &hf_diameter_3gpp_msisdn,
|
|
|
|
{ "MSISDN", "diameter.3gpp.msisdn",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }
|
2009-01-15 20:55:24 +00:00
|
|
|
},
|
2010-01-19 17:20:17 +00:00
|
|
|
{ &hf_diameter_3gpp_user_data,
|
|
|
|
{ "User data", "diameter.3gpp.user_data",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
2010-01-19 17:20:17 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2008-01-27 23:18:57 +00:00
|
|
|
{ &hf_diameter_3gpp_ipaddr,
|
|
|
|
{ "IPv4 Address", "diameter.3gpp.ipaddr",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }
|
2008-01-27 23:18:57 +00:00
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_mbms_required_qos_prio,
|
|
|
|
{ "Allocation/Retention Priority", "diameter.3gpp.mbms_required_qos_prio",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }
|
2008-01-27 23:18:57 +00:00
|
|
|
},
|
2008-01-29 20:05:02 +00:00
|
|
|
{ &hf_diameter_3gpp_tmgi,
|
|
|
|
{ "TMGI", "diameter.3gpp.tmgi",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }
|
2008-01-29 20:05:02 +00:00
|
|
|
},
|
2011-05-20 13:55:21 +00:00
|
|
|
{ &hf_diameter_3gpp_service_ind,
|
|
|
|
{ "Service-Indication", "diameter.3gpp.service_ind",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2008-01-29 20:05:02 +00:00
|
|
|
{ &hf_diameter_mbms_service_id,
|
|
|
|
{ "MBMS Service ID", "diameter.3gpp.mbms_service_id",
|
2010-01-19 17:40:52 +00:00
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
NULL, HFILL }
|
2008-01-29 20:05:02 +00:00
|
|
|
},
|
2010-04-05 07:37:04 +00:00
|
|
|
{ &hf_diameter_address_digits,
|
|
|
|
{ "Address digits", "diameter.3gpp.address_digits",
|
2010-06-20 10:25:26 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_spare_bits,
|
|
|
|
{ "Spare bit(s)", "diameter.3gpp.spare_bits",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2011-04-06 15:01:42 +00:00
|
|
|
{ &hf_diameter_3gpp_feature_list_flags,
|
|
|
|
{ "Feature-List Flags", "diameter.3gpp.feature_list_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_feature_list_flags_bit0,
|
|
|
|
{ "Shared IFC Sets", "diameter.3gpp.feature_list_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_supported_not_supported), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_feature_list_flags_bit1,
|
|
|
|
{ "Alias Indication", "diameter.3gpp.feature_list_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_supported_not_supported), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_feature_list_flags_bit2,
|
|
|
|
{ "IMS Restoration Indication", "diameter.3gpp.feature_list_flags_bit2",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_supported_not_supported), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2010-06-20 10:25:26 +00:00
|
|
|
{ &hf_diameter_3gpp_ulr_flags,
|
|
|
|
{ "ULR Flags", "diameter.3gpp.ulr_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit0,
|
|
|
|
{ "Single-Registration-Indication", "diameter.3gpp.ulr_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit1,
|
|
|
|
{ "S6a/S6d-Indicator", "diameter.3gpp.ulr_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit2,
|
|
|
|
{ "Skip-Subscriber-Data", "diameter.3gpp.ulr_flags_bit2",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit3,
|
|
|
|
{ "GPRS-Subscription-Data-Indicator", "diameter.3gpp.ulr_flags_bit3",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit4,
|
|
|
|
{ "Node-Type-Indicator", "diameter.3gpp.ulr_flags_bit4",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit5,
|
|
|
|
{ "Initial-Attach-Indicator", "diameter.3gpp.ulr_flags_bit5",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ulr_flags_bit6,
|
|
|
|
{ "PS-LCS-Not-Supported-By-UE", "diameter.3gpp.ulr_flags_bit6",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ula_flags,
|
|
|
|
{ "ULA Flags", "diameter.3gpp.ula_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ula_flags_bit0,
|
|
|
|
{ "Separation Indication", "diameter.3gpp.ula_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags,
|
|
|
|
{ "DSR Flags", "diameter.3gpp.dsr_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit0,
|
|
|
|
{ "Regional Subscription Withdrawal", "diameter.3gpp.dsr_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit1,
|
|
|
|
{ "Complete APN Configuration Profile Withdrawal", "diameter.3gpp.dsr_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit2,
|
|
|
|
{ "Subscribed Charging Characteristics Withdrawal", "diameter.3gpp.dsr_flags_bit2",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit3,
|
|
|
|
{ "PDN subscription contexts Withdrawal", "diameter.3gpp.dsr_flags_bit3",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit4,
|
|
|
|
{ "STN-SR", "diameter.3gpp.dsr_flags_bit4",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit5,
|
|
|
|
{ "Complete PDP context list Withdrawal", "diameter.3gpp.dsr_flags_bit5",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit6,
|
|
|
|
{ "PDP contexts Withdrawal", "diameter.3gpp.dsr_flags_bit6",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit7,
|
|
|
|
{ "Roaming Restricted due to unsupported feature", "diameter.3gpp.dsr_flags_bit7",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit8,
|
|
|
|
{ "Trace Data Withdrawal", "diameter.3gpp.dsr_flags_bit8",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit9,
|
|
|
|
{ "CSG Deleted", "diameter.3gpp.dsr_flags_bit9",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit10,
|
|
|
|
{ "APN-OI-Replacement", "diameter.3gpp.dsr_flags_bit10",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit11,
|
|
|
|
{ "GMLC List Withdrawal", "diameter.3gpp.dsr_flags_bit11",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit12,
|
|
|
|
{ "LCS Withdrawal", "diameter.3gpp.dsr_flags_bit12",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsr_flags_bit13,
|
|
|
|
{ "SMS Withdrawal", "diameter.3gpp.dsr_flags_bit13",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsa_flags,
|
|
|
|
{ "DSA Flags", "diameter.3gpp.dsa_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_dsa_flags_bit0,
|
|
|
|
{ "Network Node area restricted", "diameter.3gpp.dsa_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ida_flags,
|
|
|
|
{ "IDA Flags", "diameter.3gpp.ida_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_ida_flags_bit0,
|
|
|
|
{ "Network Node area restricted", "diameter.3gpp.ida_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_pua_flags,
|
|
|
|
{ "PUA Flags", "diameter.3gpp.pua_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_pua_flags_bit0,
|
|
|
|
{ "Freeze M-TMSI", "diameter.3gpp.pua_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_pua_flags_bit1,
|
|
|
|
{ "Freeze P-TMSI", "diameter.3gpp.pua_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags,
|
|
|
|
{ "NOR Flags", "diameter.3gpp.nor_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags_bit0,
|
|
|
|
{ "Single-Registration-Indication", "diameter.3gpp.nor_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags_bit1,
|
|
|
|
{ "SGSN area restricted", "diameter.3gpp.nor_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags_bit2,
|
|
|
|
{ "Ready for SM", "diameter.3gpp.nor_flags_bit2",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags_bit3,
|
|
|
|
{ "UE Reachable", "diameter.3gpp.nor_flags_bit3",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_nor_flags_bit4,
|
|
|
|
{ "Delete all APN and PDN GW identity pairs", "diameter.3gpp.nor_flags_bit4",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags,
|
|
|
|
{ "IDR Flags", "diameter.3gpp.idr_flags",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags_bit0,
|
|
|
|
{ "UE Reachability Request", "diameter.3gpp.idr_flags_bit0",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags_bit1,
|
|
|
|
{ "T-ADS Data Request", "diameter.3gpp.idr_flags_bit1",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags_bit2,
|
|
|
|
{ "EPS User State Request", "diameter.3gpp.idr_flags_bit2",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags_bit3,
|
|
|
|
{ "EPS Location Information Request", "diameter.3gpp.idr_flags_bit3",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_diameter_3gpp_idr_flags_bit4,
|
|
|
|
{ "Current Location Request", "diameter.3gpp.idr_flags_bit4",
|
|
|
|
FT_BOOLEAN, BASE_NONE, TFS(&tfs_set_notset), 0x0,
|
2010-04-05 07:37:04 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2008-01-27 23:18:57 +00:00
|
|
|
};
|
2008-01-29 20:05:02 +00:00
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
|
|
|
static gint *ett[] = {
|
2011-05-19 14:41:58 +00:00
|
|
|
&diameter_3gpp_path_ett,
|
2009-01-15 20:55:24 +00:00
|
|
|
&diameter_3gpp_msisdn_ett,
|
2011-04-06 15:01:42 +00:00
|
|
|
&diameter_3gpp_feature_list_ett,
|
2008-01-29 20:05:02 +00:00
|
|
|
&diameter_3gpp_tmgi_ett,
|
2010-06-20 10:25:26 +00:00
|
|
|
&diameter_3gpp_ulr_flags_ett,
|
|
|
|
&diameter_3gpp_ula_flags_ett,
|
|
|
|
&diameter_3gpp_dsr_flags_ett,
|
|
|
|
&diameter_3gpp_dsa_flags_ett,
|
|
|
|
&diameter_3gpp_ida_flags_ett,
|
|
|
|
&diameter_3gpp_pua_flags_ett,
|
|
|
|
&diameter_3gpp_nor_flags_ett,
|
|
|
|
&diameter_3gpp_idr_flags_ett,
|
2008-01-29 20:05:02 +00:00
|
|
|
};
|
|
|
|
|
2008-01-27 23:18:57 +00:00
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
2008-04-14 06:43:42 +00:00
|
|
|
proto_diameter_3gpp = proto_register_protocol("Diameter 3GPP","Diameter3GPP", "diameter3gpp");
|
2008-01-27 23:18:57 +00:00
|
|
|
proto_register_field_array(proto_diameter_3gpp, hf, array_length(hf));
|
2008-01-29 20:05:02 +00:00
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2008-01-27 23:18:57 +00:00
|
|
|
}
|