From 558e714449ea30104c2bb7f35421328125a2a24a Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Sun, 31 Oct 1999 17:46:11 +0000 Subject: Add a module to wiretap to be able to read trace files from Toshiba's line of ISDN routers. Much like the ascend reader, this module reads an ASCII hex dump of trace data. Rearranged the order in which wiretap tries trace files, to keep the ASCII-readers (ascend and toshiba) at the end, and put the binary-readers (everything else) at the front of the list. If a telnet session of and ascend trace or toshiba trace were captured near the beginning of another trace, wiretap might think the trace was ascend or toshiba if it tried that module first. Fixed the way wtap_seek_read() selects functions to call. It was using the encap type instead of the file type. We got lucky because WTAP_ENCAP_ASCEND == WTAP_FILE_ASCEND svn path=/trunk/; revision=952 --- wiretap/toshiba.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 wiretap/toshiba.h (limited to 'wiretap/toshiba.h') diff --git a/wiretap/toshiba.h b/wiretap/toshiba.h new file mode 100644 index 0000000000..6d4c225808 --- /dev/null +++ b/wiretap/toshiba.h @@ -0,0 +1,25 @@ +/* toshiba.h + * + * $Id: toshiba.h,v 1.1 1999/10/31 17:46:10 gram Exp $ + * + * Wiretap Library + * Copyright (c) 1998 by Gilbert Ramirez + * + * 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 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + +int toshiba_open(wtap *wth, int *err); +int toshiba_seek_read (FILE *fh, int seek_off, guint8 *pd, int len); -- cgit v1.2.3