Do case insensitive search for lua scripts to load.
[obnox/wireshark/wip.git] / wiretap / netscreen.h
1 /* netscreen.h
2  *
3  * $Id$
4  *
5  * Juniper NetScreen snoop output parser
6  * Created by re-using a lot of code from cosine.c
7  * Copyright (c) 2007 by Sake Blok <sake@euronet.nl>
8  *
9  * Wiretap Library
10  * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  *
26  */
27
28 #ifndef __W_NETSCREEN_H__
29 #define __W_NETSCREEN_H__
30
31 #include <glib.h>
32 #include <wtap.h>
33
34 /* Magic text to check for NetScreen snoop output */
35 #define NETSCREEN_HDR_MAGIC_STR1        "(i) len="
36 #define NETSCREEN_HDR_MAGIC_STR2        "(o) len="
37
38 /* Magic text for start of packet */
39 #define NETSCREEN_REC_MAGIC_STR1        NETSCREEN_HDR_MAGIC_STR1
40 #define NETSCREEN_REC_MAGIC_STR2        NETSCREEN_HDR_MAGIC_STR2
41
42 #define NETSCREEN_LINE_LENGTH           128
43 #define NETSCREEN_HEADER_LINES_TO_CHECK 32
44 #define NETSCREEN_MAX_INFOLINES         8
45 #define NETSCREEN_SPACES_ON_INFO_LINE   14
46 #define NETSCREEN_MAX_INT_NAME_LENGTH   16
47
48 #define NETSCREEN_INGRESS               FALSE
49 #define NETSCREEN_EGRESS                TRUE
50
51
52 #define NETSCREEN_MAX_PACKET_LEN        65536
53
54 int netscreen_open(wtap *wth, int *err, gchar **err_info);
55
56 #endif