1 /**-*-C-*-**********************************************************************
3 * State machine for text import
4 * November 2010, Jaap Keuter <jaap.keuter@xs4all.nl>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * Based on text2pcap.h by Ashok Narayanan <ashokn@cisco.com>
12 * SPDX-License-Identifier: GPL-2.0-or-later*
13 *******************************************************************************/
16 #ifndef __TEXT_IMPORT_H__
17 #define __TEXT_IMPORT_H__
21 #include <wiretap/wtap.h>
25 #endif /* __cplusplus */
27 #define IMPORT_MAX_PACKET WTAP_MAX_PACKET_SIZE_STANDARD
29 /* The parameter interface */
39 enum dummy_header_type
53 char *import_text_filename;
54 FILE *import_text_file;
55 enum offset_type offset_type;
56 gboolean date_timestamp;
57 gboolean has_direction;
58 char *date_timestamp_format;
64 /* Dummy header info (if encapsulation == 1) */
65 enum dummy_header_type dummy_header_type;
73 guint max_frame_length;
76 int text_import(text_import_info_t *info);
80 #endif /* __cplusplus */
82 #endif /* __TEXT_IMPORT_H__ */
90 * indent-tabs-mode: nil
93 * ex: set shiftwidth=4 tabstop=8 expandtab:
94 * :indentSize=4:tabSize=8:noTabs=true: