xref: /illumos-gate/usr/src/cmd/ipf/lib/snoop.h (revision fa2ae296aca5e8bb860ad1cb7ebfedc83d914ef8)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  */
6 
7 #ifndef	__SNOOP_H__
8 #define	__SNOOP_H__
9 
10 /*
11  * written to comply with the RFC (1761) from Sun.
12  * $Id: snoop.h,v 2.3 2001/06/09 17:09:23 darrenr Exp $
13  */
14 struct	snoophdr	{
15 	char	s_id[8];
16 	int	s_v;
17 	int	s_type;
18 };
19 
20 #define	SNOOP_VERSION	2
21 
22 #define	SDL_8023	0
23 #define	SDL_8024	1
24 #define	SDL_8025	2
25 #define	SDL_8026	3
26 #define	SDL_ETHER	4
27 #define	SDL_HDLC	5
28 #define	SDL_CHSYNC	6
29 #define	SDL_IBMCC	7
30 #define	SDL_FDDI	8
31 #define	SDL_OTHER	9
32 
33 #define	SDL_MAX		9
34 
35 
36 struct	snooppkt	{
37 	int	sp_olen;
38 	int	sp_ilen;
39 	int	sp_plen;
40 	int	sp_drop;
41 	int	sp_sec;
42 	int	sp_usec;
43 };
44 
45 #endif /* __SNOOP_H__ */
46