diff options
Diffstat (limited to 'epan/dissectors/packet-olsr.c')
-rw-r--r-- | epan/dissectors/packet-olsr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-olsr.c b/epan/dissectors/packet-olsr.c index 63968b81e4..2775933869 100644 --- a/epan/dissectors/packet-olsr.c +++ b/epan/dissectors/packet-olsr.c @@ -538,13 +538,13 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi guint16 packet_len; /* Does this packet have a valid message type at the beginning? */ - if (tvb_captured_length(tvb) < 4) { + if (tvb_length(tvb) < 4) { col_add_fstr(pinfo->cinfo, COL_INFO, "OLSR Packet, Length: %u Bytes (not enough data in packet)", - tvb_captured_length(tvb)); + tvb_length(tvb)); return 0; /* not enough bytes for the packet length */ } packet_len = tvb_get_ntohs(tvb, 0); - if (packet_len > tvb_captured_length(tvb)) { + if (packet_len > tvb_length(tvb)) { col_add_fstr(pinfo->cinfo, COL_INFO, "OLSR Packet, Length: %u Bytes (not enough data in packet)", packet_len); return 0; } @@ -678,7 +678,7 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi offset = message_end; } /* end while for message alive */ - return tvb_captured_length(tvb); + return tvb_length(tvb); } /* end Dissecting */ /*-----------Register the Dissector for OLSR--------------*/ |