diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 04:52:51 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 04:52:51 +0000 |
commit | fcd5b352af60e034a4b63601272b43b6644029cd (patch) | |
tree | b423f343624fa9219216fac49dd6a23b2c4d5586 /packet-ospf.c | |
parent | 7537283cc691e6370db67fd5b0e393583074bf7f (diff) | |
download | wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.gz wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.bz2 wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.zip |
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-ospf.c')
-rw-r--r-- | packet-ospf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-ospf.c b/packet-ospf.c index a211f50462..c27f41a4c1 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.48 2001/11/21 02:01:05 guy Exp $ + * $Id: packet-ospf.c,v 1.49 2001/11/26 04:52:50 hagbard Exp $ * * At this time, this module is able to analyze OSPF * packets as specified in RFC2328. MOSPF (RFC1584) and other @@ -206,6 +206,8 @@ static gint ett_ospf_lsa_mpls_router = -1; static gint ett_ospf_lsa_mpls_link = -1; static gint ett_ospf_lsa_mpls_link_stlv = -1; +static dissector_handle_t data_handle; + static void dissect_ospf_hello(tvbuff_t*, int, proto_tree*, guint8); static void dissect_ospf_db_desc(tvbuff_t*, int, proto_tree*, guint8); static void dissect_ospf_ls_req(tvbuff_t*, int, proto_tree*, guint8); @@ -420,7 +422,7 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; default: - dissect_data(tvb, ospf_header_length, pinfo, tree); + call_dissector(data_handle,tvb_new_subset(tvb, ospf_header_length,-1,tvb_reported_length_remaining(tvb,ospf_header_length)), pinfo, tree); break; } } @@ -1821,4 +1823,5 @@ void proto_reg_handoff_ospf(void) { dissector_add("ip.proto", IP_PROTO_OSPF, dissect_ospf, proto_ospf); + data_handle = find_dissector("data"); } |