summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/ipf.h
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2000-05-24 02:14:22 +0000
committerdarrenr <darrenr@FreeBSD.org>2000-05-24 02:14:22 +0000
commitdda6755c7b3b3b5d3e9111b7d0c39a7d8b5f3e12 (patch)
tree8658a81b1c1fcbbbec3b1df568cc198dd98d44ee /contrib/ipfilter/ipf.h
parent1fa4f6782a7e92a232e56892d8bce7920d49292e (diff)
downloadFreeBSD-src-dda6755c7b3b3b5d3e9111b7d0c39a7d8b5f3e12.zip
FreeBSD-src-dda6755c7b3b3b5d3e9111b7d0c39a7d8b5f3e12.tar.gz
Import IP Filter 3.4.4 into FreeBSD-current
Diffstat (limited to 'contrib/ipfilter/ipf.h')
-rw-r--r--contrib/ipfilter/ipf.h32
1 files changed, 29 insertions, 3 deletions
diff --git a/contrib/ipfilter/ipf.h b/contrib/ipfilter/ipf.h
index 2971bfe..ee6ae4d 100644
--- a/contrib/ipfilter/ipf.h
+++ b/contrib/ipfilter/ipf.h
@@ -1,12 +1,12 @@
/*
- * Copyright (C) 1993-1998 by Darren Reed.
+ * Copyright (C) 1993-2000 by Darren Reed.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and due credit is given
* to the original author and the contributors.
*
* @(#)ipf.h 1.12 6/5/96
- * $Id: ipf.h,v 2.1.2.1 1999/10/05 12:59:25 darrenr Exp $
+ * $Id: ipf.h,v 2.9.2.2 2000/05/06 11:20:20 darrenr Exp $
*/
#ifndef __IPF_H__
@@ -37,6 +37,14 @@
#define OPT_RAW 0x080000
#define OPT_NAT 0x100000
#define OPT_GROUPS 0x200000
+#define OPT_STATETOP 0x400000
+#define OPT_FLUSH 0x800000
+#define OPT_CLEAR 0x1000000
+#define OPT_NODO 0x80000000
+
+#define OPT_STAT OPT_FRSTATES
+#define OPT_LIST OPT_SHOWLIST
+
#ifndef __P
# ifdef __STDC__
@@ -46,6 +54,8 @@
# endif
#endif
+struct frpcmp;
+
#ifdef ultrix
extern char *strdup __P((char *));
#endif
@@ -65,10 +75,26 @@ struct ipopt_names {
};
+extern char *proto;
+extern char flagset[];
+extern u_char flags[];
+
+extern u_char tcp_flags __P((char *, u_char *, int));
+extern int countbits __P((u_32_t));
+extern int ratoi __P((char *, int *, int, int));
+extern int ratoui __P((char *, u_int *, u_int, u_int));
+extern int hostmask __P((char ***, u_32_t *, u_32_t *, u_short *, int *,
+ u_short *, int));
+extern int ports __P((char ***, u_short *, int *, u_short *, int));
+extern char *portname __P((int, int));
extern u_32_t buildopts __P((char *, char *, int));
-extern u_32_t hostnum __P((char *, int *, int));
+extern int genmask __P((char *, u_32_t *));
+extern int hostnum __P((u_32_t *, char *, int));
extern u_32_t optname __P((char ***, u_short *, int));
extern void printpacket __P((ip_t *));
+extern void printportcmp __P((int, struct frpcmp *));
+extern void printhostmask __P((int, u_32_t *, u_32_t *));
+extern void printbuf __P((char *, int, int));
#if SOLARIS
extern int inet_aton __P((const char *, struct in_addr *));
extern int gethostname __P((char *, int ));
OpenPOWER on IntegriCloud