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