3 * Juniper NetScreen snoop output parser
4 * Created by re-using a lot of code from cosine.c
5 * Copyright (c) 2007 by Sake Blok <sake@euronet.nl>
8 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __W_NETSCREEN_H__
27 #define __W_NETSCREEN_H__
32 /* Magic text to check for NetScreen snoop output */
33 #define NETSCREEN_HDR_MAGIC_STR1 "(i) len="
34 #define NETSCREEN_HDR_MAGIC_STR2 "(o) len="
36 /* Magic text for start of packet */
37 #define NETSCREEN_REC_MAGIC_STR1 NETSCREEN_HDR_MAGIC_STR1
38 #define NETSCREEN_REC_MAGIC_STR2 NETSCREEN_HDR_MAGIC_STR2
40 #define NETSCREEN_LINE_LENGTH 128
41 #define NETSCREEN_HEADER_LINES_TO_CHECK 32
42 #define NETSCREEN_MAX_INFOLINES 8
43 #define NETSCREEN_SPACES_ON_INFO_LINE 14
44 #define NETSCREEN_MAX_INT_NAME_LENGTH 16
46 #define NETSCREEN_INGRESS FALSE
47 #define NETSCREEN_EGRESS TRUE
49 wtap_open_return_val netscreen_open(wtap *wth, int *err, gchar **err_info);