diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-05-29 18:30:26 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-05-29 18:30:26 +0200 |
commit | 4af535f240fcd6804785aa473b800b021d453cb4 (patch) | |
tree | c7c35dde13760b98c65e5a3c925bc395dd70dd6c /src/isi-gpds.c | |
parent | 0d0f1085dc41c2090bb8716833a8e5bc214f284a (diff) | |
download | isi-wireshark-plugin-4af535f240fcd6804785aa473b800b021d453cb4.tar.bz2 |
update for usage with wireshark 1.12
Diffstat (limited to 'src/isi-gpds.c')
-rw-r--r-- | src/isi-gpds.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/isi-gpds.c b/src/isi-gpds.c index 02e7400..ef6cfba 100644 --- a/src/isi-gpds.c +++ b/src/isi-gpds.c @@ -23,7 +23,6 @@ #include <glib.h> #include <epan/prefs.h> #include <epan/packet.h> -#include <epan/expert.h> #include "packet-isi.h" #include "isi-gpds.h" @@ -684,7 +683,7 @@ static void _sub_gpds_qos_neg_info(tvbuff_t *tvb, proto_tree *tree) { static void _sub_gpds_string(guint32 hf, guint8 offset, tvbuff_t *tvb, proto_tree *tree) { guint8 l = tvb_get_guint8(tvb, offset); - proto_tree_add_string(tree, hf, tvb, offset+1, l, tvb_memdup(tvb, offset+1, l)); + proto_tree_add_string(tree, hf, tvb, offset+1, l, tvb_memdup(NULL, tvb, offset+1, l)); } static void _sub_gpds_dns_address_req_info(tvbuff_t *tvb, proto_tree *tree) { @@ -762,7 +761,7 @@ static void dissect_isi_gpds_subblock(guint8 sptype, tvbuff_t *tvb, packet_info case 0xFB: /* GPDS_SHARED_MBMS_SERVICE_LIST_INFO */ case 0xFC: /* GPDS_SHARED_INITIAL_DL_DCH_RATE */ default: - expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "unsupported subblock"); + expert_add_info_format(pinfo, item, &ei_isi_unknown_packet, "unsupported subblock"); break; } } @@ -956,7 +955,7 @@ static void dissect_isi_gpds(tvbuff_t *tvb, packet_info *pinfo, proto_item *isit case 0xEE: /* GPDS_RESP */ default: col_set_str(pinfo->cinfo, COL_INFO, "unhandled GPDS packet"); - expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "unsupported packet"); + expert_add_info_format(pinfo, item, &ei_isi_unknown_packet, "unsupported packet"); break; } } |