2004-03-05 10:56:16 +00:00
|
|
|
/*
|
|
|
|
* packet-3g-a11.c
|
|
|
|
* Routines for CDMA2000 A11 packet trace
|
2004-05-12 09:29:34 +00:00
|
|
|
* Copyright 2002, Ryuji Somegawa <somegawa@wide.ad.jp>
|
2004-03-05 10:56:16 +00:00
|
|
|
* packet-3g-a11.c was written based on 'packet-mip.c'.
|
|
|
|
*
|
2006-01-03 16:20:06 +00:00
|
|
|
* packet-3g-a11.c updated by Ravi Valmikam for 3GPP2 TIA-878-A
|
|
|
|
* Copyright 2005, Ravi Valmikam <rvalmikam@airvananet.com>
|
|
|
|
*
|
2004-03-05 10:56:16 +00:00
|
|
|
* packet-mip.c
|
|
|
|
* Routines for Mobile IP dissection
|
|
|
|
* Copyright 2000, Stefan Raab <sraab@cisco.com>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-03-05 10:56:16 +00:00
|
|
|
* 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.
|
2007-11-16 23:56:18 +00:00
|
|
|
*
|
2004-03-05 10:56:16 +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.
|
2007-11-16 23:56:18 +00:00
|
|
|
*
|
2004-03-05 10:56:16 +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
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-01-09 20:49:33 +00:00
|
|
|
*
|
|
|
|
*Ref:
|
2011-04-14 13:58:40 +00:00
|
|
|
* http://www.3gpp2.org/Public_html/specs/A.S0009-C_v3.0_100621.pdf
|
2009-01-10 11:21:36 +00:00
|
|
|
* http://www.3gpp2.org/Public_html/specs/A.S0017-D_v1.0_070624.pdf (IOS 5.1)
|
2011-12-20 18:18:08 +00:00
|
|
|
* http://www.3gpp2.org/public_html/specs/A.S0017-D_v2.0_090825.pdf
|
|
|
|
* http://www.3gpp2.org/public_html/specs/A.S0017-D%20v3.0_Interoperability%20Specification%20%28IOS%29%20for%20cdma2000%20Access%20Network%20Interfaces%20-%20Part%207%20%28A10%20and%20A11%20Interfaces%29_20110701.pdf
|
2011-12-22 22:31:26 +00:00
|
|
|
* http://www.3gpp2.org/Public_html/specs/A00-20110419-002Er0%20A.S0008-C%20v4.0%20HRPD%20IOS-Pub_20110513.pdf
|
2013-10-06 15:38:32 +00:00
|
|
|
* http://www.3gpp2.org/Public_html/specs/A.S0022-0_v2.0_100426.pdf
|
2004-03-05 10:56:16 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2004-03-05 10:56:16 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
2012-10-06 10:01:59 +00:00
|
|
|
#include <epan/expert.h>
|
2013-09-12 20:37:30 +00:00
|
|
|
#include <epan/wmem/wmem.h>
|
2004-11-24 12:25:37 +00:00
|
|
|
/* Include vendor id translation */
|
|
|
|
#include <epan/sminmpec.h>
|
2013-11-09 13:41:10 +00:00
|
|
|
#include <epan/to_str.h>
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2011-12-25 11:25:39 +00:00
|
|
|
#include "packet-radius.h"
|
|
|
|
|
2013-03-12 20:00:50 +00:00
|
|
|
/* Forward declarations */
|
|
|
|
void proto_register_a11(void);
|
2013-03-13 21:14:20 +00:00
|
|
|
void proto_reg_handoff_a11(void);
|
2013-03-12 20:00:50 +00:00
|
|
|
|
2011-05-10 15:20:09 +00:00
|
|
|
static int registration_request_msg =0;
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_a11 = -1;
|
|
|
|
static int hf_a11_type = -1;
|
|
|
|
static int hf_a11_flags = -1;
|
|
|
|
static int hf_a11_s = -1;
|
|
|
|
static int hf_a11_b = -1;
|
|
|
|
static int hf_a11_d = -1;
|
|
|
|
static int hf_a11_m = -1;
|
|
|
|
static int hf_a11_g = -1;
|
|
|
|
static int hf_a11_v = -1;
|
|
|
|
static int hf_a11_t = -1;
|
|
|
|
static int hf_a11_code = -1;
|
|
|
|
static int hf_a11_status = -1;
|
|
|
|
static int hf_a11_life = -1;
|
|
|
|
static int hf_a11_homeaddr = -1;
|
|
|
|
static int hf_a11_haaddr = -1;
|
|
|
|
static int hf_a11_coa = -1;
|
|
|
|
static int hf_a11_ident = -1;
|
|
|
|
static int hf_a11_ext_type = -1;
|
|
|
|
static int hf_a11_ext_stype = -1;
|
|
|
|
static int hf_a11_ext_len = -1;
|
|
|
|
static int hf_a11_ext = -1;
|
|
|
|
static int hf_a11_aext_spi = -1;
|
|
|
|
static int hf_a11_aext_auth = -1;
|
|
|
|
static int hf_a11_next_nai = -1;
|
|
|
|
|
|
|
|
static int hf_a11_ses_key = -1;
|
|
|
|
static int hf_a11_ses_mnsrid = -1;
|
2004-03-23 19:31:14 +00:00
|
|
|
static int hf_a11_ses_sidver = -1;
|
2004-03-05 10:56:16 +00:00
|
|
|
static int hf_a11_ses_msid_type = -1;
|
|
|
|
static int hf_a11_ses_msid_len = -1;
|
|
|
|
static int hf_a11_ses_msid = -1;
|
|
|
|
static int hf_a11_ses_ptype = -1;
|
|
|
|
|
|
|
|
static int hf_a11_vse_vid = -1;
|
|
|
|
static int hf_a11_vse_apptype = -1;
|
|
|
|
static int hf_a11_vse_canid = -1;
|
|
|
|
static int hf_a11_vse_panid = -1;
|
|
|
|
static int hf_a11_vse_srvopt = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_vse_qosmode = -1;
|
2004-03-05 10:56:16 +00:00
|
|
|
static int hf_a11_vse_pdit = -1;
|
|
|
|
static int hf_a11_vse_code = -1;
|
|
|
|
static int hf_a11_vse_dormant = -1;
|
2013-04-03 16:49:55 +00:00
|
|
|
static int hf_a11_vse_ehrpd_mode = -1;
|
|
|
|
static int hf_a11_vse_ehrpd_pmk = -1;
|
2013-10-06 15:38:32 +00:00
|
|
|
static int hf_a11_vse_ehrpd_handoff_info = -1;
|
|
|
|
static int hf_a11_vse_ehrpd_tunnel_mode = -1;
|
2004-03-05 10:56:16 +00:00
|
|
|
static int hf_a11_vse_ppaddr = -1;
|
|
|
|
|
2006-01-03 16:20:06 +00:00
|
|
|
/* Additional Session Information */
|
|
|
|
static int hf_a11_ase_len_type = -1;
|
|
|
|
static int hf_a11_ase_srid_type = -1;
|
|
|
|
static int hf_a11_ase_servopt_type = -1;
|
|
|
|
static int hf_a11_ase_gre_proto_type = -1;
|
|
|
|
static int hf_a11_ase_gre_key = -1;
|
|
|
|
static int hf_a11_ase_pcf_addr_key = -1;
|
|
|
|
|
2011-05-10 15:20:09 +00:00
|
|
|
static int hf_a11_ase_forward_rohc_info_len = -1;
|
|
|
|
static int hf_a11_ase_forward_maxcid = -1;
|
|
|
|
static int hf_a11_ase_forward_mrru = -1;
|
|
|
|
static int hf_a11_ase_forward_large_cids = -1;
|
|
|
|
static int hf_a11_ase_forward_profile_count = -1;
|
|
|
|
static int hf_a11_ase_forward_profile = -1;
|
|
|
|
|
|
|
|
static int hf_a11_ase_reverse_rohc_info_len = -1;
|
|
|
|
static int hf_a11_ase_reverse_maxcid = -1;
|
|
|
|
static int hf_a11_ase_reverse_mrru = -1;
|
|
|
|
static int hf_a11_ase_reverse_large_cids = -1;
|
|
|
|
static int hf_a11_ase_reverse_profile_count = -1;
|
|
|
|
static int hf_a11_ase_reverse_profile = -1;
|
2011-12-25 11:25:39 +00:00
|
|
|
static int hf_a11_aut_flow_prof_sub_type = -1;
|
|
|
|
static int hf_a11_aut_flow_prof_sub_type_len = -1;
|
|
|
|
static int hf_a11_aut_flow_prof_sub_type_value = -1;
|
2011-12-27 10:15:00 +00:00
|
|
|
static int hf_a11_serv_opt_prof_max_serv = -1;
|
|
|
|
static int hf_a11_sub_type = -1;
|
|
|
|
static int hf_a11_sub_type_length = -1;
|
|
|
|
static int hf_a11_serv_opt = -1;
|
|
|
|
static int hf_a11_max_num_serv_opt = -1;
|
2013-04-05 22:16:02 +00:00
|
|
|
static int hf_a11_bcmcs_stype = -1;
|
|
|
|
static int hf_a11_bcmcs_entry_len = -1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2008-12-17 17:23:37 +00:00
|
|
|
/* Forward QoS Information */
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_fqi_srid = -1;
|
|
|
|
static int hf_a11_fqi_flags = -1;
|
2012-09-23 00:12:14 +00:00
|
|
|
static int hf_a11_fqi_flags_ip_flow = -1;
|
|
|
|
static int hf_a11_fqi_flags_dscp = -1;
|
|
|
|
static int hf_a11_fqi_entry_flag = -1;
|
|
|
|
static int hf_a11_fqi_entry_flag_dscp = -1;
|
|
|
|
static int hf_a11_fqi_entry_flag_flow_state = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_fqi_flowcount = -1;
|
|
|
|
static int hf_a11_fqi_flowid = -1;
|
|
|
|
static int hf_a11_fqi_entrylen = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_a11_fqi_flowstate = -1; */
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_fqi_requested_qoslen = -1;
|
2011-06-06 19:17:32 +00:00
|
|
|
static int hf_a11_fqi_flow_priority = -1;
|
|
|
|
static int hf_a11_fqi_num_qos_attribute_set = -1;
|
|
|
|
static int hf_a11_fqi_qos_attribute_setlen = -1;
|
|
|
|
static int hf_a11_fqi_qos_attribute_setid = -1;
|
|
|
|
static int hf_a11_fqi_qos_granted_attribute_setid = -1;
|
|
|
|
static int hf_a11_fqi_verbose = -1;
|
|
|
|
static int hf_a11_fqi_flow_profileid = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_fqi_granted_qoslen = -1;
|
|
|
|
|
|
|
|
/* Reverse QoS Information */
|
|
|
|
static int hf_a11_rqi_srid = -1;
|
|
|
|
static int hf_a11_rqi_flowcount = -1;
|
|
|
|
static int hf_a11_rqi_flowid = -1;
|
|
|
|
static int hf_a11_rqi_entrylen = -1;
|
2012-09-23 00:12:14 +00:00
|
|
|
static int hf_a11_rqi_entry_flag = -1;
|
|
|
|
static int hf_a11_rqi_entry_flag_flow_state = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_a11_rqi_flowstate = -1; */
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_rqi_requested_qoslen = -1;
|
2011-06-06 19:17:32 +00:00
|
|
|
static int hf_a11_rqi_flow_priority = -1;
|
|
|
|
static int hf_a11_rqi_num_qos_attribute_set = -1;
|
|
|
|
static int hf_a11_rqi_qos_attribute_setlen = -1;
|
|
|
|
static int hf_a11_rqi_qos_attribute_setid = -1;
|
|
|
|
static int hf_a11_rqi_qos_granted_attribute_setid = -1;
|
|
|
|
static int hf_a11_rqi_verbose = -1;
|
|
|
|
static int hf_a11_rqi_flow_profileid = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_a11_rqi_requested_qos = -1; */
|
2006-01-03 16:20:06 +00:00
|
|
|
static int hf_a11_rqi_granted_qoslen = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_a11_rqi_granted_qos = -1; */
|
2006-01-03 16:20:06 +00:00
|
|
|
|
2006-03-24 07:09:35 +00:00
|
|
|
/* QoS Update Information */
|
|
|
|
static int hf_a11_fqui_flowcount = -1;
|
|
|
|
static int hf_a11_rqui_flowcount = -1;
|
|
|
|
static int hf_a11_fqui_updated_qoslen = -1;
|
|
|
|
static int hf_a11_fqui_updated_qos = -1;
|
|
|
|
static int hf_a11_rqui_updated_qoslen = -1;
|
|
|
|
static int hf_a11_rqui_updated_qos = -1;
|
|
|
|
static int hf_a11_subsciber_profile = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static int hf_a11_subsciber_profile_len = -1; */
|
2006-01-03 16:20:06 +00:00
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_a11 = -1;
|
|
|
|
static gint ett_a11_flags = -1;
|
|
|
|
static gint ett_a11_ext = -1;
|
|
|
|
static gint ett_a11_exts = -1;
|
|
|
|
static gint ett_a11_radius = -1;
|
|
|
|
static gint ett_a11_radiuses = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static gint ett_a11_ase = -1;
|
|
|
|
static gint ett_a11_fqi_flowentry = -1;
|
2011-06-06 19:17:32 +00:00
|
|
|
static gint ett_a11_fqi_requestedqos = -1;
|
|
|
|
static gint ett_a11_fqi_qos_attribute_set = -1;
|
|
|
|
static gint ett_a11_fqi_grantedqos = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static gint ett_a11_rqi_flowentry = -1;
|
2011-06-06 19:17:32 +00:00
|
|
|
static gint ett_a11_rqi_requestedqos = -1;
|
|
|
|
static gint ett_a11_rqi_qos_attribute_set = -1;
|
|
|
|
static gint ett_a11_rqi_grantedqos = -1;
|
2006-01-03 16:20:06 +00:00
|
|
|
static gint ett_a11_fqi_flags = -1;
|
|
|
|
static gint ett_a11_fqi_entry_flags = -1;
|
|
|
|
static gint ett_a11_rqi_entry_flags = -1;
|
2006-03-24 07:09:35 +00:00
|
|
|
static gint ett_a11_fqui_flowentry = -1;
|
|
|
|
static gint ett_a11_rqui_flowentry = -1;
|
|
|
|
static gint ett_a11_subscriber_profile = -1;
|
2011-05-10 15:20:09 +00:00
|
|
|
static gint ett_a11_forward_rohc = -1;
|
|
|
|
static gint ett_a11_reverse_rohc = -1;
|
|
|
|
static gint ett_a11_forward_profile = -1;
|
|
|
|
static gint ett_a11_reverse_profile = -1;
|
2011-12-25 11:25:39 +00:00
|
|
|
static gint ett_a11_aut_flow_profile_ids = -1;
|
2013-04-05 22:16:02 +00:00
|
|
|
static gint ett_a11_bcmcs_entry = -1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2013-05-25 17:06:40 +00:00
|
|
|
static expert_field ei_a11_sub_type_length_not2 = EI_INIT;
|
2004-03-05 10:56:16 +00:00
|
|
|
|
|
|
|
/* Port used for Mobile IP based Tunneling Protocol (A11) */
|
|
|
|
#define UDP_PORT_3GA11 699
|
|
|
|
|
|
|
|
typedef enum {
|
2013-04-05 22:16:02 +00:00
|
|
|
REGISTRATION_REQUEST = 1,
|
|
|
|
REGISTRATION_REPLY = 3,
|
|
|
|
REGISTRATION_UPDATE = 20,
|
|
|
|
REGISTRATION_ACK = 21,
|
|
|
|
SESSION_UPDATE = 22,
|
|
|
|
SESSION_ACK = 23,
|
|
|
|
CAPABILITIES_INFO = 24,
|
|
|
|
CAPABILITIES_INFO_ACK = 25,
|
|
|
|
BC_SERVICE_REQUEST = 0xb0, /* 3GPP2 A.S0019-A v2.0 */
|
|
|
|
BC_SERVICE_REPLY = 0xb1,
|
|
|
|
BC_REGISTRATION_REQUEST = 0xb2,
|
|
|
|
BC_REGISTRATION_REPLY = 0xb3,
|
|
|
|
BC_REGISTRATION_UPDATE = 0xb4,
|
|
|
|
BC_REGISTRATION_ACK = 0xb5
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
} a11MessageTypes;
|
|
|
|
|
|
|
|
static const value_string a11_types[] = {
|
2013-04-05 22:16:02 +00:00
|
|
|
{REGISTRATION_REQUEST, "Registration Request"},
|
|
|
|
{REGISTRATION_REPLY, "Registration Reply"},
|
|
|
|
{REGISTRATION_UPDATE, "Registration Update"},
|
|
|
|
{REGISTRATION_ACK, "Registration Ack"},
|
|
|
|
{SESSION_UPDATE, "Session Update"},
|
|
|
|
{SESSION_ACK, "Session Update Ack"},
|
|
|
|
{CAPABILITIES_INFO, "Capabilities Info"},
|
|
|
|
{CAPABILITIES_INFO_ACK, "Capabilities Info Ack"},
|
2013-10-13 18:14:59 +00:00
|
|
|
{BC_SERVICE_REQUEST, "BC Service Request"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{BC_SERVICE_REPLY, "BC Service Response"},
|
|
|
|
{BC_REGISTRATION_REQUEST, "BC Registration RequestT"},
|
|
|
|
{BC_REGISTRATION_REPLY, "BC Registration Reply"},
|
|
|
|
{BC_REGISTRATION_UPDATE, "BC Registration Update"},
|
|
|
|
{BC_REGISTRATION_ACK, "BC Registration Acknowledge"},
|
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
2004-11-24 12:25:37 +00:00
|
|
|
static const value_string a11_ses_ptype_vals[] = {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x8881, "Unstructured Byte Stream"},
|
|
|
|
{0x88D2, "3GPP2 Packet"},
|
|
|
|
{0, NULL},
|
2004-11-24 12:25:37 +00:00
|
|
|
};
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
static const value_string a11_reply_codes[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, "Reg Accepted"},
|
|
|
|
{9, "Connection Update"},
|
2004-03-05 10:56:16 +00:00
|
|
|
#if 0
|
2009-09-01 17:17:14 +00:00
|
|
|
{1, "Reg Accepted, but Simultaneous Bindings Unsupported."},
|
|
|
|
{64, "Reg Deny (FA)- Unspecified Reason"},
|
|
|
|
{65, "Reg Deny (FA)- Administratively Prohibited"},
|
|
|
|
{66, "Reg Deny (FA)- Insufficient Resources"},
|
|
|
|
{67, "Reg Deny (FA)- MN failed Authentication"},
|
|
|
|
{68, "Reg Deny (FA)- HA failed Authentication"},
|
|
|
|
{69, "Reg Deny (FA)- Requested Lifetime too Long"},
|
|
|
|
{70, "Reg Deny (FA)- Poorly Formed Request"},
|
|
|
|
{71, "Reg Deny (FA)- Poorly Formed Reply"},
|
|
|
|
{72, "Reg Deny (FA)- Requested Encapsulation Unavailable"},
|
|
|
|
{73, "Reg Deny (FA)- VJ Compression Unavailable"},
|
|
|
|
{74, "Reg Deny (FA)- Requested Reverse Tunnel Unavailable"},
|
|
|
|
{75, "Reg Deny (FA)- Reverse Tunnel is Mandatory and 'T' Bit Not Set"},
|
|
|
|
{76, "Reg Deny (FA)- Mobile Node Too Distant"},
|
|
|
|
{79, "Reg Deny (FA)- Delivery Style Not Supported"},
|
|
|
|
{80, "Reg Deny (FA)- Home Network Unreachable"},
|
|
|
|
{81, "Reg Deny (FA)- HA Host Unreachable"},
|
|
|
|
{82, "Reg Deny (FA)- HA Port Unreachable"},
|
|
|
|
{88, "Reg Deny (FA)- HA Unreachable"},
|
|
|
|
{96, "Reg Deny (FA)(NAI) - Non Zero Home Address Required"},
|
|
|
|
{97, "Reg Deny (FA)(NAI) - Missing NAI"},
|
|
|
|
{98, "Reg Deny (FA)(NAI) - Missing Home Agent"},
|
|
|
|
{99, "Reg Deny (FA)(NAI) - Missing Home Address"},
|
2004-03-05 10:56:16 +00:00
|
|
|
#endif
|
2013-04-05 22:16:02 +00:00
|
|
|
{128, "Registration Denied - Unspecified"}, /* 3GPP2 A.S0017-D v4.0 */
|
|
|
|
{129, "Registration Denied - Administratively Prohibited"},
|
|
|
|
{130, "Registration Denied - Insufficient Resources"},
|
|
|
|
{131, "Registration Denied - PCF Failed Authentication"},
|
2009-09-01 17:17:14 +00:00
|
|
|
/* {132, "Reg Deny (HA)- FA Failed Authentication"}, */
|
2013-04-05 22:16:02 +00:00
|
|
|
{133, "Registration Denied - Identification Mismatch"},
|
|
|
|
{134, "Registration Denied - Poorly Formed Request"},
|
2009-09-01 17:17:14 +00:00
|
|
|
/* {135, "Reg Deny (HA)- Too Many Simultaneous Bindings"}, */
|
2013-04-05 22:16:02 +00:00
|
|
|
{136, "Registration Denied - Unknown PDSN Address"},
|
|
|
|
{137, "Registration Denied - Requested Reverse Tunnel Unavailable"},
|
|
|
|
{138, "Registration Denied - Reverse Tunnel is Mandatory and 'T' Bit Not Set"},
|
2013-04-03 17:46:39 +00:00
|
|
|
{139, "Registration Denied - service option not supported"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{140, "Registration Denied - no CID available"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{141, "Registration Denied - unsupported Vendor ID / Application Type in CVSE"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{142, "Registration Denied - nonexistent A10 or IP flow"},
|
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const value_string a11_ack_status[]= {
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x00, "Update Accepted"},
|
|
|
|
{0x01, "Partial QoS updated"},
|
|
|
|
{0x80, "Update Denied - reason unspecified"},
|
2013-04-03 17:46:39 +00:00
|
|
|
{0x83, "Update Denied - sending node failed authentication"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x85, "Update Denied - identification mismatch)"},
|
|
|
|
{0x86, "Update Denied - poorly formed registration update"},
|
|
|
|
{0xc9, "Update Denied - Session Parameter Not Updated"},
|
2013-04-03 17:46:39 +00:00
|
|
|
{0xca, "Update Denied - PMK not requested"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0xfd, "Update Denied - QoS profileID not supported"},
|
|
|
|
{0xfe, "Update Denied - insufficient resources"},
|
|
|
|
{0xff, "Update Denied - handoff in progress"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum {
|
2009-09-01 17:17:14 +00:00
|
|
|
MH_AUTH_EXT = 32,
|
|
|
|
MF_AUTH_EXT = 33,
|
|
|
|
FH_AUTH_EXT = 34,
|
|
|
|
GEN_AUTH_EXT = 36, /* RFC 3012 */
|
|
|
|
OLD_CVSE_EXT = 37, /* RFC 3115 */
|
|
|
|
CVSE_EXT = 38, /* RFC 3115 */
|
|
|
|
SS_EXT = 39, /* 3GPP2 IOS4.2 */
|
|
|
|
RU_AUTH_EXT = 40, /* 3GPP2 IOS4.2 */
|
|
|
|
MN_NAI_EXT = 131,
|
|
|
|
MF_CHALLENGE_EXT = 132, /* RFC 3012 */
|
|
|
|
OLD_NVSE_EXT = 133, /* RFC 3115 */
|
2013-04-05 22:16:02 +00:00
|
|
|
NVSE_EXT = 134, /* RFC 3115 */
|
2013-10-13 18:14:59 +00:00
|
|
|
BCMCS_EXT = 0xb0 /* 3GPP2 A.S0019-A v2.0 */
|
2004-03-05 10:56:16 +00:00
|
|
|
} MIP_EXTS;
|
|
|
|
|
|
|
|
|
|
|
|
static const value_string a11_ext_types[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{MH_AUTH_EXT, "Mobile-Home Authentication Extension"},
|
|
|
|
{MF_AUTH_EXT, "Mobile-Foreign Authentication Extension"},
|
|
|
|
{FH_AUTH_EXT, "Foreign-Home Authentication Extension"},
|
|
|
|
{GEN_AUTH_EXT, "Generalized Mobile-IP Authentication Extension"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{OLD_CVSE_EXT, "Critical Vendor/Organization Specific Extension (OLD)"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{CVSE_EXT, "Critical Vendor/Organization Specific Extension"},
|
|
|
|
{SS_EXT, "Session Specific Extension"},
|
|
|
|
{RU_AUTH_EXT, "Registration Update Authentication Extension"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{MN_NAI_EXT, "Mobile Node NAI Extension"},
|
|
|
|
{MF_CHALLENGE_EXT, "MN-FA Challenge Extension"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{NVSE_EXT, "Normal Vendor/Organization Specific Extension"},
|
|
|
|
{OLD_NVSE_EXT, "Normal Vendor/Organization Specific Extension (OLD)"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{BCMCS_EXT, "BCMCS Session Extension"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string a11_ext_stypes[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{1, "MN AAA Extension"},
|
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
2006-01-03 16:20:06 +00:00
|
|
|
static const value_string a11_ext_nvose_qosmode[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x00, "QoS Disabled"},
|
|
|
|
{0x01, "QoS Enabled"},
|
|
|
|
{0, NULL},
|
2006-01-03 16:20:06 +00:00
|
|
|
};
|
|
|
|
|
2004-03-10 23:42:32 +00:00
|
|
|
static const value_string a11_ext_nvose_srvopt[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x0021, "3G High Speed Packet Data"},
|
|
|
|
{0x003B, "HRPD Main Service Connection"},
|
|
|
|
{0x003C, "Link Layer Assisted Header Removal"},
|
|
|
|
{0x003D, "Link Layer Assisted Robust Header Compression"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x0040, "HRPD Accounting Records Identifier"}, /* 3GPP2 A.S0009-C v4.0 */
|
|
|
|
{0x0043, "HRPD Packet Data IP Service where Higher Layer Protocol is IP or ROHC"}, /* 3GPP2 A.S0009-C v4.0 */
|
|
|
|
{0x0047, "HRPD AltPPP operation"}, /* 3GPP2 A.S0009-C v4.0 */
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
2004-03-10 23:42:32 +00:00
|
|
|
static const value_string a11_ext_nvose_pdsn_code[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0xc1, "Connection Release - reason unspecified"},
|
|
|
|
{0xc2, "Connection Release - PPP time-out"},
|
|
|
|
{0xc3, "Connection Release - registration time-out"},
|
|
|
|
{0xc4, "Connection Release - PDSN error"},
|
|
|
|
{0xc5, "Connection Release - inter-PCF handoff"},
|
|
|
|
{0xc6, "Connection Release - inter-PDSN handoff"},
|
|
|
|
{0xc7, "Connection Release - PDSN OAM&P intervention"},
|
|
|
|
{0xc8, "Connection Release - accounting error"},
|
|
|
|
{0xca, "Connection Release - user (NAI) failed authentication"},
|
|
|
|
{0x00, NULL},
|
2004-03-10 23:42:32 +00:00
|
|
|
};
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
static const value_string a11_ext_dormant[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x0000, "all MS packet data service instances are dormant"},
|
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
2013-04-03 16:49:55 +00:00
|
|
|
|
2013-04-03 17:46:39 +00:00
|
|
|
static const true_false_string a11_tfs_ehrpd_mode = {
|
2013-10-13 18:14:59 +00:00
|
|
|
"eAT is operating in evolved mode",
|
|
|
|
"eAT is operating in legacy mode"
|
2013-04-03 16:49:55 +00:00
|
|
|
};
|
|
|
|
|
2013-10-06 15:38:32 +00:00
|
|
|
/* 3GPP2 A.S0022-0 v2.0, section 4.2.14 */
|
|
|
|
static const true_false_string a11_tfs_ehrpd_pmk = {
|
|
|
|
"eAT is requesting PMK information",
|
|
|
|
"eAT is not requesting PMK information",
|
|
|
|
};
|
|
|
|
|
|
|
|
/* 3GPP2 A.S0022-0 v2.0, section 4.2.14 */
|
|
|
|
static const true_false_string a11_tfs_ehrpd_handoff_info = {
|
|
|
|
"eAT is requesting information for E-UTRAN handoff",
|
|
|
|
"eAT is not requesting information for E-UTRAN handoff",
|
|
|
|
};
|
|
|
|
|
|
|
|
/* 3GPP2 A.S0022-0 v2.0, section 4.2.14 */
|
|
|
|
static const true_false_string a11_tfs_ehrpd_tunnel_mode = {
|
|
|
|
"eAT is communicating via tunnel from non-eHRPD",
|
|
|
|
"eAT is communicating directly via eHRPD",
|
|
|
|
};
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
static const value_string a11_ext_app[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x0101, "Accounting (RADIUS)"},
|
|
|
|
{0x0102, "Accounting (DIAMETER)"},
|
|
|
|
{0x0201, "Mobility Event Indicator (Mobility)"},
|
|
|
|
{0x0301, "Data Available Indicator (Data Ready to Send)"},
|
|
|
|
{0x0401, "Access Network Identifiers (ANID)"},
|
|
|
|
{0x0501, "PDSN Identifiers (Anchor P-P Address)"},
|
|
|
|
{0x0601, "Indicators (All Dormant Indicator)"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x0602, "Indicators (eHRPD Mode)"}, /* 3GPP2 A.S0022-B v1.0 */
|
|
|
|
{0x0603, "Indicators (eHRPD Indicators)"}, /* 3GPP2 A.S0009-C v4.0 */
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x0701, "PDSN Code (PDSN Code)"},
|
|
|
|
{0x0801, "Session Parameter (RN-PDIT:Radio Network Packet Data Inactivity Timer)"},
|
|
|
|
{0x0802, "Session Parameter (Always On)"},
|
|
|
|
{0x0803, "Session Parameter (QoS Mode)"},
|
|
|
|
{0x0901, "Service Option (Service Option Value)"},
|
|
|
|
{0x0A01, "PDSN Enabled Features (Flow Control Enabled)"},
|
|
|
|
{0x0A02, "PDSN Enabled Features (Packet Boundary Enabled)"},
|
|
|
|
{0x0A03, "PDSN Enabled Features (GRE Segmentation Enabled)"},
|
|
|
|
{0x0B01, "PCF Enabled Features (Short Data Indication Supported)"},
|
|
|
|
{0x0B02, "PCF Enabled Features (GRE Segmentation Enabled)"},
|
|
|
|
{0x0C01, "Additional Session Info"},
|
|
|
|
{0x0D01, "QoS Information (Forward QoS Information)"},
|
|
|
|
{0x0D02, "QoS Information (Reverse QoS Information)"},
|
|
|
|
{0x0D03, "QoS Information (Subscriber QoS Profile)"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x0D04, "QoS Information (Forward Flow Priority Update Information)"},
|
|
|
|
{0x0D05, "QoS Information (Reverse Flow Priority Update Information)"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{0x0DFE, "QoS Information (Forward QoS Update Information)"},
|
|
|
|
{0x0DFF, "QoS Information (Reverse QoS Update Information)"},
|
|
|
|
{0x0E01, "Header Compression (ROHC Configuration Parameters)"},
|
2013-04-03 16:49:55 +00:00
|
|
|
{0x0F01, "Information (Cause Code)"},
|
|
|
|
{0x0F04, "Information (Additional HSGW Information)"},
|
|
|
|
{0x1001, "HRPD Indicators (Emergency Services)"},
|
2013-04-05 22:16:02 +00:00
|
|
|
{0xB001, "System Identifiers (BSID / HRPD Subnet)"},
|
2009-09-01 17:17:14 +00:00
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
|
|
|
|
2013-10-23 06:29:11 +00:00
|
|
|
#if 0
|
2004-03-05 10:56:16 +00:00
|
|
|
static const value_string a11_airlink_types[]= {
|
2009-09-01 17:17:14 +00:00
|
|
|
{1, "Session Setup (Y=1)"},
|
|
|
|
{2, "Active Start (Y=2)"},
|
|
|
|
{3, "Active Stop (Y=3)"},
|
|
|
|
{4, "Short Data Burst (Y=4)"},
|
|
|
|
{0, NULL},
|
2004-03-05 10:56:16 +00:00
|
|
|
};
|
2013-10-23 06:29:11 +00:00
|
|
|
#endif
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
static const true_false_string tfs_included_not_included = { "Included", "Not Included" };
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
static const value_string a11_bcmcs_stype_vals[] = {
|
|
|
|
{1, "BCMCS Flow and Registration Information"},
|
|
|
|
{2, "Session Information"},
|
|
|
|
{3, "BCMCS Registration Result"},
|
|
|
|
{4, "Enhanced Session Information"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
|
|
|
|
2006-07-18 06:15:22 +00:00
|
|
|
#define A11_MSG_MSID_ELEM_LEN_MAX 8
|
|
|
|
#define A11_MSG_MSID_LEN_MAX 15
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2011-12-22 22:31:26 +00:00
|
|
|
/* XXXX ToDo This should be imported from packet-rohc.h */
|
|
|
|
static const value_string a11_rohc_profile_vals[] =
|
|
|
|
{
|
|
|
|
{ 0x0000, "ROHC uncompressed" }, /*RFC 5795*/
|
|
|
|
{ 0x0001, "ROHC RTP" }, /*RFC 3095*/
|
|
|
|
{ 0x0002, "ROHC UDP" }, /*RFC 3095*/
|
|
|
|
{ 0x0003, "ROHC ESP" }, /*RFC 3095*/
|
|
|
|
{ 0x0004, "ROHC IP" }, /*RFC 3843*/
|
|
|
|
{ 0x0005, "ROHC LLA" }, /*RFC 3242*/
|
|
|
|
{ 0x0105, "ROHC LLA with R-mode" }, /*RFC 3408*/
|
|
|
|
{ 0x0006, "ROHC TCP" }, /*RFC 4996*/
|
|
|
|
{ 0x0007, "ROHC RTP/UDP-Lite" }, /*RFC 4019*/
|
|
|
|
{ 0x0008, "ROHC UDP-Lite" }, /*RFC 4019*/
|
|
|
|
{ 0x0101, "ROHCv2 RTP" }, /*RFC 5225*/
|
|
|
|
{ 0x0102, "ROHCv2 UDP" }, /*RFC 5225*/
|
|
|
|
{ 0x0103, "ROHCv2 ESP" }, /*RFC 5225*/
|
|
|
|
{ 0x0104, "ROHCv2 IP" }, /*RFC 5225*/
|
|
|
|
{ 0x0107, "ROHCv2 RTP/UDP-Lite" }, /*RFC 5225*/
|
|
|
|
{ 0x0108, "ROHCv2 UDP-Lite" }, /*RFC 5225*/
|
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
#define NUM_ATTR (sizeof(attrs)/sizeof(struct radius_attribute))
|
|
|
|
|
2004-03-30 19:01:24 +00:00
|
|
|
#define RADIUS_VENDOR_SPECIFIC 26
|
|
|
|
#define SKIP_HDR_LEN 6
|
|
|
|
|
2006-07-18 06:15:22 +00:00
|
|
|
/* decode MSID from SSE */
|
|
|
|
|
2007-11-16 23:56:18 +00:00
|
|
|
/* MSID is encoded in Binary Coded Decimal format
|
2009-09-01 17:17:14 +00:00
|
|
|
First Byte: [odd-indicator] [Digit 1]
|
|
|
|
Second Byte: [Digit 3] [Digit 2]
|
2006-07-18 06:15:22 +00:00
|
|
|
..
|
|
|
|
if[odd]
|
|
|
|
Last Byte: [Digit N] [Digit N-1]
|
|
|
|
else
|
|
|
|
Last Byte: [F] [Digit N]
|
|
|
|
*/
|
2013-04-03 16:49:55 +00:00
|
|
|
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* 3GPP2 A.S0008-C v4.0, 3GPP2 A.S0019-A v2.0 */
|
2013-04-03 16:49:55 +00:00
|
|
|
static const value_string a11_ses_msid_type_vals[] =
|
|
|
|
{
|
2013-04-05 22:16:02 +00:00
|
|
|
{ 0x0000, "No Identity Code" },
|
2013-04-03 16:49:55 +00:00
|
|
|
{ 0x0001, "MEID" },
|
|
|
|
{ 0x0005, "ESN" },
|
|
|
|
{ 0x0006, "IMSI" },
|
2013-04-05 22:16:02 +00:00
|
|
|
{ 0x0008, "BCMCS Flow ID" },
|
2013-04-03 16:49:55 +00:00
|
|
|
{ 0, NULL },
|
|
|
|
};
|
|
|
|
|
2006-07-18 06:15:22 +00:00
|
|
|
static void
|
2012-04-23 16:23:57 +00:00
|
|
|
decode_sse(proto_tree *ext_tree, tvbuff_t *tvb, int offset, guint ext_len)
|
2006-07-18 06:15:22 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
guint8 msid_len;
|
|
|
|
guint8 msid_start_offset;
|
|
|
|
guint8 msid_num_digits;
|
|
|
|
guint8 msid_index;
|
|
|
|
char *msid_digits;
|
|
|
|
const char *p_msid;
|
|
|
|
gboolean odd_even_ind;
|
2006-07-18 06:15:22 +00:00
|
|
|
|
|
|
|
/* Decode Protocol Type */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 2) {
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode Protocol Type - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_ptype, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 2;
|
|
|
|
|
|
|
|
/* Decode Session Key */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 4) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode Session Key - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_key, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 4;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 4;
|
|
|
|
|
|
|
|
|
|
|
|
/* Decode Session Id Version */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 2) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode Session Id Version - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_sidver, tvb, offset+1, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 2;
|
|
|
|
|
|
|
|
|
|
|
|
/* Decode SRID */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 2) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode SRID - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_mnsrid, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 2;
|
|
|
|
|
|
|
|
/* MSID Type */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 2) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode MSID Type - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_msid_type, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 2;
|
|
|
|
|
|
|
|
|
|
|
|
/* MSID Len */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < 1) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode MSID Length - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
msid_len = tvb_get_guint8(tvb, offset);
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ses_msid_len, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2006-07-18 06:15:22 +00:00
|
|
|
ext_len -= 1;
|
|
|
|
|
|
|
|
/* Decode MSID */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (ext_len < msid_len) {
|
2006-07-18 06:15:22 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
|
|
|
"Cannot decode MSID - SSE too short");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-09-12 20:37:30 +00:00
|
|
|
msid_digits = (char *)wmem_alloc(wmem_packet_scope(), A11_MSG_MSID_LEN_MAX+2);
|
2006-07-18 06:15:22 +00:00
|
|
|
msid_start_offset = offset;
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if (msid_len > A11_MSG_MSID_ELEM_LEN_MAX) {
|
2007-03-28 21:55:11 +00:00
|
|
|
p_msid = "MSID is too long";
|
2013-10-13 18:14:59 +00:00
|
|
|
} else if (msid_len == 0) {
|
2007-11-16 23:56:18 +00:00
|
|
|
p_msid = "MSID is too short";
|
2013-10-13 18:14:59 +00:00
|
|
|
} else {
|
2009-09-01 17:17:14 +00:00
|
|
|
/* Decode the BCD digits */
|
2013-10-13 18:14:59 +00:00
|
|
|
for (msid_index=0; msid_index<msid_len; msid_index++) {
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 msid_digit = tvb_get_guint8(tvb, offset);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 1;
|
|
|
|
|
|
|
|
msid_digits[msid_index*2] = (msid_digit & 0x0F) + '0';
|
|
|
|
msid_digits[(msid_index*2) + 1] = ((msid_digit & 0xF0) >> 4) + '0';
|
|
|
|
}
|
|
|
|
|
|
|
|
odd_even_ind = (msid_digits[0] == '1');
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if (odd_even_ind) {
|
2009-09-01 17:17:14 +00:00
|
|
|
msid_num_digits = ((msid_len-1) * 2) + 1;
|
2013-10-13 18:14:59 +00:00
|
|
|
} else {
|
2009-09-01 17:17:14 +00:00
|
|
|
msid_num_digits = (msid_len-1) * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
msid_digits[msid_num_digits + 1] = '\0';
|
|
|
|
p_msid = msid_digits + 1;
|
2006-07-18 06:15:22 +00:00
|
|
|
}
|
2007-11-16 23:56:18 +00:00
|
|
|
|
2006-07-18 06:15:22 +00:00
|
|
|
|
|
|
|
proto_tree_add_string
|
2009-09-01 17:17:14 +00:00
|
|
|
(ext_tree, hf_a11_ses_msid, tvb, msid_start_offset, msid_len, p_msid);
|
2006-07-18 06:15:22 +00:00
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
static void
|
|
|
|
decode_bcmcs(proto_tree* ext_tree, tvbuff_t* tvb, int offset, guint ext_len)
|
|
|
|
{
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
guint8 bc_stype, entry_len;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
/* Decode Protocol Type */
|
|
|
|
if (ext_len < 2) {
|
2013-04-05 22:16:02 +00:00
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, 0,
|
2013-10-13 18:14:59 +00:00
|
|
|
"Cannot decode Protocol Type - BCMCS too short");
|
2013-04-05 22:16:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
bc_stype=tvb_get_guint8(tvb, offset);
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_bcmcs_stype, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
ext_len -= 1;
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
switch (bc_stype) {
|
|
|
|
case 1:
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
proto_tree *entry_tree;
|
|
|
|
while (ext_len > 0) {
|
|
|
|
i++;
|
|
|
|
entry_len = tvb_get_guint8(tvb, offset);
|
|
|
|
if (entry_len == 0) {
|
|
|
|
ext_len -= 1;
|
|
|
|
entry_len = 1;
|
|
|
|
} else {
|
|
|
|
ext_len = ext_len - entry_len;
|
|
|
|
}
|
2014-06-20 21:34:10 +00:00
|
|
|
entry_tree = proto_tree_add_subtree_format(ext_tree, tvb, offset, entry_len,
|
|
|
|
ett_a11_bcmcs_entry, NULL, "BCMCS Information Entry %u", i);
|
2013-10-13 18:14:59 +00:00
|
|
|
proto_tree_add_item(entry_tree, hf_a11_bcmcs_entry_len, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, entry_len -1, "Entry Data, Not dissected yet");
|
|
|
|
offset = offset+entry_len;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, -1, "Session Data Type %u Not dissected yet",bc_stype);
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
/* RADIUS attributed */
|
|
|
|
static void
|
2011-12-25 11:25:39 +00:00
|
|
|
dissect_a11_radius( tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *tree, int app_len)
|
2004-03-05 10:56:16 +00:00
|
|
|
{
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree *radius_tree;
|
|
|
|
|
|
|
|
/* None of this really matters if we don't have a tree */
|
2011-12-28 17:02:43 +00:00
|
|
|
if (!tree)
|
2012-04-23 16:23:57 +00:00
|
|
|
return;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* return if length of extension is not valid */
|
|
|
|
if (tvb_reported_length_remaining(tvb, offset) < 12) {
|
|
|
|
return;
|
|
|
|
}
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
radius_tree = proto_tree_add_subtree(tree, tvb, offset - 2, app_len, ett_a11_radiuses, NULL, "Airlink Record");
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
dissect_attribute_value_pairs(radius_tree, pinfo, tvb, offset, app_len-2);
|
2004-03-30 19:01:24 +00:00
|
|
|
|
|
|
|
|
2011-12-25 11:25:39 +00:00
|
|
|
}
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2011-12-27 10:15:00 +00:00
|
|
|
/* X.S0011-005-D v2.0 Service Option Profile */
|
2012-04-23 16:23:57 +00:00
|
|
|
static const gchar *
|
2012-10-06 10:01:59 +00:00
|
|
|
dissect_3gpp2_service_option_profile(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo)
|
2011-12-27 10:15:00 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
int offset = 0;
|
|
|
|
guint8 sub_type, sub_type_length;
|
2012-10-06 10:01:59 +00:00
|
|
|
proto_item *pi;
|
2012-04-23 16:23:57 +00:00
|
|
|
|
|
|
|
/* Maximum service connections/Link Flows total 32 bit*/
|
|
|
|
proto_tree_add_item(tree, hf_a11_serv_opt_prof_max_serv, tvb, offset, 4, ENC_BIG_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
|
2014-06-19 17:18:16 +00:00
|
|
|
while (tvb_length_remaining(tvb,offset) > 0) {
|
2012-04-23 16:23:57 +00:00
|
|
|
sub_type_length = tvb_get_guint8(tvb,offset+1);
|
|
|
|
|
|
|
|
sub_type = tvb_get_guint8(tvb,offset);
|
|
|
|
proto_tree_add_item(tree, hf_a11_sub_type, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-10-06 10:01:59 +00:00
|
|
|
pi = proto_tree_add_item(tree, hf_a11_sub_type_length, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-10-06 10:01:59 +00:00
|
|
|
if (sub_type_length < 2) {
|
2013-05-25 17:06:40 +00:00
|
|
|
expert_add_info(pinfo, pi, &ei_a11_sub_type_length_not2);
|
2012-10-06 10:01:59 +00:00
|
|
|
sub_type_length = 2;
|
|
|
|
}
|
2013-10-13 18:14:59 +00:00
|
|
|
if (sub_type == 1) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(tree, hf_a11_serv_opt, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-04-23 16:23:57 +00:00
|
|
|
/* Max number of service instances of Service Option n */
|
|
|
|
proto_tree_add_item(tree, hf_a11_max_num_serv_opt, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-04-23 16:23:57 +00:00
|
|
|
}
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
offset = offset + sub_type_length-2;
|
2012-04-23 16:23:57 +00:00
|
|
|
}
|
2011-12-27 10:15:00 +00:00
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2011-12-25 11:25:39 +00:00
|
|
|
static const value_string a11_aut_flow_prof_subtype_vals[] = {
|
|
|
|
{0x1, "ProfileID-Forward"},
|
|
|
|
{0x2, "ProfileID-Reverse"},
|
|
|
|
{0x3, "ProfileID-Bi-direction"},
|
|
|
|
{0, NULL},
|
|
|
|
};
|
2004-03-30 19:01:24 +00:00
|
|
|
|
2011-12-25 11:25:39 +00:00
|
|
|
/* X.S0011-005-D v2.0 Authorized Flow Profile IDs for the User */
|
2012-04-23 16:23:57 +00:00
|
|
|
static const gchar *
|
2012-10-06 10:03:41 +00:00
|
|
|
dissect_3gpp2_radius_aut_flow_profile_ids(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo)
|
2011-12-25 11:25:39 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *sub_tree;
|
|
|
|
int offset = 0;
|
|
|
|
proto_item *item;
|
|
|
|
guint8 sub_type, sub_type_length;
|
|
|
|
guint32 value;
|
|
|
|
|
2014-06-19 17:18:16 +00:00
|
|
|
while (tvb_length_remaining(tvb,offset) > 0) {
|
2012-04-23 16:23:57 +00:00
|
|
|
sub_type = tvb_get_guint8(tvb,offset);
|
|
|
|
sub_type_length = tvb_get_guint8(tvb,offset+1);
|
|
|
|
/* value is 2 octets */
|
|
|
|
value = tvb_get_ntohs(tvb,offset+2);
|
2014-06-20 21:34:10 +00:00
|
|
|
sub_tree = proto_tree_add_subtree_format(tree, tvb, offset, sub_type_length, ett_a11_aut_flow_profile_ids, &item,
|
|
|
|
"%s = %u", val_to_str_const(sub_type, a11_aut_flow_prof_subtype_vals, "Unknown"), value);
|
2012-04-23 16:23:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(sub_tree, hf_a11_aut_flow_prof_sub_type, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-10-06 10:01:59 +00:00
|
|
|
item = proto_tree_add_item(sub_tree, hf_a11_aut_flow_prof_sub_type_len, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
if (sub_type_length < 2) {
|
2013-05-25 17:06:40 +00:00
|
|
|
expert_add_info(pinfo, item, &ei_a11_sub_type_length_not2);
|
2012-10-06 10:01:59 +00:00
|
|
|
sub_type_length = 2;
|
|
|
|
}
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(sub_tree, hf_a11_aut_flow_prof_sub_type_value, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
offset = offset+sub_type_length - 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
}
|
2011-12-25 11:25:39 +00:00
|
|
|
|
|
|
|
return "";
|
2004-03-05 10:56:16 +00:00
|
|
|
}
|
|
|
|
|
2006-01-03 16:20:06 +00:00
|
|
|
/* Code to dissect Additional Session Info */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_ase(tvbuff_t *tvb, int offset, guint ase_len, proto_tree *ext_tree)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
guint clen = 0; /* consumed length */
|
2011-12-28 17:02:43 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
while (clen < ase_len) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree;
|
|
|
|
guint8 srid = tvb_get_guint8(tvb, offset+1);
|
|
|
|
guint16 service_option = tvb_get_ntohs(tvb, offset+2);
|
|
|
|
guint8 entry_lenght;
|
|
|
|
int entry_start_offset;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* Entry Length */
|
|
|
|
entry_start_offset = offset;
|
|
|
|
entry_lenght = tvb_get_guint8(tvb, offset);
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if (registration_request_msg && ((service_option == 64) || (service_option == 67)))
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree = proto_tree_add_subtree_format(ext_tree, tvb, offset, entry_lenght+1,
|
|
|
|
ett_a11_ase, NULL, "GRE Key Entry (SRID: %d)", srid);
|
2013-04-09 21:02:03 +00:00
|
|
|
else
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree = proto_tree_add_subtree_format(ext_tree, tvb, offset, entry_lenght,
|
|
|
|
ett_a11_ase, NULL, "GRE Key Entry (SRID: %d)", srid);
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_len_type, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* SRID */
|
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_srid_type, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* Service Option */
|
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_servopt_type, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* GRE Protocol Type*/
|
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_gre_proto_type, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* GRE Key */
|
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_gre_key, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 4;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* PCF IP Address */
|
|
|
|
proto_tree_add_item(exts_tree, hf_a11_ase_pcf_addr_key, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 4;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if ((entry_lenght>14)&&(registration_request_msg)) {
|
|
|
|
if (service_option == 0x0043) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *extv_tree;
|
2013-10-13 18:14:59 +00:00
|
|
|
guint8 profile_count = tvb_get_guint8(tvb, offset+6);
|
|
|
|
guint8 profile_index = 0;
|
|
|
|
guint8 reverse_profile_count;
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *extt_tree = proto_tree_add_subtree(exts_tree, tvb, offset,6+(profile_count*2)+1,
|
|
|
|
ett_a11_forward_rohc, NULL, "Forward ROHC Info");
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extt_tree, hf_a11_ase_forward_rohc_info_len, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extt_tree, hf_a11_ase_forward_maxcid, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extt_tree, hf_a11_ase_forward_mrru, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extt_tree, hf_a11_ase_forward_large_cids, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2012-04-23 16:23:57 +00:00
|
|
|
profile_count=tvb_get_guint8(tvb, offset);
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extt_tree, hf_a11_ase_forward_profile_count, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (profile_index=0; profile_index<profile_count; profile_index++) {
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *extu_tree = proto_tree_add_subtree_format(extt_tree, tvb, offset, (2*profile_count),
|
|
|
|
ett_a11_forward_profile, NULL, "Forward Profile : %d", profile_index);
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extu_tree, hf_a11_ase_forward_profile, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
}/*for*/
|
2011-05-10 16:05:14 +00:00
|
|
|
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
reverse_profile_count=tvb_get_guint8(tvb, offset+6);
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
extv_tree = proto_tree_add_subtree(exts_tree, tvb, offset,6+(reverse_profile_count*2)+1,
|
|
|
|
ett_a11_reverse_rohc, NULL, "Reverse ROHC Info");
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extv_tree, hf_a11_ase_reverse_rohc_info_len, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extv_tree, hf_a11_ase_reverse_maxcid, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extv_tree, hf_a11_ase_reverse_mrru, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extv_tree, hf_a11_ase_reverse_large_cids, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
profile_count=tvb_get_guint8(tvb, offset);
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extv_tree, hf_a11_ase_reverse_profile_count, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (profile_index=0; profile_index<reverse_profile_count; profile_index++) {
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *extw_tree = proto_tree_add_subtree_format(extv_tree, tvb, offset, (2*profile_count),
|
|
|
|
ett_a11_reverse_profile, NULL, "Reverse Profile : %d", profile_index);
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree_add_item(extw_tree, hf_a11_ase_reverse_profile, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
}/*for*/
|
|
|
|
}/* Service option */
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
}/* if */
|
2013-10-13 18:14:59 +00:00
|
|
|
clen += entry_lenght + 1;
|
2012-04-23 16:23:57 +00:00
|
|
|
/* Set offset = start of next entry in case of padding */
|
|
|
|
offset = entry_start_offset + entry_lenght+1;
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
} /* while */
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
registration_request_msg =0;
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
2011-05-10 15:20:09 +00:00
|
|
|
|
2006-01-03 16:20:06 +00:00
|
|
|
#define A11_FQI_IPFLOW_DISC_ENABLED 0x80
|
|
|
|
#define A11_FQI_DSCP_INCLUDED 0x40
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_fwd_qosinfo_flags(tvbuff_t *tvb, int offset, proto_tree *ext_tree, guint8 *p_dscp_included)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flags = tvb_get_guint8(tvb, offset);
|
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_item *ti = proto_tree_add_item(ext_tree, hf_a11_fqi_flags, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *flags_tree = proto_item_add_subtree(ti, ett_a11_fqi_flags);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_tree_add_item(flags_tree, hf_a11_fqi_flags_ip_flow, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(flags_tree, hf_a11_fqi_flags_dscp, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if (flags & A11_FQI_DSCP_INCLUDED) {
|
2009-09-01 17:17:14 +00:00
|
|
|
*p_dscp_included = 1;
|
2013-10-13 18:14:59 +00:00
|
|
|
} else {
|
2009-09-01 17:17:14 +00:00
|
|
|
*p_dscp_included = 0;
|
|
|
|
}
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_fqi_entry_flags(tvbuff_t *tvb, int offset, proto_tree *ext_tree, guint8 dscp_enabled)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_item *ti = proto_tree_add_item(ext_tree, hf_a11_fqi_entry_flag, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *flags_tree = proto_item_add_subtree(ti, ett_a11_fqi_entry_flags);
|
2006-01-03 16:20:06 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
if (dscp_enabled) {
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_tree_add_item(flags_tree, hf_a11_fqi_entry_flag_dscp, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
2006-01-03 16:20:06 +00:00
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_tree_add_item(flags_tree, hf_a11_fqi_entry_flag_flow_state, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_rqi_entry_flags(tvbuff_t *tvb, int offset, proto_tree *ext_tree)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_item *ti = proto_tree_add_item(ext_tree, hf_a11_rqi_entry_flag, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *flags_tree = proto_item_add_subtree(ti, ett_a11_rqi_entry_flags);
|
2006-01-03 16:20:06 +00:00
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_tree_add_item(flags_tree, hf_a11_rqi_entry_flag_flow_state, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code to dissect Forward QoS Info */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_fwd_qosinfo(tvbuff_t *tvb, int offset, proto_tree *ext_tree)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
int clen = 0; /* consumed length */
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flow_count;
|
|
|
|
guint8 flow_index;
|
|
|
|
guint8 dscp_enabled = 0;
|
|
|
|
|
|
|
|
/* SR Id */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_fqi_srid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flags */
|
|
|
|
dissect_fwd_qosinfo_flags(tvb, offset+clen, ext_tree, &dscp_enabled);
|
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flow Count */
|
|
|
|
flow_count = tvb_get_guint8(tvb, offset+clen);
|
|
|
|
flow_count &= 0x1F;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_fqi_flowcount, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (flow_index=0; flow_index<flow_count; flow_index++) {
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 requested_qos_len = 0;
|
2013-10-13 18:14:59 +00:00
|
|
|
guint8 granted_qos_len = 0;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
guint8 entry_len = tvb_get_guint8(tvb, offset+clen);
|
2013-10-13 18:14:59 +00:00
|
|
|
guint8 flow_id = tvb_get_guint8(tvb, offset+clen+1);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *flow_tree = proto_tree_add_subtree_format(ext_tree, tvb, offset+clen,
|
|
|
|
entry_len+1, ett_a11_fqi_flowentry, NULL, "Forward Flow Entry (Flow Id: %d)", flow_id);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Entry Length */
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_fqi_entrylen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flow Id */
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_fqi_flowid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* DSCP and Flow State*/
|
2013-04-03 16:49:55 +00:00
|
|
|
dissect_fqi_entry_flags(tvb, offset+clen, flow_tree, dscp_enabled);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
|
|
|
|
/* Requested QoS Length */
|
|
|
|
requested_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_fqi_requested_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Requested QoS Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (requested_qos_len) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree2;
|
2011-06-06 19:17:32 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *exts_tree1 = proto_tree_add_subtree(flow_tree, tvb, offset+clen,requested_qos_len,
|
|
|
|
ett_a11_fqi_requestedqos, NULL, "Forward Requested QoS ");
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
proto_tree_add_text(exts_tree1, tvb, offset+clen, requested_qos_len, "Forward Requested QoS Sub Blob");
|
|
|
|
|
|
|
|
/* Flow Priority */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_fqi_flow_priority, tvb,offset+clen , 1, ENC_BIG_ENDIAN);
|
2011-10-10 23:36:07 +00:00
|
|
|
|
2011-06-06 19:17:32 +00:00
|
|
|
/* Num of QoS attribute sets */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_fqi_num_qos_attribute_set, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* QoS attribute set length */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_fqi_qos_attribute_setlen, tvb, offset+clen, 2, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* QoS attribute set */
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree2 = proto_tree_add_subtree(exts_tree1, tvb, offset+clen, 4, ett_a11_fqi_qos_attribute_set,
|
|
|
|
NULL, "QoS Attribute Set");
|
2011-10-10 23:36:07 +00:00
|
|
|
|
2011-06-06 19:17:32 +00:00
|
|
|
/* QoS attribute setid */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_fqi_qos_attribute_setid, tvb, offset+clen, 2, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* verbose */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_fqi_verbose, tvb,offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* Flow profile id */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_fqi_flow_profileid, tvb, offset+clen, 3, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen += 3;
|
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Granted QoS Length */
|
|
|
|
granted_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_fqi_granted_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Granted QoS Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (granted_qos_len) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree3;
|
2011-06-06 19:17:32 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree3 = proto_tree_add_subtree(flow_tree, tvb, offset+clen, granted_qos_len,
|
|
|
|
ett_a11_fqi_grantedqos, NULL, "Forward Granted QoS ");
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
proto_tree_add_text(exts_tree3, tvb, offset+clen, granted_qos_len, "Forward Granted QoS Sub Blob");
|
|
|
|
|
|
|
|
/* QoS attribute setid */
|
2011-09-19 09:55:36 +00:00
|
|
|
proto_tree_add_item(exts_tree3, hf_a11_fqi_qos_granted_attribute_setid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
2013-10-13 18:14:59 +00:00
|
|
|
} /* for (flow_index...) */
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code to dissect Reverse QoS Info */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_rev_qosinfo(tvbuff_t *tvb, int offset, proto_tree *ext_tree)
|
2006-01-03 16:20:06 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
int clen = 0; /* consumed length */
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flow_count;
|
|
|
|
guint8 flow_index;
|
|
|
|
|
|
|
|
/* SR Id */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_rqi_srid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flow Count */
|
|
|
|
flow_count = tvb_get_guint8(tvb, offset+clen);
|
|
|
|
flow_count &= 0x1F;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_rqi_flowcount, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (flow_index=0; flow_index<flow_count; flow_index++) {
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 requested_qos_len;
|
|
|
|
guint8 granted_qos_len;
|
|
|
|
|
|
|
|
guint8 entry_len = tvb_get_guint8(tvb, offset+clen);
|
2013-10-13 18:14:59 +00:00
|
|
|
guint8 flow_id = tvb_get_guint8(tvb, offset+clen+1);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
proto_tree *flow_tree = proto_tree_add_subtree_format
|
|
|
|
(ext_tree, tvb, offset+clen, entry_len+1, ett_a11_rqi_flowentry, NULL,
|
|
|
|
"Reverse Flow Entry (Flow Id: %d)", flow_id);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Entry Length */
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_rqi_entrylen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flow Id */
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_rqi_flowid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Flags */
|
2013-04-03 16:49:55 +00:00
|
|
|
dissect_rqi_entry_flags(tvb, offset+clen, flow_tree);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Requested QoS Length */
|
|
|
|
requested_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_rqi_requested_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Requested QoS Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (requested_qos_len) {
|
2011-06-06 19:17:32 +00:00
|
|
|
proto_tree *exts_tree1, *exts_tree2;
|
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree1 = proto_tree_add_subtree(flow_tree, tvb, offset+clen,requested_qos_len,
|
|
|
|
ett_a11_rqi_requestedqos, NULL, "Reverse Requested QoS ");
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
proto_tree_add_text(exts_tree1, tvb, offset+clen, requested_qos_len, "Reverse Requested QoS Sub Blob");
|
|
|
|
|
|
|
|
/* Flow Priority */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_rqi_flow_priority, tvb,offset+clen , 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* Num of QoS attribute sets */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_rqi_num_qos_attribute_set, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* QoS attribute set length */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree1, hf_a11_rqi_qos_attribute_setlen, tvb, offset+clen, 2, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* QoS attribute set */
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree2 = proto_tree_add_subtree(exts_tree1, tvb, offset+clen, 4,
|
|
|
|
ett_a11_rqi_qos_attribute_set, NULL, "QoS Attribute Set");
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* QoS attribute setid */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_rqi_qos_attribute_setid, tvb, offset+clen, 2, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* verbose */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_rqi_verbose, tvb,offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
/* Flow profile id */
|
2011-09-19 09:52:37 +00:00
|
|
|
proto_tree_add_item(exts_tree2, hf_a11_rqi_flow_profileid, tvb, offset+clen, 3, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen += 3;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Granted QoS Length */
|
|
|
|
granted_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2013-04-03 16:49:55 +00:00
|
|
|
proto_tree_add_item(flow_tree, hf_a11_rqi_granted_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Granted QoS Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (granted_qos_len) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree3;
|
2011-06-06 19:17:32 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree3 = proto_tree_add_subtree(flow_tree, tvb, offset+clen,granted_qos_len,
|
|
|
|
ett_a11_rqi_grantedqos, NULL, "Reverse Granted QoS ");
|
2011-06-06 19:17:32 +00:00
|
|
|
|
|
|
|
proto_tree_add_text(exts_tree3, tvb, offset+clen, granted_qos_len, "Reverse Granted QoS Sub Blob");
|
|
|
|
|
|
|
|
/* QoS attribute setid */
|
2011-09-19 09:55:36 +00:00
|
|
|
proto_tree_add_item(exts_tree3, hf_a11_rqi_qos_granted_attribute_setid, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2011-06-06 19:17:32 +00:00
|
|
|
clen++;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
|
|
|
}
|
2006-01-03 16:20:06 +00:00
|
|
|
}
|
|
|
|
|
2006-03-24 07:09:35 +00:00
|
|
|
|
|
|
|
/* Code to dissect Subscriber QoS Profile */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_subscriber_qos_profile(tvbuff_t *tvb, packet_info *pinfo, int offset, int ext_len, proto_tree *ext_tree)
|
2006-03-24 07:09:35 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree;
|
2006-03-24 07:09:35 +00:00
|
|
|
|
|
|
|
int qos_profile_len = ext_len;
|
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree =
|
|
|
|
proto_tree_add_subtree_format(ext_tree, tvb, offset, 0, ett_a11_subscriber_profile, NULL,
|
2009-09-01 17:17:14 +00:00
|
|
|
"Subscriber Qos Profile (%d bytes)",
|
|
|
|
qos_profile_len);
|
2006-03-24 07:09:35 +00:00
|
|
|
|
|
|
|
/* Subscriber QoS profile */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (qos_profile_len) {
|
2006-03-24 07:09:35 +00:00
|
|
|
proto_tree_add_item
|
2009-09-01 17:17:14 +00:00
|
|
|
(exts_tree, hf_a11_subsciber_profile, tvb, offset,
|
2011-02-07 08:18:12 +00:00
|
|
|
qos_profile_len, ENC_NA);
|
2011-12-28 17:02:43 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
dissect_attribute_value_pairs(exts_tree, pinfo, tvb, offset, qos_profile_len);
|
2006-03-24 07:09:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code to dissect Forward QoS Update Info */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_fwd_qosupdate_info(tvbuff_t *tvb, int offset, proto_tree *ext_tree)
|
2006-03-24 07:09:35 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
int clen = 0; /* consumed length */
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flow_count;
|
|
|
|
guint8 flow_index;
|
2006-03-24 07:09:35 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
/* Flow Count */
|
|
|
|
flow_count = tvb_get_guint8(tvb, offset+clen);
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_fqui_flowcount, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
2006-03-24 07:09:35 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (flow_index=0; flow_index<flow_count; flow_index++) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree;
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 granted_qos_len;
|
2006-03-24 07:09:35 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flow_id = tvb_get_guint8(tvb, offset+clen);
|
2006-03-24 07:09:35 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree = proto_tree_add_subtree_format
|
|
|
|
(ext_tree, tvb, offset+clen, 1, ett_a11_fqui_flowentry, NULL,
|
|
|
|
"Forward Flow Entry (Flow Id: %d)", flow_id);
|
2007-11-16 23:56:18 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
2006-03-24 07:09:35 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
/* Forward QoS Sub Blob Length */
|
|
|
|
granted_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2006-03-24 07:09:35 +00:00
|
|
|
proto_tree_add_item
|
2011-02-07 08:18:12 +00:00
|
|
|
(exts_tree, hf_a11_fqui_updated_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Forward QoS Sub Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (granted_qos_len) {
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_item
|
|
|
|
(exts_tree, hf_a11_fqui_updated_qos, tvb, offset+clen,
|
2011-02-07 08:18:12 +00:00
|
|
|
granted_qos_len, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen += granted_qos_len;
|
|
|
|
}
|
|
|
|
}
|
2006-03-24 07:09:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Code to dissect Reverse QoS Update Info */
|
2012-04-23 16:23:57 +00:00
|
|
|
static void
|
|
|
|
dissect_rev_qosupdate_info(tvbuff_t *tvb, int offset, proto_tree *ext_tree)
|
2006-03-24 07:09:35 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
int clen = 0; /* consumed length */
|
2009-09-01 17:17:14 +00:00
|
|
|
guint8 flow_count;
|
|
|
|
guint8 flow_index;
|
|
|
|
|
|
|
|
/* Flow Count */
|
|
|
|
flow_count = tvb_get_guint8(tvb, offset+clen);
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_rqui_flowcount, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
for (flow_index=0; flow_index<flow_count; flow_index++) {
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree;
|
|
|
|
guint8 granted_qos_len;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
guint8 flow_id = tvb_get_guint8(tvb, offset+clen);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree = proto_tree_add_subtree_format
|
|
|
|
(ext_tree, tvb, offset+clen, 1, ett_a11_rqui_flowentry, NULL,
|
|
|
|
"Reverse Flow Entry (Flow Id: %d)", flow_id);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Reverse QoS Sub Blob Length */
|
|
|
|
granted_qos_len = tvb_get_guint8(tvb, offset+clen);
|
2006-03-24 07:09:35 +00:00
|
|
|
proto_tree_add_item
|
2011-02-07 08:18:12 +00:00
|
|
|
(exts_tree, hf_a11_rqui_updated_qoslen, tvb, offset+clen, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen++;
|
|
|
|
|
|
|
|
/* Reverse QoS Sub Blob */
|
2013-10-13 18:14:59 +00:00
|
|
|
if (granted_qos_len) {
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_item
|
|
|
|
(exts_tree, hf_a11_rqui_updated_qos, tvb, offset+clen,
|
2011-02-07 08:18:12 +00:00
|
|
|
granted_qos_len, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
clen += granted_qos_len;
|
|
|
|
}
|
|
|
|
}
|
2006-03-24 07:09:35 +00:00
|
|
|
}
|
|
|
|
|
2004-03-05 10:56:16 +00:00
|
|
|
/* Code to dissect extensions */
|
|
|
|
static void
|
2011-12-25 11:25:39 +00:00
|
|
|
dissect_a11_extensions( tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *tree)
|
2004-03-05 10:56:16 +00:00
|
|
|
{
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_tree *exts_tree;
|
|
|
|
proto_tree *ext_tree;
|
|
|
|
guint ext_len;
|
|
|
|
guint8 ext_type;
|
|
|
|
guint8 ext_subtype = 0;
|
|
|
|
guint hdrLen;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
gint16 apptype = -1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Add our tree, if we have extensions */
|
2014-06-20 21:34:10 +00:00
|
|
|
exts_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_a11_exts, NULL, "Extensions");
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* And, handle each extension */
|
|
|
|
while (tvb_reported_length_remaining(tvb, offset) > 0) {
|
|
|
|
|
|
|
|
/* Get our extension info */
|
|
|
|
ext_type = tvb_get_guint8(tvb, offset);
|
|
|
|
if (ext_type == GEN_AUTH_EXT) {
|
|
|
|
/*
|
|
|
|
* Very nasty . . breaks normal extensions, since the length is
|
|
|
|
* in the wrong place :(
|
|
|
|
*/
|
|
|
|
ext_subtype = tvb_get_guint8(tvb, offset + 1);
|
|
|
|
ext_len = tvb_get_ntohs(tvb, offset + 2);
|
2012-04-23 16:23:57 +00:00
|
|
|
hdrLen = 4;
|
2009-09-01 17:17:14 +00:00
|
|
|
} else if ((ext_type == CVSE_EXT) || (ext_type == OLD_CVSE_EXT)) {
|
|
|
|
ext_len = tvb_get_ntohs(tvb, offset + 2);
|
|
|
|
ext_subtype = tvb_get_guint8(tvb, offset + 8);
|
|
|
|
hdrLen = 4;
|
|
|
|
} else {
|
|
|
|
ext_len = tvb_get_guint8(tvb, offset + 1);
|
2012-04-23 16:23:57 +00:00
|
|
|
hdrLen = 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
2005-03-02 21:08:47 +00:00
|
|
|
|
2014-06-20 21:34:10 +00:00
|
|
|
ext_tree = proto_tree_add_subtree_format(exts_tree, tvb, offset, ext_len + hdrLen,
|
|
|
|
ett_a11_ext, NULL, "Extension: %s",
|
2009-09-01 17:17:14 +00:00
|
|
|
val_to_str(ext_type, a11_ext_types,
|
|
|
|
"Unknown Extension %u"));
|
2005-03-02 21:08:47 +00:00
|
|
|
|
2011-10-11 15:39:47 +00:00
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_type, tvb, offset, 1, ext_type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2007-11-16 23:56:18 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
if (ext_type == SS_EXT) {
|
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_len, tvb, offset, 1, ext_len);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
2012-04-23 16:23:57 +00:00
|
|
|
else if ((ext_type == CVSE_EXT) || (ext_type == OLD_CVSE_EXT)) {
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_len, tvb, offset, 2, ext_len);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
|
|
|
else if (ext_type != GEN_AUTH_EXT) {
|
|
|
|
/* Another nasty hack since GEN_AUTH_EXT broke everything */
|
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_len, tvb, offset, 1, ext_len);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2004-03-05 10:56:16 +00:00
|
|
|
}
|
2005-03-02 21:08:47 +00:00
|
|
|
|
2013-10-13 18:14:59 +00:00
|
|
|
switch (ext_type) {
|
2009-09-01 17:17:14 +00:00
|
|
|
case SS_EXT:
|
|
|
|
decode_sse(ext_tree, tvb, offset, ext_len);
|
|
|
|
offset += ext_len;
|
|
|
|
ext_len = 0;
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
case MH_AUTH_EXT:
|
|
|
|
case MF_AUTH_EXT:
|
|
|
|
case FH_AUTH_EXT:
|
|
|
|
case RU_AUTH_EXT:
|
|
|
|
/* All these extensions look the same. 4 byte SPI followed by a key */
|
|
|
|
if (ext_len < 4)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_aext_spi, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 4;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 4;
|
|
|
|
if (ext_len == 0)
|
|
|
|
break;
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_aext_auth, tvb, offset, ext_len,
|
2011-02-07 08:18:12 +00:00
|
|
|
ENC_NA);
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
case MN_NAI_EXT:
|
|
|
|
if (ext_len == 0)
|
|
|
|
break;
|
2011-09-19 09:52:37 +00:00
|
|
|
/*
|
2011-09-19 10:17:27 +00:00
|
|
|
* RFC 2486 speaks only of ASCII; RFC 4282 expands that to
|
|
|
|
* UTF-8.
|
2011-09-19 09:52:37 +00:00
|
|
|
*/
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_next_nai, tvb, offset,
|
2011-10-15 18:46:26 +00:00
|
|
|
ext_len, ENC_UTF_8|ENC_NA);
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
case GEN_AUTH_EXT: /* RFC 3012 */
|
|
|
|
/*
|
|
|
|
* Very nasty . . breaks normal extensions, since the length is
|
|
|
|
* in the wrong place :(
|
|
|
|
*/
|
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_stype, tvb, offset, 1, ext_subtype);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_ext_len, tvb, offset, 2, ext_len);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
/* SPI */
|
|
|
|
if (ext_len < 4)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_aext_spi, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 4;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 4;
|
|
|
|
/* Key */
|
|
|
|
if (ext_len == 0)
|
|
|
|
break;
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_aext_auth, tvb, offset,
|
2011-02-07 08:18:12 +00:00
|
|
|
ext_len, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
case OLD_CVSE_EXT: /* RFC 3115 */
|
|
|
|
case CVSE_EXT: /* RFC 3115 */
|
|
|
|
if (ext_len < 4)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_vid, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 4;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 4;
|
|
|
|
if (ext_len < 2)
|
|
|
|
break;
|
|
|
|
apptype = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_uint(ext_tree, hf_a11_vse_apptype, tvb, offset, 2, apptype);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 2;
|
2012-04-23 16:23:57 +00:00
|
|
|
if (apptype == 0x0101) {
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tvb_reported_length_remaining(tvb, offset) > 0) {
|
2011-12-25 11:25:39 +00:00
|
|
|
dissect_a11_radius(tvb, pinfo, offset, ext_tree, ext_len + 2);
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
|
|
|
}
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
case OLD_NVSE_EXT: /* RFC 3115 */
|
|
|
|
case NVSE_EXT: /* RFC 3115 */
|
|
|
|
if (ext_len < 6)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_vid, tvb, offset+2, 4, ENC_BIG_ENDIAN);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 6;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 6;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_apptype, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
if (ext_len < 2)
|
|
|
|
break;
|
|
|
|
apptype = tvb_get_ntohs(tvb, offset);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 2;
|
2013-10-13 18:14:59 +00:00
|
|
|
switch (apptype) {
|
2009-09-01 17:17:14 +00:00
|
|
|
case 0x0401:
|
|
|
|
if (ext_len < 5)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_panid, tvb, offset, 5, ENC_NA);
|
2012-04-23 16:23:57 +00:00
|
|
|
offset += 5;
|
2009-09-01 17:17:14 +00:00
|
|
|
ext_len -= 5;
|
|
|
|
if (ext_len < 5)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_canid, tvb, offset, 5, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0501:
|
|
|
|
if (ext_len < 4)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_ppaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0601:
|
|
|
|
if (ext_len < 2)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_dormant, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
2013-04-03 16:49:55 +00:00
|
|
|
case 0x0602:
|
|
|
|
/* eHRPD Mode */
|
|
|
|
if (ext_len < 1)
|
|
|
|
break;
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_ehrpd_mode, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
break;
|
|
|
|
case 0x0603:
|
|
|
|
/* eHRPD Indicators */
|
|
|
|
if (ext_len < 1)
|
|
|
|
break;
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_ehrpd_pmk, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-06 15:38:32 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_ehrpd_handoff_info, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_ehrpd_tunnel_mode, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-04-03 16:49:55 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
case 0x0701:
|
|
|
|
if (ext_len < 1)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_code, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0801:
|
|
|
|
if (ext_len < 1)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_pdit, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0802:
|
|
|
|
proto_tree_add_text(ext_tree, tvb, offset, -1, "Session Parameter - Always On");
|
|
|
|
break;
|
|
|
|
case 0x0803:
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_qosmode, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0901:
|
|
|
|
if (ext_len < 2)
|
|
|
|
break;
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_vse_srvopt, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0C01:
|
|
|
|
dissect_ase(tvb, offset, ext_len, ext_tree);
|
|
|
|
break;
|
|
|
|
case 0x0D01:
|
|
|
|
dissect_fwd_qosinfo(tvb, offset, ext_tree);
|
|
|
|
break;
|
|
|
|
case 0x0D02:
|
|
|
|
dissect_rev_qosinfo(tvb, offset, ext_tree);
|
|
|
|
break;
|
|
|
|
case 0x0D03:
|
2011-12-25 11:25:39 +00:00
|
|
|
dissect_subscriber_qos_profile(tvb, pinfo, offset, ext_len, ext_tree);
|
2009-09-01 17:17:14 +00:00
|
|
|
break;
|
|
|
|
case 0x0DFE:
|
|
|
|
dissect_fwd_qosupdate_info(tvb, offset, ext_tree);
|
|
|
|
break;
|
|
|
|
case 0x0DFF:
|
|
|
|
dissect_rev_qosupdate_info(tvb, offset, ext_tree);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
break;
|
|
|
|
case BCMCS_EXT:
|
|
|
|
decode_bcmcs(ext_tree, tvb, offset, ext_len);
|
|
|
|
offset += ext_len;
|
|
|
|
ext_len = 0;
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
case MF_CHALLENGE_EXT: /* RFC 3012 */
|
|
|
|
/* The default dissector is good here. The challenge is all hex anyway. */
|
|
|
|
default:
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(ext_tree, hf_a11_ext, tvb, offset, ext_len, ENC_NA);
|
2005-03-02 21:08:47 +00:00
|
|
|
break;
|
2009-09-01 17:17:14 +00:00
|
|
|
} /* ext type */
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += ext_len;
|
|
|
|
} /* while data remaining */
|
2004-03-05 10:56:16 +00:00
|
|
|
|
|
|
|
} /* dissect_a11_extensions */
|
|
|
|
|
|
|
|
/* Code to actually dissect the packets */
|
2004-03-21 23:46:39 +00:00
|
|
|
static int
|
2012-09-10 21:40:21 +00:00
|
|
|
dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
|
2004-03-05 10:56:16 +00:00
|
|
|
{
|
2009-09-01 17:17:14 +00:00
|
|
|
/* Set up structures we will need to add the protocol subtree and manage it */
|
2012-04-23 16:23:57 +00:00
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *a11_tree = NULL;
|
|
|
|
proto_item *tf;
|
|
|
|
proto_tree *flags_tree;
|
|
|
|
guint8 type;
|
|
|
|
guint8 flags;
|
|
|
|
guint offset = 0;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
if (!tvb_bytes_exist(tvb, offset, 1))
|
|
|
|
return 0; /* not enough data to check message type */
|
|
|
|
|
|
|
|
type = tvb_get_guint8(tvb, offset);
|
2013-03-29 00:26:23 +00:00
|
|
|
if (try_val_to_str(type, a11_types) == NULL)
|
2009-09-01 17:17:14 +00:00
|
|
|
return 0; /* not a known message type */
|
|
|
|
|
|
|
|
/* Make entries in Protocol column and Info column on summary display */
|
|
|
|
|
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "3GPP2 A11");
|
|
|
|
col_clear(pinfo->cinfo, COL_INFO);
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
if (type == REGISTRATION_REQUEST)
|
|
|
|
registration_request_msg =1;
|
2011-05-10 15:20:09 +00:00
|
|
|
else
|
2012-04-23 16:23:57 +00:00
|
|
|
registration_request_msg =0;
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
switch (type) {
|
|
|
|
case REGISTRATION_REQUEST:
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
registration_request_msg = 1;
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Reg Request: PDSN=%s PCF=%s",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8),
|
|
|
|
tvb_ip_to_str(tvb, 12));
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
if (tree) {
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* flags */
|
|
|
|
flags = tvb_get_guint8(tvb, offset);
|
|
|
|
tf = proto_tree_add_uint(a11_tree, hf_a11_flags, tvb,
|
|
|
|
offset, 1, flags);
|
|
|
|
flags_tree = proto_item_add_subtree(tf, ett_a11_flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_s, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_b, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_d, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_m, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_g, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_v, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_t, tvb, offset, 1, flags);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* lifetime */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_life, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset +=2;
|
|
|
|
|
|
|
|
/* home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* home agent address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care of Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case REGISTRATION_REPLY:
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Reg Reply: PDSN=%s, Code=%u",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8), tvb_get_guint8(tvb,1));
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reply Code */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_code, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Registration Lifetime */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_life, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
} /* if tree */
|
|
|
|
|
|
|
|
break;
|
|
|
|
case REGISTRATION_UPDATE:
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO,"Reg Update: PDSN=%s",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case REGISTRATION_ACK:
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Reg Ack: PCF=%s Status=%u",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8),
|
2010-03-03 13:52:17 +00:00
|
|
|
tvb_get_guint8(tvb,3));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Ack Status */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_status, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care of Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case SESSION_UPDATE: /* IOS4.3 */
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO,"Ses Update: PDSN=%s",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case SESSION_ACK: /* IOS4.3 */
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Ses Upd Ack: PCF=%s, Status=%u",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8),
|
2010-03-03 13:52:17 +00:00
|
|
|
tvb_get_guint8(tvb,3));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Ack Status */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_status, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care of Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case CAPABILITIES_INFO: /* IOS5.1 */
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Cap Info: PDSN=%s, PCF=%s",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8),
|
|
|
|
tvb_ip_to_str(tvb, 12));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care of Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case CAPABILITIES_INFO_ACK: /* IOS5.1 */
|
2010-03-03 13:52:17 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Cap Info Ack: PCF=%s",
|
2011-01-13 15:53:30 +00:00
|
|
|
tvb_ip_to_str(tvb, 8));
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
2009-09-01 17:17:14 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care of Address */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
2011-02-07 08:18:12 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
2009-09-01 17:17:14 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
2013-04-05 22:16:02 +00:00
|
|
|
case BC_SERVICE_REQUEST:
|
2013-10-13 18:14:59 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Service Request: PCF=%s ",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8));
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
if (tree) {
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Care-of-Address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
offset += 8;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case BC_SERVICE_REPLY:
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Service Response: BSN=%s ",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8));
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
if (tree) {
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Reply Code */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_code, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Home Agent */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
offset += 8;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case BC_REGISTRATION_REQUEST:
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "BC Reg Request: BSN=%s ",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8));
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
if (tree) {
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* flags */
|
|
|
|
flags = tvb_get_guint8(tvb, offset);
|
|
|
|
tf = proto_tree_add_uint(a11_tree, hf_a11_flags, tvb,
|
|
|
|
offset, 1, flags);
|
|
|
|
flags_tree = proto_item_add_subtree(tf, ett_a11_flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_s, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_b, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_d, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_m, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_g, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_v, tvb, offset, 1, flags);
|
|
|
|
proto_tree_add_boolean(flags_tree, hf_a11_t, tvb, offset, 1, flags);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* lifetime */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_life, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset +=2;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Home Agent */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Care-of-Address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
offset += 8;
|
2013-10-13 18:14:59 +00:00
|
|
|
|
2013-04-05 22:16:02 +00:00
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case BC_REGISTRATION_REPLY:
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "BC Reg Reply: BSN=%s, Code=%u",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8),
|
|
|
|
tvb_get_guint8(tvb, offset + 1));
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Reply Code */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_code, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Registration Lifetime */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_life, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
offset += 8;
|
|
|
|
} /* if tree */
|
|
|
|
|
|
|
|
break;
|
|
|
|
case BC_REGISTRATION_UPDATE:
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO,"BC Reg Update: BSN=%s",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8));
|
2013-04-05 22:16:02 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 3;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Home Agent */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_haaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
case BC_REGISTRATION_ACK:
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "BC Reg Acknowledge: PCF=%s Status=%u",
|
2013-04-05 23:46:20 +00:00
|
|
|
tvb_ip_to_str(tvb, offset + 8),
|
|
|
|
tvb_get_guint8(tvb, offset + 3));
|
2013-04-05 22:16:02 +00:00
|
|
|
if (tree) {
|
|
|
|
/* Add Subtree */
|
2014-04-06 14:57:33 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_a11, tvb, offset, -1, ENC_NA);
|
2013-04-05 22:16:02 +00:00
|
|
|
a11_tree = proto_item_add_subtree(ti, ett_a11);
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
proto_tree_add_uint(a11_tree, hf_a11_type, tvb, offset, 1, type);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Reserved */
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 2;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Ack Status */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_status, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2013-10-13 18:14:59 +00:00
|
|
|
offset += 1;
|
2013-04-05 22:16:02 +00:00
|
|
|
|
|
|
|
/* Home address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_homeaddr, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Care-of-Address */
|
2014-04-06 14:57:33 +00:00
|
|
|
proto_tree_add_item(a11_tree, hf_a11_coa, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2013-04-05 22:16:02 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Identifier - assumed to be an NTP time here */
|
|
|
|
proto_tree_add_item(a11_tree, hf_a11_ident, tvb, offset, 8, ENC_TIME_NTP|ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
} /* if tree */
|
|
|
|
break;
|
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
default:
|
|
|
|
DISSECTOR_ASSERT_NOT_REACHED();
|
|
|
|
break;
|
|
|
|
} /* End switch */
|
|
|
|
|
2011-02-17 19:43:16 +00:00
|
|
|
if (tree && a11_tree) {
|
2009-09-01 17:17:14 +00:00
|
|
|
if (tvb_reported_length_remaining(tvb, offset) > 0)
|
2011-12-25 11:25:39 +00:00
|
|
|
dissect_a11_extensions(tvb, pinfo, offset, a11_tree);
|
2009-09-01 17:17:14 +00:00
|
|
|
}
|
2014-05-04 19:20:54 +00:00
|
|
|
return tvb_reported_length(tvb);
|
2004-03-05 10:56:16 +00:00
|
|
|
} /* dissect_a11 */
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* Register the protocol with Wireshark */
|
2008-08-25 16:42:09 +00:00
|
|
|
void
|
|
|
|
proto_register_a11(void)
|
2007-11-16 23:56:18 +00:00
|
|
|
{
|
2004-03-05 10:56:16 +00:00
|
|
|
|
|
|
|
/* Setup list of header fields */
|
2009-09-01 17:17:14 +00:00
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_a11_type,
|
|
|
|
{ "Message Type", "a11.type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_types), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"A11 Message Type", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_flags,
|
2012-04-23 16:23:57 +00:00
|
|
|
{ "Flags", "a11.flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_s,
|
2012-04-23 16:23:57 +00:00
|
|
|
{ "Simultaneous Bindings", "a11.s",
|
|
|
|
FT_BOOLEAN, 8, NULL, 128,
|
|
|
|
"Simultaneous Bindings Allowed", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_b,
|
2012-04-23 16:23:57 +00:00
|
|
|
{ "Broadcast Datagrams", "a11.b",
|
|
|
|
FT_BOOLEAN, 8, NULL, 64,
|
|
|
|
"Broadcast Datagrams requested", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_d,
|
|
|
|
{ "Co-located Care-of Address", "a11.d",
|
|
|
|
FT_BOOLEAN, 8, NULL, 32,
|
|
|
|
"MN using Co-located Care-of address", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_m,
|
2012-04-23 16:23:57 +00:00
|
|
|
{ "Minimal Encapsulation", "a11.m",
|
|
|
|
FT_BOOLEAN, 8, NULL, 16,
|
|
|
|
"MN wants Minimal encapsulation", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_g,
|
2012-04-23 16:23:57 +00:00
|
|
|
{ "GRE", "a11.g",
|
|
|
|
FT_BOOLEAN, 8, NULL, 8,
|
|
|
|
"MN wants GRE encapsulation", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_v,
|
|
|
|
{ "Van Jacobson", "a11.v",
|
|
|
|
FT_BOOLEAN, 8, NULL, 4,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_t,
|
|
|
|
{ "Reverse Tunneling", "a11.t",
|
|
|
|
FT_BOOLEAN, 8, NULL, 2,
|
|
|
|
"Reverse tunneling requested", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_code,
|
|
|
|
{ "Reply Code", "a11.code",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_reply_codes), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"A11 Registration Reply code", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_status,
|
|
|
|
{ "Reply Status", "a11.ackstat",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_ack_status), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"A11 Registration Ack Status", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_life,
|
|
|
|
{ "Lifetime", "a11.life",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"A11 Registration Lifetime", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_homeaddr,
|
|
|
|
{ "Home Address", "a11.homeaddr",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Mobile Node's home address", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_haaddr,
|
|
|
|
{ "Home Agent", "a11.haaddr",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Home agent IP Address", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_coa,
|
|
|
|
{ "Care of Address", "a11.coa",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ident,
|
|
|
|
{ "Identification", "a11.ident",
|
2011-02-07 03:31:40 +00:00
|
|
|
FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"MN Identification", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ext_type,
|
|
|
|
{ "Extension Type", "a11.ext.type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_ext_types), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Mobile IP Extension Type", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ext_stype,
|
|
|
|
{ "Gen Auth Ext SubType", "a11.ext.auth.subtype",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_ext_stypes), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Mobile IP Auth Extension Sub Type", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ext_len,
|
|
|
|
{ "Extension Length", "a11.ext.len",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Mobile IP Extension Length", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ext,
|
|
|
|
{ "Extension", "a11.extension",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_aext_spi,
|
|
|
|
{ "SPI", "a11.auth.spi",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Authentication Header Security Parameter Index", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_aext_auth,
|
|
|
|
{ "Authenticator", "a11.auth.auth",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_next_nai,
|
|
|
|
{ "NAI", "a11.nai",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_ses_key,
|
|
|
|
{ "Key", "a11.ext.key",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Session Key", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ses_sidver,
|
|
|
|
{ "Session ID Version", "a11.ext.sidver",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 3,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_a11_ses_mnsrid,
|
|
|
|
{ "MNSR-ID", "a11.ext.mnsrid",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_ses_msid_type,
|
|
|
|
{ "MSID Type", "a11.ext.msid_type",
|
2013-04-03 16:49:55 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(a11_ses_msid_type_vals), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ses_msid_len,
|
|
|
|
{ "MSID Length", "a11.ext.msid_len",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ses_msid,
|
|
|
|
{ "MSID(BCD)", "a11.ext.msid",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ses_ptype,
|
|
|
|
{ "Protocol Type", "a11.ext.ptype",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(a11_ses_ptype_vals), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_vid,
|
|
|
|
{ "Vendor ID", "a11.ext.vid",
|
2010-09-17 04:51:21 +00:00
|
|
|
FT_UINT32, BASE_HEX|BASE_EXT_STRING, &sminmpec_values_ext, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_apptype,
|
|
|
|
{ "Application Type", "a11.ext.apptype",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(a11_ext_app), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_ppaddr,
|
|
|
|
{ "Anchor P-P Address", "a11.ext.ppaddr",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_dormant,
|
|
|
|
{ "All Dormant Indicator", "a11.ext.dormant",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(a11_ext_dormant), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-04-03 16:49:55 +00:00
|
|
|
{ &hf_a11_vse_ehrpd_mode,
|
|
|
|
{ "eHRPD Mode", "a11.ext.ehrpd.mode",
|
|
|
|
FT_BOOLEAN, 8, TFS(&a11_tfs_ehrpd_mode), 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_vse_ehrpd_pmk,
|
|
|
|
{ "PMK", "a11.ext.ehrpd.pmk",
|
2013-10-06 15:38:32 +00:00
|
|
|
FT_BOOLEAN, 8, TFS(&a11_tfs_ehrpd_pmk), 0x04,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_vse_ehrpd_handoff_info,
|
|
|
|
{ "E-UTRAN Handoff Info", "a11.ext.ehrpd.handoff_info",
|
|
|
|
FT_BOOLEAN, 8, TFS(&a11_tfs_ehrpd_handoff_info), 0x02,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_vse_ehrpd_tunnel_mode,
|
|
|
|
{ "Tunnel Mode", "a11.ext.ehrpd.tunnel_mode",
|
|
|
|
FT_BOOLEAN, 8, TFS(&a11_tfs_ehrpd_tunnel_mode), 0x01,
|
2013-04-03 16:49:55 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_vse_code,
|
|
|
|
{ "Reply Code", "a11.ext.code",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_reply_codes), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2012-04-23 16:23:57 +00:00
|
|
|
/* XXX: Is this the correct filter name ?? */
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_vse_pdit,
|
|
|
|
{ "PDSN Code", "a11.ext.code",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(a11_ext_nvose_pdsn_code), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_srvopt,
|
|
|
|
{ "Service Option", "a11.ext.srvopt",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(a11_ext_nvose_srvopt), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_vse_panid,
|
|
|
|
{ "PANID", "a11.ext.panid",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_vse_canid,
|
|
|
|
{ "CANID", "a11.ext.canid",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_vse_qosmode,
|
|
|
|
{ "QoS Mode", "a11.ext.qosmode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(a11_ext_nvose_qosmode), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_len_type,
|
|
|
|
{ "Entry Length", "a11.ext.ase.len",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_srid_type,
|
|
|
|
{ "Service Reference ID (SRID)", "a11.ext.ase.srid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_servopt_type,
|
|
|
|
{ "Service Option", "a11.ext.ase.srvopt",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(a11_ext_nvose_srvopt), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_gre_proto_type,
|
|
|
|
{ "GRE Protocol Type", "a11.ext.ase.ptype",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(a11_ses_ptype_vals), 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_gre_key,
|
|
|
|
{ "GRE Key", "a11.ext.ase.key",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_ase_pcf_addr_key,
|
|
|
|
{ "PCF IP Address", "a11.ext.ase.pcfip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
2012-04-23 18:55:19 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_srid,
|
|
|
|
{ "SRID", "a11.ext.fqi.srid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Forward Flow Entry SRID", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_flags,
|
|
|
|
{ "Flags", "a11.ext.fqi.flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Forward Flow Entry Flags", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2012-09-23 00:12:14 +00:00
|
|
|
{ &hf_a11_fqi_flags_ip_flow,
|
|
|
|
{ "IP Flow Discriminator", "a11.ext.fqi.flags.ip_flow",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_enabled_disabled), A11_FQI_IPFLOW_DISC_ENABLED,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_flags_dscp,
|
|
|
|
{ "DSCP", "a11.ext.fqi.flags.dscp",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_included_not_included), A11_FQI_DSCP_INCLUDED,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_entry_flag,
|
|
|
|
{ "DSCP and Flow State", "a11.ext.fqi.entry_flag",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_entry_flag_dscp,
|
|
|
|
{ "DSCP", "a11.ext.fqi.entry_flag.dscp",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x7E,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_entry_flag_flow_state,
|
|
|
|
{ "Flow State", "a11.ext.fqi.entry_flag.flow_state",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_active_inactive), 0x01,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_fqi_flowcount,
|
|
|
|
{ "Forward Flow Count", "a11.ext.fqi.flowcount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2011-06-06 19:17:32 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_flowid,
|
|
|
|
{ "Forward Flow Id", "a11.ext.fqi.flowid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2011-06-06 19:17:32 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_entrylen,
|
|
|
|
{ "Entry Length", "a11.ext.fqi.entrylen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Forward Entry Length", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_fqi_flowstate,
|
|
|
|
{ "Forward Flow State", "a11.ext.fqi.flowstate",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
2011-06-06 19:17:32 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_fqi_requested_qoslen,
|
|
|
|
{ "Requested QoS Length", "a11.ext.fqi.reqqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Forward Requested QoS Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_flow_priority,
|
|
|
|
{ "Flow Priority", "a11.ext.fqi.flow_priority",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xF0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_num_qos_attribute_set,
|
|
|
|
{ "Number of QoS Attribute Sets", "a11.ext.fqi.num_qos_attribute_set",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0E,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_qos_attribute_setlen,
|
|
|
|
{ "QoS Attribute Set Length", "a11.ext.fqi.qos_attribute_setlen",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x01E0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_qos_attribute_setid,
|
|
|
|
{ "QoS Attribute SetID", "a11.ext.fqi.qos_attribute_setid",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x1FC0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_verbose,
|
|
|
|
{ "Verbose", "a11.ext.fqi.verbose",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x20,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_flow_profileid,
|
|
|
|
{ "Flow Profile Id", "a11.ext.fqi.flow_profileid",
|
|
|
|
FT_UINT24, BASE_DEC, NULL, 0x1FFFE0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqi_qos_granted_attribute_setid,
|
|
|
|
{ "QoS Attribute SetID", "a11.ext.fqi.qos_granted_attribute_setid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xFE,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_fqi_granted_qoslen,
|
|
|
|
{ "Granted QoS Length", "a11.ext.fqi.graqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Forward Granted QoS Length", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2011-06-06 19:17:32 +00:00
|
|
|
{ &hf_a11_rqi_flow_priority,
|
|
|
|
{ "Flow Priority", "a11.ext.rqi.flow_priority",
|
2012-04-23 16:23:57 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xF0,
|
|
|
|
NULL, HFILL }
|
2011-06-06 19:17:32 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_num_qos_attribute_set,
|
|
|
|
{ "Number of QoS Attribute Sets", "a11.ext.rqi.num_qos_attribute_set",
|
2012-04-23 16:23:57 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0E,
|
|
|
|
NULL, HFILL }
|
2011-06-06 19:17:32 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_qos_attribute_setlen,
|
|
|
|
{ "QoS Attribute Set Length", "a11.ext.rqi.qos_attribute_setlen",
|
2012-04-23 16:23:57 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x01E0,
|
|
|
|
NULL, HFILL }
|
2011-06-06 19:17:32 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_qos_attribute_setid,
|
|
|
|
{ "QoS Attribute SetID", "a11.ext.rqi.qos_attribute_setid",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x1FC0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_verbose,
|
|
|
|
{ "Verbose", "a11.ext.rqi.verbose",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x20,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_flow_profileid,
|
|
|
|
{ "Flow Profile Id", "a11.ext.rqi.flow_profileid",
|
|
|
|
FT_UINT24, BASE_DEC, NULL, 0x1FFFE0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_qos_granted_attribute_setid,
|
|
|
|
{ "QoS Attribute SetID", "a11.ext.rqi.qos_granted_attribute_setid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xFE,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_srid,
|
|
|
|
{ "SRID", "a11.ext.rqi.srid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Reverse Flow Entry SRID", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_flowcount,
|
|
|
|
{ "Reverse Flow Count", "a11.ext.rqi.flowcount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_flowid,
|
|
|
|
{ "Reverse Flow Id", "a11.ext.rqi.flowid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_entrylen,
|
|
|
|
{ "Entry Length", "a11.ext.rqi.entrylen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Reverse Flow Entry Length", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2012-09-23 00:12:14 +00:00
|
|
|
{ &hf_a11_rqi_entry_flag,
|
|
|
|
{ "Flags", "a11.ext.rqi.entry_flag",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_rqi_entry_flag_flow_state,
|
|
|
|
{ "Flow State", "a11.ext.rqi.entry_flag.flow_state",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_active_inactive), 0x01,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_rqi_flowstate,
|
|
|
|
{ "Flow State", "a11.ext.rqi.flowstate",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Reverse Flow State", HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_rqi_requested_qoslen,
|
|
|
|
{ "Requested QoS Length", "a11.ext.rqi.reqqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
"Reverse Requested QoS Length", HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2012-04-23 16:23:57 +00:00
|
|
|
{ &hf_a11_rqi_requested_qos,
|
|
|
|
{ "Requested QoS", "a11.ext.rqi.reqqos",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
"Reverse Requested QoS", HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2012-04-23 16:23:57 +00:00
|
|
|
{ &hf_a11_rqi_granted_qoslen,
|
|
|
|
{ "Granted QoS Length", "a11.ext.rqi.graqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"Reverse Granted QoS Length", HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2012-04-23 16:23:57 +00:00
|
|
|
{ &hf_a11_rqi_granted_qos,
|
|
|
|
{ "Granted QoS", "a11.ext.rqi.graqos",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
"Reverse Granted QoS", HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2012-04-23 16:23:57 +00:00
|
|
|
{ &hf_a11_fqui_flowcount,
|
|
|
|
{ "Forward QoS Update Flow Count", "a11.ext.fqui.flowcount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_rqui_flowcount,
|
|
|
|
{ "Reverse QoS Update Flow Count", "a11.ext.rqui.flowcount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqui_updated_qoslen,
|
|
|
|
{ "Forward Updated QoS Sub-Blob Length", "a11.ext.fqui.updatedqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_fqui_updated_qos,
|
|
|
|
{ "Forward Updated QoS Sub-Blob", "a11.ext.fqui.updatedqos",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-09-01 17:17:14 +00:00
|
|
|
{ &hf_a11_rqui_updated_qoslen,
|
|
|
|
{ "Reverse Updated QoS Sub-Blob Length", "a11.ext.rqui.updatedqoslen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_a11_rqui_updated_qos,
|
|
|
|
{ "Reverse Updated QoS Sub-Blob", "a11.ext.rqui.updatedqos",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2011-05-10 15:20:09 +00:00
|
|
|
{ &hf_a11_subsciber_profile_len,
|
2009-09-01 17:17:14 +00:00
|
|
|
{ "Subscriber QoS Profile Length", "a11.ext.sqp.profilelen",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2011-05-10 15:20:09 +00:00
|
|
|
{ &hf_a11_subsciber_profile,
|
2009-09-01 17:17:14 +00:00
|
|
|
{ "Subscriber QoS Profile", "a11.ext.sqp.profile",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0,
|
2012-04-23 16:23:57 +00:00
|
|
|
NULL, HFILL }
|
2009-09-01 17:17:14 +00:00
|
|
|
},
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_rohc_info_len,
|
|
|
|
{ "Forward ROHC Info Length", "a11.ext.ase.forwardlen",
|
2012-04-23 16:23:57 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_maxcid,
|
|
|
|
{ "Forward MAXCID", "a11.ext.ase.maxcid",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_mrru,
|
|
|
|
{ "Forward MRRU", "a11.ext.ase.mrru",
|
2011-05-11 01:06:37 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
2012-04-23 16:23:57 +00:00
|
|
|
},
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_large_cids,
|
|
|
|
{ "Forward Large CIDS", "a11.ext.ase.forwardlargecids",
|
2011-12-22 22:31:26 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x80,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_profile_count,
|
|
|
|
{ "Forward Profile Count", "a11.ext.ase.profilecount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2012-04-23 16:23:57 +00:00
|
|
|
},
|
2011-05-10 15:20:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
{ &hf_a11_ase_forward_profile,
|
2011-05-11 01:06:37 +00:00
|
|
|
{ "Forward Profile", "a11.ext.ase.forwardprofile",
|
2011-12-22 22:31:26 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(a11_rohc_profile_vals), 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
2011-05-10 16:05:14 +00:00
|
|
|
|
2011-05-10 15:20:09 +00:00
|
|
|
{ &hf_a11_ase_reverse_rohc_info_len,
|
|
|
|
{ "Reverse ROHC Info Length", "a11.ext.ase.reverselen",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_reverse_maxcid,
|
|
|
|
{ "Reverse MAXCID", "a11.ext.ase.revmaxcid",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_reverse_mrru,
|
|
|
|
{ "Reverse MRRU", "a11.ext.ase.revmrru",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_reverse_large_cids,
|
|
|
|
{ "Reverse Large CIDS", "a11.ext.ase.reverselargecids",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 128,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2011-05-10 15:20:09 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_a11_ase_reverse_profile_count,
|
|
|
|
{ "Reverse Profile Count", "a11.ext.ase.revprofilecount",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2011-05-11 01:06:37 +00:00
|
|
|
NULL, HFILL }
|
2012-04-23 16:23:57 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{ &hf_a11_ase_reverse_profile,
|
|
|
|
{ "Reverse Profile", "a11.ext.ase.reverseprofile",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(a11_rohc_profile_vals), 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_aut_flow_prof_sub_type,
|
|
|
|
{ "Sub type", "a11.aut_flow_prof.sub_type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(a11_aut_flow_prof_subtype_vals), 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_aut_flow_prof_sub_type_len,
|
|
|
|
{ "Length", "a11.aut_flow_prof.length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_aut_flow_prof_sub_type_value,
|
|
|
|
{ "Value", "a11.aut_flow_prof.value",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_serv_opt_prof_max_serv,
|
|
|
|
{ "Service-Connections-Per-Link-flow", "a11.serv_opt_prof.scplf",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_sub_type,
|
|
|
|
{ "Sub-Type", "a11.sub_type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_sub_type_length,
|
|
|
|
{ "Sub-Type Length", "a11.sub_type_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_serv_opt,
|
|
|
|
{ "Service Option", "a11.serviceoption",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_max_num_serv_opt,
|
|
|
|
{ "Max number of service instances of Service Option", "a11.serviceoption",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2013-04-05 22:16:02 +00:00
|
|
|
{ &hf_a11_bcmcs_stype,
|
|
|
|
{ "Protocol Type", "a11.ext.bcmcs.ptype",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(a11_bcmcs_stype_vals), 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_a11_bcmcs_entry_len,
|
|
|
|
{ "Entry length", "a11.ext.bcmcs.entry_len",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_a11,
|
|
|
|
&ett_a11_flags,
|
|
|
|
&ett_a11_ext,
|
|
|
|
&ett_a11_exts,
|
|
|
|
&ett_a11_radius,
|
|
|
|
&ett_a11_radiuses,
|
|
|
|
&ett_a11_ase,
|
|
|
|
&ett_a11_fqi_flowentry,
|
2011-06-06 19:17:32 +00:00
|
|
|
&ett_a11_fqi_requestedqos,
|
|
|
|
&ett_a11_fqi_qos_attribute_set,
|
2011-07-05 21:11:58 +00:00
|
|
|
&ett_a11_fqi_grantedqos,
|
2009-09-01 17:17:14 +00:00
|
|
|
&ett_a11_rqi_flowentry,
|
2011-07-05 21:11:58 +00:00
|
|
|
&ett_a11_rqi_requestedqos,
|
|
|
|
&ett_a11_rqi_qos_attribute_set,
|
|
|
|
&ett_a11_rqi_grantedqos,
|
2009-09-01 17:17:14 +00:00
|
|
|
&ett_a11_fqi_flags,
|
|
|
|
&ett_a11_fqi_entry_flags,
|
|
|
|
&ett_a11_rqi_entry_flags,
|
|
|
|
&ett_a11_fqui_flowentry,
|
|
|
|
&ett_a11_rqui_flowentry,
|
|
|
|
&ett_a11_subscriber_profile,
|
2011-07-05 21:11:58 +00:00
|
|
|
&ett_a11_forward_rohc,
|
2011-05-10 15:20:09 +00:00
|
|
|
&ett_a11_reverse_rohc,
|
2011-07-05 21:11:58 +00:00
|
|
|
&ett_a11_forward_profile,
|
|
|
|
&ett_a11_reverse_profile,
|
2012-04-23 16:23:57 +00:00
|
|
|
&ett_a11_aut_flow_profile_ids,
|
2013-05-25 17:06:40 +00:00
|
|
|
&ett_a11_bcmcs_entry,
|
2009-09-01 17:17:14 +00:00
|
|
|
};
|
|
|
|
|
2013-05-25 17:06:40 +00:00
|
|
|
static ei_register_info ei[] = {
|
|
|
|
{ &ei_a11_sub_type_length_not2, { "a11.sub_type_length.bad", PI_PROTOCOL, PI_WARN, "Sub-Type Length should be at least 2", EXPFILL }},
|
|
|
|
};
|
|
|
|
|
|
|
|
expert_module_t* expert_a11;
|
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
/* Register the protocol name and description */
|
|
|
|
proto_a11 = proto_register_protocol("3GPP2 A11", "3GPP2 A11", "a11");
|
|
|
|
|
|
|
|
/* Register the dissector by name */
|
|
|
|
new_register_dissector("a11", dissect_a11, proto_a11);
|
|
|
|
|
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
|
|
|
proto_register_field_array(proto_a11, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2013-05-25 17:06:40 +00:00
|
|
|
|
|
|
|
expert_a11 = expert_register_protocol(proto_a11);
|
|
|
|
expert_register_field_array(expert_a11, ei, array_length(ei));
|
2004-03-05 22:17:09 +00:00
|
|
|
}
|
2004-03-05 10:56:16 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_a11(void)
|
|
|
|
{
|
2009-09-01 17:17:14 +00:00
|
|
|
dissector_handle_t a11_handle;
|
2004-03-05 10:56:16 +00:00
|
|
|
|
2009-09-01 17:17:14 +00:00
|
|
|
a11_handle = find_dissector("a11");
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("udp.port", UDP_PORT_3GA11, a11_handle);
|
2011-12-25 11:25:39 +00:00
|
|
|
|
2012-04-23 16:23:57 +00:00
|
|
|
/* 3GPP2-Service-Option-Profile(74) */
|
|
|
|
radius_register_avp_dissector(VENDOR_THE3GPP2, 74, dissect_3gpp2_service_option_profile);
|
|
|
|
/* 3GPP2-Authorized-Flow-Profile-IDs(131) */
|
|
|
|
radius_register_avp_dissector(VENDOR_THE3GPP2, 131, dissect_3gpp2_radius_aut_flow_profile_ids);
|
2004-03-05 10:56:16 +00:00
|
|
|
}
|