From d25503500842fdd0550710a7afb953d1b8f20f00 Mon Sep 17 00:00:00 2001 From: darrenr Date: Thu, 3 Apr 1997 10:22:02 +0000 Subject: Import IP Filter version 3.2alpha4 to bring in working LKM for 2.2 --- contrib/ipfilter/ipf.h | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'contrib/ipfilter/ipf.h') diff --git a/contrib/ipfilter/ipf.h b/contrib/ipfilter/ipf.h index 3ac76fc..4d35281 100644 --- a/contrib/ipfilter/ipf.h +++ b/contrib/ipfilter/ipf.h @@ -6,7 +6,7 @@ * to the original author and the contributors. * * @(#)ipf.h 1.12 6/5/96 - * $Id: ipf.h,v 2.0.1.1 1997/01/09 15:14:43 darrenr Exp $ + * $Id: ipf.h,v 2.0.2.4 1997/03/27 13:45:18 darrenr Exp $ */ #ifndef SOLARIS @@ -29,10 +29,22 @@ #define OPT_SHOWLINENO 0x04000 #define OPT_PRINTFR 0x08000 #define OPT_ZERORULEST 0x10000 +#define OPT_SAVEOUT 0x20000 -extern struct frentry *parse(); +#ifndef __P +# ifdef __STDC__ +# define __P(x) x +# else +# define __P(x) () +# endif +#endif + +extern struct frentry *parse __P((char *)); + +extern void printfr __P((struct frentry *)); +extern void binprint __P((struct frentry *)), initparse __P((void)); +extern u_short portnum __P((char *)); -extern void printfr(), binprint(), initparse(); #if defined(__SVR4) || defined(__svr4__) #define index strchr @@ -48,10 +60,12 @@ struct ipopt_names { }; -extern u_long hostnum(), optname(); -extern void printpacket(); +extern u_long buildopts __P((char *, char *)); +extern u_long hostnum __P((char *, int *)); +extern u_long optname __P((char ***, u_short *)); +extern void printpacket __P((struct ip *)); #if SOLARIS -extern int inet_aton(); +extern int inet_aton __P((const char *, struct in_addr *)); #endif #ifdef sun -- cgit v1.1