update for usage with wireshark 1.8

master
Sebastian Reichel 2012-07-04 01:50:58 +02:00
parent 5b28180878
commit 51e96ec112
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#use this to compile with USB support
#CFLAGS?=-DISI_USB
PREFIX?=/usr
PLUGINDIR?=lib/wireshark/libwireshark1/plugins
PLUGINDIR?=lib/wireshark/libwireshark2/plugins
WIRESHARKDIR?=/usr/include/wireshark

View File

@ -520,9 +520,9 @@ static void dissect_isi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
dst = tvb_get_guint8(tvb, 0);
src = tvb_get_guint8(tvb, 1);
if(tvb->length - 8 < length) {
expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "Broken Length (%d > %d)", length, tvb->length-8);
length = tvb->length - 8;
if(tvb_length(tvb) - 8 < length) {
expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "Broken Length (%d > %d)", length, tvb_length(tvb)-8);
length = tvb_length(tvb) - 8;
}
col_set_str(pinfo->cinfo, COL_DEF_SRC, val_to_str_const(src, hf_isi_device, "Unknown"));