WireGuard: implement responder handshake decryption
[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-or-later
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_scan(void);
31
32 #endif
33
34 /*
35  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
36  *
37  * Local variables:
38  * c-basic-offset: 4
39  * tab-width: 8
40  * indent-tabs-mode: nil
41  * End:
42  *
43  * vi: set shiftwidth=4 tabstop=8 expandtab:
44  * :indentSize=4:tabSize=8:noTabs=true:
45  */