Start using SPDX license identifiers.
[metze/wireshark/wip.git] / text2pcap.h
1 /**-*-C-*-**********************************************************************
2  *
3  * text2pcap.h
4  *
5  * Utility to convert an ASCII hexdump into a libpcap-format capture file
6  *
7  * (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
8  *
9  * Wireshark - Network traffic analyzer
10  * By Gerald Combs <gerald@wireshark.org>
11  * Copyright 1998 Gerald Combs
12  *
13  * SPDX-License-Identifier: GPL-2.0+
14  */
15
16
17 #ifndef TEXT2PCAP_H
18 #define TEXT2PCAP_H
19
20 typedef enum {
21     T_BYTE = 1,
22     T_OFFSET,
23     T_DIRECTIVE,
24     T_TEXT,
25     T_EOL
26 } token_t;
27
28 int parse_token(token_t token, char *str);
29
30 int text2pcap_lex(void);
31
32 int text2pcap_lex_destroy(void);
33
34 #endif
35
36 /*
37  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
38  *
39  * Local variables:
40  * c-basic-offset: 4
41  * tab-width: 8
42  * indent-tabs-mode: nil
43  * End:
44  *
45  * vi: set shiftwidth=4 tabstop=8 expandtab:
46  * :indentSize=4:tabSize=8:noTabs=true:
47  */