2005-04-25 18:20:15 +00:00
|
|
|
/* $FreeBSD$ */
|
2005-04-25 17:31:50 +00:00
|
|
|
|
1997-02-09 22:50:16 +00:00
|
|
|
/*
|
2013-08-11 14:28:45 +00:00
|
|
|
* Copyright (C) 2012 by Darren Reed.
|
1997-02-09 22:50:16 +00:00
|
|
|
*
|
2001-07-28 11:59:33 +00:00
|
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
1997-02-09 22:50:16 +00:00
|
|
|
*/
|
|
|
|
|
1997-05-25 15:45:04 +00:00
|
|
|
#ifndef __SNOOP_H__
|
|
|
|
#define __SNOOP_H__
|
|
|
|
|
1997-02-09 22:50:16 +00:00
|
|
|
/*
|
|
|
|
* written to comply with the RFC (1761) from Sun.
|
2013-08-11 14:28:45 +00:00
|
|
|
* $Id$
|
1997-02-09 22:50:16 +00:00
|
|
|
*/
|
|
|
|
struct snoophdr {
|
|
|
|
char s_id[8];
|
|
|
|
int s_v;
|
|
|
|
int s_type;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SNOOP_VERSION 2
|
|
|
|
|
|
|
|
#define SDL_8023 0
|
|
|
|
#define SDL_8024 1
|
|
|
|
#define SDL_8025 2
|
|
|
|
#define SDL_8026 3
|
|
|
|
#define SDL_ETHER 4
|
|
|
|
#define SDL_HDLC 5
|
|
|
|
#define SDL_CHSYNC 6
|
|
|
|
#define SDL_IBMCC 7
|
|
|
|
#define SDL_FDDI 8
|
|
|
|
#define SDL_OTHER 9
|
|
|
|
|
|
|
|
#define SDL_MAX 9
|
|
|
|
|
|
|
|
|
|
|
|
struct snooppkt {
|
|
|
|
int sp_olen;
|
|
|
|
int sp_ilen;
|
|
|
|
int sp_plen;
|
|
|
|
int sp_drop;
|
|
|
|
int sp_sec;
|
|
|
|
int sp_usec;
|
|
|
|
};
|
1997-05-25 15:45:04 +00:00
|
|
|
|
|
|
|
#endif /* __SNOOP_H__ */
|