aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mip.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-05-03 17:34:49 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-05-03 17:34:49 +0000
commited0861abaa15294fbdfbb8a272a7146cacfab7e2 (patch)
tree61023d32cdd82a0bb8f1c08090bec11602cf093f /epan/dissectors/packet-mip.c
parent9b2e6086700af8edc103cda09020137befb2f8d0 (diff)
Add 3gpp2_type16.
svn path=/trunk/; revision=49147
Diffstat (limited to 'epan/dissectors/packet-mip.c')
-rw-r--r--epan/dissectors/packet-mip.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mip.c b/epan/dissectors/packet-mip.c
index ac899df7d9..490d347669 100644
--- a/epan/dissectors/packet-mip.c
+++ b/epan/dissectors/packet-mip.c
@@ -117,6 +117,7 @@ static int hf_mip_nvse_vendor_nvse_type = -1;
static int hf_mip_nvse_vendor_nvse_value = -1;
static int hf_mip_nvse_3gpp2_type = -1;
static int hf_mip_nvse_3gpp2_type17_entity = -1;
+static int hf_mip_nvse_3gpp2_type16_value = -1;
static int hf_mip_nvse_3gpp2_type17_subtype1 = -1;
static int hf_mip_nvse_3gpp2_type17_subtype2 = -1;
static int hf_mip_nvse_3gpp2_type17_length = -1;
@@ -409,6 +410,7 @@ static const value_string mip_cvse_verizon_cvse_types[]= {
static const value_string mip_nvse_3gpp2_type_vals[]= {
+ {16, "PPP Link Indicator"}, /* X.S0011-003-C v1.0 */
{17, "DNS server IP address"},
{0, NULL}
};
@@ -421,6 +423,13 @@ static const value_string mip_nvse_3gpp2_type17_entity_vals[]= {
{0, NULL}
};
+static const value_string mip_nvse_3gpp2_type17_vals[]= {
+ {0, "main service instance"},
+ {1, "negotiate PPP"},
+ {2, "do not negotiate PPP"},
+ {0, NULL}
+};
+
static dissector_handle_t ip_handle;
/* Code to dissect 3GPP2 extensions */
@@ -437,6 +446,9 @@ dissect_mip_priv_ext_3gpp2(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
offset+=2;
switch(type){
+ case 16: /* PPP Link Indicato X.S0011-003-C v1.0 */
+ proto_tree_add_item(tree, hf_mip_nvse_3gpp2_type16_value, tvb, offset, 2, ENC_BIG_ENDIAN);
+ break;
case 17: /* DNS server IP address X.S0011-002-C v3.0*/
/* Entity-Type */
proto_tree_add_item(tree, hf_mip_nvse_3gpp2_type17_entity, tvb, offset, 1, ENC_BIG_ENDIAN);
@@ -1361,6 +1373,11 @@ void proto_register_mip(void)
FT_UINT16, BASE_DEC, VALS(mip_nvse_3gpp2_type_vals), 0,
NULL, HFILL }
},
+ { &hf_mip_nvse_3gpp2_type16_value ,
+ { "value", "mip.ext.nvse.3gpp2.type16.value",
+ FT_UINT16, BASE_DEC, VALS(mip_nvse_3gpp2_type17_vals), 0,
+ NULL, HFILL }
+ },
{ &hf_mip_nvse_3gpp2_type17_entity,
{ "Entity-Type", "mip.ext.nvse.3gpp2.type17.entity",
FT_UINT8, BASE_DEC, VALS(mip_nvse_3gpp2_type17_entity_vals), 0,