aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-3g-a11.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2004-11-24 12:25:37 +0000
committerAnders Broman <anders.broman@ericsson.com>2004-11-24 12:25:37 +0000
commita8487d1bc35f9769b836dfb0d10c55073bcda1b8 (patch)
tree944c34feea3712c9fa71690257d552020a76c441 /epan/dissectors/packet-3g-a11.c
parentbfe94108ddab8e0976b802b2211df3ebd74b71cd (diff)
add some 3gpp2 AVP:s to packet-radius.c and use "vendor" table packet-3g-a11.c
svn path=/trunk/; revision=12595
Diffstat (limited to 'epan/dissectors/packet-3g-a11.c')
-rw-r--r--epan/dissectors/packet-3g-a11.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/epan/dissectors/packet-3g-a11.c b/epan/dissectors/packet-3g-a11.c
index 1c2aabbcb0..1ca03230b8 100644
--- a/epan/dissectors/packet-3g-a11.c
+++ b/epan/dissectors/packet-3g-a11.c
@@ -41,6 +41,8 @@
#include <time.h>
#include <epan/packet.h>
+/* Include vendor id translation */
+#include <epan/sminmpec.h>
/* Initialize the protocol and registered fields */
static int proto_a11 = -1;
@@ -97,7 +99,6 @@ static gint ett_a11_radiuses = -1;
/* Port used for Mobile IP based Tunneling Protocol (A11) */
#define UDP_PORT_3GA11 699
#define NTP_BASETIME 2208988800ul
-#define THE3GPP2_VENDOR_ID 0x159f
typedef enum {
REGISTRATION_REQUEST = 1,
@@ -118,6 +119,11 @@ static const value_string a11_types[] = {
{0, NULL},
};
+static const value_string a11_ses_ptype_vals[] = {
+ {0x8881, "Unstructured Byte Stream"},
+ {0, NULL},
+};
+
static const value_string a11_reply_codes[]= {
{0, "Reg Accepted"},
{9, "Connection Update"},
@@ -356,7 +362,7 @@ dissect_a11_radius( tvbuff_t *tvb, int offset, proto_tree *tree, int app_len)
{
radius_vendor_id = tvb_get_ntohl(tvb, offset +2);
- if(radius_vendor_id != THE3GPP2_VENDOR_ID)
+ if(radius_vendor_id != VENDOR_THE3GPP2)
{
ti = proto_tree_add_text(radius_tree, tvb, offset, radius_len,
"Unknown Vendor-specific Attribute (Vendor Id: %x)", radius_vendor_id);
@@ -1053,12 +1059,12 @@ void proto_register_a11(void)
},
{ &hf_a11_ses_ptype,
{ "Protocol Type", "a11.ext.ptype",
- FT_UINT16, BASE_HEX, NULL, 0,
+ FT_UINT16, BASE_HEX, VALS(a11_ses_ptype_vals), 0,
"Protocol Type.", HFILL }
},
{ &hf_a11_vse_vid,
{ "Vendor ID", "a11.ext.vid",
- FT_UINT32, BASE_HEX, NULL, 0,
+ FT_UINT32, BASE_HEX, VALS(sminmpec_values), 0,
"Vendor ID.", HFILL }
},
{ &hf_a11_vse_apptype,