diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-03 04:56:46 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-03 04:56:46 +0000 |
commit | d939a63ae28c17f97ad6cc6bafb1e1ad7169272b (patch) | |
tree | 1243cf363092206a1a50c7212ed84fee958369b1 /packet-ospf.c | |
parent | 2e54d1cad358af56682577ca9178637a2c123d47 (diff) |
Use the "pinfo" argument, rather than the global "pi", to refer to the
packet information in tvbuffified dissectors.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3645 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ospf.c')
-rw-r--r-- | packet-ospf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-ospf.c b/packet-ospf.c index 103a04aad3..119ed1c979 100644 --- a/packet-ospf.c +++ b/packet-ospf.c @@ -2,7 +2,7 @@ * Routines for OSPF packet disassembly * (c) Copyright Hannes R. Boehm <hannes@boehm.org> * - * $Id: packet-ospf.c,v 1.40 2001/05/14 18:25:34 guy Exp $ + * $Id: packet-ospf.c,v 1.41 2001/07/03 04:56:45 guy Exp $ * * At this time, this module is able to analyze OSPF * packets as specified in RFC2328. MOSPF (RFC1584) and other @@ -15,7 +15,6 @@ * By Gerald Combs <gerald@ethereal.com> * Copyright 1998 Gerald Combs * - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -221,7 +220,7 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) length = tvb_length(tvb); /* XXX - include only the length from the OSPF header? */ reported_length = tvb_reported_length(tvb); - if (!pi.fragmented && length >= reported_length + if (!pinfo->fragmented && length >= reported_length && length >= OSPF_HEADER_LENGTH) { /* The packet isn't part of a fragmented datagram and isn't truncated, so we can checksum it. */ |