diff options
author | Darren Reed <darrenr@FreeBSD.org> | 2000-05-24 02:55:58 +0000 |
---|---|---|
committer | Darren Reed <darrenr@FreeBSD.org> | 2000-05-24 02:55:58 +0000 |
commit | 41d01fd6fac172fa39e267cf49c9dd291f7ca549 (patch) | |
tree | 843267cee6cc56a96a38be5409be12cbf6c409d7 /sys/netinet/ip_frag.h | |
parent | 58b27d6a322fd149810936210a84a615813963a2 (diff) | |
download | src-41d01fd6fac172fa39e267cf49c9dd291f7ca549.tar.gz src-41d01fd6fac172fa39e267cf49c9dd291f7ca549.zip |
Import IP Filter 3.4.4 into the kernel
Notes
Notes:
svn path=/vendor-sys/ipfilter/dist-old/; revision=60848
Diffstat (limited to 'sys/netinet/ip_frag.h')
-rw-r--r-- | sys/netinet/ip_frag.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/netinet/ip_frag.h b/sys/netinet/ip_frag.h index 9122f17a5115..6a3bd2caf79b 100644 --- a/sys/netinet/ip_frag.h +++ b/sys/netinet/ip_frag.h @@ -1,12 +1,12 @@ /* - * Copyright (C) 1993-1997 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. * * @(#)ip_frag.h 1.5 3/24/96 - * $Id: ip_frag.h,v 2.0.2.12.2.1 1998/05/23 14:29:39 darrenr Exp $ + * $Id: ip_frag.h,v 2.4 2000/03/13 22:10:21 darrenr Exp $ */ #ifndef __IP_FRAG_H__ @@ -24,7 +24,7 @@ typedef struct ipfr { u_char ipfr_tos; u_short ipfr_off; u_short ipfr_ttl; - u_char ipfr_pass; + frentry_t *ipfr_rule; } ipfr_t; @@ -42,16 +42,22 @@ typedef struct ipfrstat { #define IPFR_CMPSZ (4 + 4 + 2 + 1 + 1) extern int fr_ipfrttl; +extern int fr_frag_lock; extern ipfrstat_t *ipfr_fragstats __P((void)); -extern int ipfr_newfrag __P((ip_t *, fr_info_t *, int)); -extern int ipfr_nat_newfrag __P((ip_t *, fr_info_t *, int, struct nat *)); +extern int ipfr_newfrag __P((ip_t *, fr_info_t *, u_int)); +extern int ipfr_nat_newfrag __P((ip_t *, fr_info_t *, u_int, struct nat *)); extern nat_t *ipfr_nat_knownfrag __P((ip_t *, fr_info_t *)); -extern int ipfr_knownfrag __P((ip_t *, fr_info_t *)); +extern frentry_t *ipfr_knownfrag __P((ip_t *, fr_info_t *)); extern void ipfr_forget __P((void *)); extern void ipfr_unload __P((void)); +extern void ipfr_fragexpire __P((void)); #if (BSD >= 199306) || SOLARIS || defined(__sgi) +# if defined(SOLARIS2) && (SOLARIS2 < 7) extern void ipfr_slowtimer __P((void)); +# else +extern void ipfr_slowtimer __P((void *)); +# endif #else extern int ipfr_slowtimer __P((void)); #endif |