summaryrefslogtreecommitdiff
path: root/packet-ospf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-24 22:59:37 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-24 22:59:37 +0000
commit5295e1850d1d991babbee7f69e2d472127289d60 (patch)
tree68f2f13a0bb3dfd78826a5c38682784c1ef24576 /packet-ospf.c
parent7cb2dc0099f42c9919f2b0a35940d8dcd7b015be (diff)
downloadwireshark-5295e1850d1d991babbee7f69e2d472127289d60.tar.gz
From Taisuke Sasaki: fix offsets of metrics in Inter-Area-Prefix-LSAs
and Inter-Area-Router-LSAs. svn path=/trunk/; revision=8773
Diffstat (limited to 'packet-ospf.c')
-rw-r--r--packet-ospf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-ospf.c b/packet-ospf.c
index 70020ab53f..210c0ebdce 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.76 2003/10/07 17:36:37 guy Exp $
+ * $Id: packet-ospf.c,v 1.77 2003/10/24 22:59:37 guy Exp $
*
* At this time, this module is able to analyze OSPF
* packets as specified in RFC2328. MOSPF (RFC1584) and other
@@ -1665,7 +1665,7 @@ dissect_ospf_v3_lsa(tvbuff_t *tvb, int offset, proto_tree *tree,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u (incorrect, should be 0)"),reserved);
/* metric */
- metric=tvb_get_ntoh24(tvb, offset+11);
+ metric=tvb_get_ntoh24(tvb, offset+1);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 1, 3,"Metric: %u",metric);
/* prefix length */
@@ -1706,8 +1706,8 @@ dissect_ospf_v3_lsa(tvbuff_t *tvb, int offset, proto_tree *tree,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u (incorrect, should be 0)"),reserved);
/* metric */
- metric=tvb_get_ntoh24(tvb, offset+6);
- proto_tree_add_text(ospf_lsa_tree, tvb, offset + 6, 3,"Metric: %u",metric);
+ metric=tvb_get_ntoh24(tvb, offset+5);
+ proto_tree_add_text(ospf_lsa_tree, tvb, offset + 5, 3,"Metric: %u",metric);
/* Destination Router ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 8, 4, "Destination Router ID: %s",