// $Id$ #ifndef __INLINE_H__ #define __INLINE_H__ #ifdef GIDS #ifndef IPFW #include #include #else #include #include #include #include #endif /* IPFW */ #include "snort.h" typedef struct _inline_vals { int drop; int reject; int replace; int proto; } IV; #ifndef IPFW struct ipq_handle *ipqh; #endif IV iv; int InitInline(); void InitInlinePostConfig(void); #ifndef IPFW void IpqLoop(); #else void IpfwLoop(); #endif /* IPFW */ int InlineReject(Packet *); /* call to reject current packet */ int InlineAccept(); int InlineReplace(); #endif int InlineMode(); int InlineModeSetPrivsAllowed(); int InlineDrop(Packet *p); /* call to drop current packet */ int InlineWasPacketDropped(); #endif /* __INLINE_H__ */