aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bssgp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-03-06 09:42:41 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-03-06 09:42:41 +0000
commitb4941ca580943dcd4d867d82bfb5a71675330568 (patch)
treef772851978f15391b92379cb48927a317309fc31 /epan/dissectors/packet-bssgp.c
parent9a7ad380af71b80f1a1bbe8acd0b75194fcb7324 (diff)
Prepare to remove old bssgp code by changing exports.
svn path=/trunk/; revision=36142
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r--epan/dissectors/packet-bssgp.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index cadc0315ae..230aba20fd 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -67,6 +67,17 @@
* For now, we'll use ENC_BIG_ENDIAN, now that we have ENC_BIG_ENDIAN and
* REP_LITTLE_ENDIAN definitions.
*/
+
+
+typedef struct {
+ guint8 iei;
+ const char *name;
+ guint8 presence_req;
+ int format;
+ gint16 value_length; /* in bytes (read from capture)*/
+ gint16 total_length; /* as specified, or 0 if unspecified */
+} bssgp_ie_t;
+
#define BSSGP_TRANSLATION_MAX_LEN 50
#define BSSGP_MASK_LEFT_OCTET_HALF 0xf0
#define BSSGP_MASK_RIGHT_OCTET_HALF 0x0f
@@ -2022,7 +2033,7 @@ decode_iei_bvci(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset) {
"BVCI %u", bvci);
}
-const value_string tab_cause[] = {
+static const value_string tab_cause[] = {
{ 0x00, "Processor overload" },
{ 0x01, "Equipment failure" },
{ 0x02, "Transit network service failure" },
@@ -6499,7 +6510,8 @@ static const value_string bssgp_cause_vals[] = {
{ 0x4b, "Invalid CSG cell" },
{ 0, NULL },
};
-static value_string_ext bssgp_cause_vals_ext = VALUE_STRING_EXT_INIT(bssgp_cause_vals);
+
+value_string_ext bssgp_cause_vals_ext = VALUE_STRING_EXT_INIT(bssgp_cause_vals);
static guint16
de_bssgp_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
@@ -9690,7 +9702,7 @@ bssgp_suspend(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len)
/*
* 10.3.7 SUSPEND-ACK
*/
-static void
+void
bssgp_suspend_ack(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len)
{
guint32 curr_offset;