diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-10-31 17:46:11 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-10-31 17:46:11 +0000 |
commit | 558e714449ea30104c2bb7f35421328125a2a24a (patch) | |
tree | a8d7d038636feee1bb1addd3488aedc7df8716a9 /wiretap/toshiba.h | |
parent | 10fdc90bb0784b067d4e77c73907c6adfa5f5d08 (diff) |
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
Diffstat (limited to 'wiretap/toshiba.h')
-rw-r--r-- | wiretap/toshiba.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <gram@xiexie.org> + * + * 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); |