snoop.h revision 60841
1/*
2 * Copyright (C) 1993-2000 by Darren Reed.
3 *
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
7 */
8
9#ifndef	__SNOOP_H__
10#define	__SNOOP_H__
11
12/*
13 * written to comply with the RFC (1761) from Sun.
14 * $Id: snoop.h,v 2.2 2000/03/13 22:10:27 darrenr Exp $
15 */
16struct	snoophdr	{
17	char	s_id[8];
18	int	s_v;
19	int	s_type;
20};
21
22#define	SNOOP_VERSION	2
23
24#define	SDL_8023	0
25#define	SDL_8024	1
26#define	SDL_8025	2
27#define	SDL_8026	3
28#define	SDL_ETHER	4
29#define	SDL_HDLC	5
30#define	SDL_CHSYNC	6
31#define	SDL_IBMCC	7
32#define	SDL_FDDI	8
33#define	SDL_OTHER	9
34
35#define	SDL_MAX		9
36
37
38struct	snooppkt	{
39	int	sp_olen;
40	int	sp_ilen;
41	int	sp_plen;
42	int	sp_drop;
43	int	sp_sec;
44	int	sp_usec;
45};
46
47#endif /* __SNOOP_H__ */
48