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 * SPDX-License-Identifier: GPL-2.0-or-later
14 #ifndef __W_NETSCREEN_H__
15 #define __W_NETSCREEN_H__
20 /* Magic text to check for NetScreen snoop output */
21 #define NETSCREEN_HDR_MAGIC_STR1 "(i) len="
22 #define NETSCREEN_HDR_MAGIC_STR2 "(o) len="
24 /* Magic text for start of packet */
25 #define NETSCREEN_REC_MAGIC_STR1 NETSCREEN_HDR_MAGIC_STR1
26 #define NETSCREEN_REC_MAGIC_STR2 NETSCREEN_HDR_MAGIC_STR2
28 #define NETSCREEN_LINE_LENGTH 128
29 #define NETSCREEN_HEADER_LINES_TO_CHECK 32
30 #define NETSCREEN_MAX_INFOLINES 8
31 #define NETSCREEN_SPACES_ON_INFO_LINE 14
32 #define NETSCREEN_MAX_INT_NAME_LENGTH 16
34 #define NETSCREEN_INGRESS false
35 #define NETSCREEN_EGRESS true
37 wtap_open_return_val
netscreen_open(wtap
*wth
, int *err
, char **err_info
);