packet-dcerpc: fix dissecting of decrypted payload
[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  *
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28  *
29  *******************************************************************************/
30
31
32 #ifndef TEXT2PCAP_H
33 #define TEXT2PCAP_H
34
35 typedef enum {
36     T_BYTE = 1,
37     T_OFFSET,
38     T_DIRECTIVE,
39     T_TEXT,
40     T_EOL
41 } token_t;
42
43 void parse_token(token_t token, char *str);
44
45 int yylex(void);
46
47 #endif
48
49 /*
50  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
51  *
52  * Local variables:
53  * c-basic-offset: 4
54  * tab-width: 8
55  * indent-tabs-mode: nil
56  * End:
57  *
58  * vi: set shiftwidth=4 tabstop=8 expandtab:
59  * :indentSize=4:tabSize=8:noTabs=true:
60  */