From bb2454e8bd4fc8f4f479a46898bff3c47f3af5bd Mon Sep 17 00:00:00 2001 From: Olivier Abad Date: Fri, 18 Feb 2000 13:41:26 +0000 Subject: Renamed init_dissect_x25() to reinit_x25_hashtable() and actually used it ! This function is used to re-initialize the hash table used by the X.25 dissector to record the upper layer protocol used by each VC. The hash table should be re-initialized each time we read / start a new capture. I moved the definition of the function from packet.h to packet-x25.h, and added calls to reinit_x25_hashtable() in read_cap_file (file.c) and do_capture (capture.c). svn path=/trunk/; revision=1644 --- packet-x25.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-x25.c') diff --git a/packet-x25.c b/packet-x25.c index e8e44287b1..23141ec8ba 100644 --- a/packet-x25.c +++ b/packet-x25.c @@ -2,7 +2,7 @@ * Routines for x25 packet disassembly * Olivier Abad * - * $Id: packet-x25.c,v 1.18 2000/02/15 21:03:29 gram Exp $ + * $Id: packet-x25.c,v 1.19 2000/02/18 13:41:25 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -201,7 +201,7 @@ free_vc_info(vc_info *pt) } void -init_dissect_x25() +reinit_x25_hashtable() { int i; -- cgit v1.2.3