aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-bssgp.c8
-rw-r--r--epan/dissectors/packet-nsip.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index d50f70ab93..2cf1872fae 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -54,7 +54,7 @@
#define BSSGP_MOBILE_IDENTITY_TYPE_NO_IDENTITY 0
#define BSSGP_SEP ", "
#define BSSGP_NOT_DECODED "< Not decoded yet >"
-const guint16 BSSGP_UNKNOWN = -1;
+#define BSSGP_UNKNOWN -1
static dissector_handle_t bssgp_handle;
static dissector_handle_t llc_handle;
@@ -5561,11 +5561,15 @@ static void
dissect_bssgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
guint8 pdutype;
- build_info_t bi = { tvb, 0, pinfo, NULL, tree, FALSE, FALSE };
+ build_info_t bi = { NULL, 0, NULL, NULL, NULL, FALSE, FALSE };
proto_item *ti;
proto_tree *bssgp_tree;
+ bi.tvb = tvb;
+ bi.pinfo = pinfo;
+ bi.parent_tree = tree;
+
pinfo->current_proto = "BSSGP";
if (check_col(pinfo->cinfo, COL_PROTOCOL))
diff --git a/epan/dissectors/packet-nsip.c b/epan/dissectors/packet-nsip.c
index 161056dc74..37375cf1ba 100644
--- a/epan/dissectors/packet-nsip.c
+++ b/epan/dissectors/packet-nsip.c
@@ -1038,12 +1038,16 @@ decode_pdu(guint8 pdu_type, build_info_t *bi) {
static void
dissect_nsip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 pdu_type;
- build_info_t bi = { tvb, 0, pinfo, NULL, tree };
+ build_info_t bi = { NULL, 0, NULL, NULL, NULL };
proto_item *ti;
proto_tree *nsip_tree;
char ericsson_src[ERICSSON_DESCR_LEN];
char ericsson_dst[ERICSSON_DESCR_LEN];
+ bi.tvb = tvb;
+ bi.pinfo = pinfo;
+ bi.parent_tree = tree;
+
pinfo->current_proto = "NSIP";
if (check_col(pinfo->cinfo, COL_PROTOCOL))