diff options
author | Olivier Abad <oabad@noos.fr> | 2000-02-18 13:41:26 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2000-02-18 13:41:26 +0000 |
commit | bb2454e8bd4fc8f4f479a46898bff3c47f3af5bd (patch) | |
tree | 5a1805fc0370fc404120d3acba0e50327307ffaa /capture.c | |
parent | 5aa0493bb3dc3ae9ba18ef79bdf388d26fcde873 (diff) | |
download | wireshark-bb2454e8bd4fc8f4f479a46898bff3c47f3af5bd.tar.gz wireshark-bb2454e8bd4fc8f4f479a46898bff3c47f3af5bd.tar.bz2 wireshark-bb2454e8bd4fc8f4f479a46898bff3c47f3af5bd.zip |
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
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.96 2000/02/15 21:01:53 gram Exp $ + * $Id: capture.c,v 1.97 2000/02/18 13:41:23 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -102,6 +102,7 @@ #include "packet-ppp.h" #include "packet-raw.h" #include "packet-tr.h" +#include "packet-x25.h" int sync_mode; /* fork a child to do the capture, and sync between them */ static int sync_pipe[2]; /* used to sync father */ @@ -164,6 +165,10 @@ do_capture(char *capfile_name) g_assert(cf.save_file == NULL); cf.save_file = capfile_name; + /* The hash table used by the X.25 dissector must be re-initialized + * before starting a new capture */ + reinit_x25_hashtable(); + if (sync_mode) { /* use fork() for capture */ #ifndef _WIN32 int fork_child; |