diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-05 03:26:51 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-05 03:26:51 +0000 |
commit | e1dd16d965b177f109afb771e59432e36f335d0a (patch) | |
tree | 15db092a5401cf329f1bff9d3bf700d1fde0f121 /contrib/ipfilter/snoop.h | |
parent | 115d008392113efc6f844baa7cc407e9eaae63db (diff) | |
download | FreeBSD-src-e1dd16d965b177f109afb771e59432e36f335d0a.zip FreeBSD-src-e1dd16d965b177f109afb771e59432e36f335d0a.tar.gz |
Revert r288682
I meant to do this on ^/user/ngie/more-tests
Pointyhat to: ngie (use svn info next time...)
Diffstat (limited to 'contrib/ipfilter/snoop.h')
-rw-r--r-- | contrib/ipfilter/snoop.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/contrib/ipfilter/snoop.h b/contrib/ipfilter/snoop.h new file mode 100644 index 0000000..74bc247 --- /dev/null +++ b/contrib/ipfilter/snoop.h @@ -0,0 +1,47 @@ +/* $FreeBSD$ */ + +/* + * Copyright (C) 2012 by Darren Reed. + * + * See the IPFILTER.LICENCE file for details on licencing. + */ + +#ifndef __SNOOP_H__ +#define __SNOOP_H__ + +/* + * written to comply with the RFC (1761) from Sun. + * $Id$ + */ +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; +}; + +#endif /* __SNOOP_H__ */ |