From Ivan Sy (with minor modifications):
[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 /* Magic text to check for NetScreen snoop output */
32 #define NETSCREEN_HDR_MAGIC_STR1        "(i) len="
33 #define NETSCREEN_HDR_MAGIC_STR2        "(o) len="
34
35 /* Magic text for start of packet */
36 #define NETSCREEN_REC_MAGIC_STR1        NETSCREEN_HDR_MAGIC_STR1
37 #define NETSCREEN_REC_MAGIC_STR2        NETSCREEN_HDR_MAGIC_STR2
38
39 #define NETSCREEN_LINE_LENGTH           128
40 #define NETSCREEN_HEADER_LINES_TO_CHECK 32
41 #define NETSCREEN_MAX_INFOLINES         8
42 #define NETSCREEN_SPACES_ON_INFO_LINE   14
43 #define NETSCREEN_MAX_INT_NAME_LENGTH   16
44
45 #define NETSCREEN_INGRESS               FALSE
46 #define NETSCREEN_EGRESS                TRUE
47
48
49 #define NETSCREEN_MAX_PACKET_LEN        65536
50
51 int netscreen_open(wtap *wth, int *err, gchar **err_info);
52
53 #endif