From Stig Bjorlykke:
[obnox/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  * $Id$
10  *
11  * Wireshark - Network traffic analyzer
12  * By Gerald Combs <gerald@wireshark.org>
13  * Copyright 1998 Gerald Combs
14  *
15  *
16  *
17  * This program is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU General Public License
19  * as published by the Free Software Foundation; either version 2
20  * of the License, or (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
30  *
31  *******************************************************************************/
32
33
34 #ifndef TEXT2PCAP_H
35 #define TEXT2PCAP_H
36
37 typedef enum {
38     T_BYTE = 1,
39     T_OFFSET,
40     T_DIRECTIVE,
41     T_TEXT,
42     T_EOL
43 } token_t;
44
45 void parse_token(token_t token, char *str);
46
47 int yylex(void);
48
49 #endif