Witness: working witness.cnf
[wireshark-wip.git] / wiretap / netscreen.h
blob9d6e9fe0e412453cfb8a59b3954e930bee40b8bb
1 /* netscreen.h
3 * $Id$
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>
9 * Wiretap Library
10 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #ifndef __W_NETSCREEN_H__
29 #define __W_NETSCREEN_H__
31 #include <glib.h>
32 #include <wtap.h>
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="
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
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
48 #define NETSCREEN_INGRESS FALSE
49 #define NETSCREEN_EGRESS TRUE
52 #define NETSCREEN_MAX_PACKET_LEN 65536
54 int netscreen_open(wtap *wth, int *err, gchar **err_info);
56 #endif