aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_frag.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-03-02 15:49:41 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-03-02 15:49:41 +0000
commit3589f3628a5b767f1bfec12dfd5e1cdf1eaee79e (patch)
tree398841aa120f249bb97fd26c4bbf90be8ca5d4e1 /sys/netinet/ip_frag.h
downloadsrc-3589f3628a5b767f1bfec12dfd5e1cdf1eaee79e.tar.gz
src-3589f3628a5b767f1bfec12dfd5e1cdf1eaee79e.zip
Replacement import of ipfilter 3.1.7 components used in kernel.vendor/ipfilter-sys/ipfilter3_1_7
(This is to repair the vendor branching)
Notes
Notes: svn path=/vendor-sys/ipfilter/dist-old/; revision=23282 svn path=/vendor-sys/ipfilter/ipfilter3_1_7/; revision=23284; tag=vendor/ipfilter-sys/ipfilter3_1_7
Diffstat (limited to 'sys/netinet/ip_frag.h')
-rw-r--r--sys/netinet/ip_frag.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/sys/netinet/ip_frag.h b/sys/netinet/ip_frag.h
new file mode 100644
index 000000000000..a356785e528c
--- /dev/null
+++ b/sys/netinet/ip_frag.h
@@ -0,0 +1,47 @@
+/*
+ * (C)opyright 1993, 1994, 1995 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.
+ *
+ * @(#)ip_frag.h 1.5 3/24/96
+ * $Id: ip_frag.h,v 2.0.1.1 1997/01/09 15:14:43 darrenr Exp $
+ */
+
+#ifndef __IP_FRAG_H_
+#define __IP_FRAG_H__
+
+#define IPFT_SIZE 257
+
+typedef struct ipfr {
+ struct ipfr *ipfr_next, *ipfr_prev;
+ struct in_addr ipfr_src;
+ struct in_addr ipfr_dst;
+ u_short ipfr_id;
+ u_char ipfr_p;
+ u_char ipfr_tos;
+ u_short ipfr_off;
+ u_short ipfr_ttl;
+ u_char ipfr_pass;
+} ipfr_t;
+
+
+typedef struct ipfrstat {
+ u_long ifs_exists; /* add & already exists */
+ u_long ifs_nomem;
+ u_long ifs_new;
+ u_long ifs_hits;
+ u_long ifs_expire;
+ u_long ifs_inuse;
+ struct ipfr **ifs_table;
+} ipfrstat_t;
+
+#define IPFR_CMPSZ (4 + 4 + 2 + 1 + 1)
+
+extern ipfrstat_t *ipfr_fragstats();
+extern int ipfr_newfrag(), ipfr_knownfrag();
+# ifdef _KERNEL
+extern void ipfr_unload();
+# endif
+#endif /* __IP_FIL_H__ */