1999-10-08 07:41:33 +00:00
|
|
|
/* ascend-int.h
|
|
|
|
* Definitions for routines common to multiple modules in the Lucent/Ascend
|
|
|
|
* capture file reading code code, but not used outside that code.
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-10-08 07:41:33 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
1999-10-08 07:41:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASCEND_INT_H__
|
|
|
|
#define __ASCEND_INT_H__
|
|
|
|
|
2011-06-04 21:20:57 +00:00
|
|
|
#include <glib.h>
|
2013-02-28 19:35:59 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2011-06-04 21:20:57 +00:00
|
|
|
|
2013-05-16 21:04:41 +00:00
|
|
|
typedef struct {
|
|
|
|
time_t inittime;
|
|
|
|
gboolean adjusted;
|
|
|
|
gint64 next_packet_seek_start;
|
|
|
|
} ascend_t;
|
|
|
|
|
2016-03-31 01:44:01 +00:00
|
|
|
typedef struct {
|
|
|
|
FILE_T fh;
|
|
|
|
const gchar *ascend_parse_error;
|
2016-09-16 01:32:21 +00:00
|
|
|
int err;
|
|
|
|
gchar *err_info;
|
2016-03-31 01:44:01 +00:00
|
|
|
struct ascend_phdr *pseudo_header;
|
|
|
|
guint8 *pkt_data;
|
|
|
|
|
|
|
|
gboolean saw_timestamp;
|
|
|
|
guint32 timestamp;
|
|
|
|
|
|
|
|
gint64 first_hexbyte;
|
|
|
|
guint32 wirelen;
|
|
|
|
guint32 caplen;
|
|
|
|
time_t secs;
|
|
|
|
guint32 usecs;
|
|
|
|
} ascend_state_t;
|
|
|
|
|
|
|
|
extern int
|
2018-02-09 00:19:12 +00:00
|
|
|
run_ascend_parser(FILE_T fh, wtap_rec *rec, guint8 *pd,
|
2016-03-31 01:44:01 +00:00
|
|
|
ascend_state_t *parser_state, int *err, gchar **err_info);
|
1999-10-08 07:45:31 +00:00
|
|
|
|
1999-10-08 07:41:33 +00:00
|
|
|
#endif /* ! __ASCEND_INT_H__ */
|