2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * @(#)ip_frag.h 1.5 3/24/96
7 * $Id: ip_frag.h,v 2.4.2.2 2000/11/10 13:10:54 darrenr Exp $
17 struct ipfr *ipfr_next, *ipfr_prev;
19 struct in_addr ipfr_src;
20 struct in_addr ipfr_dst;
35 typedef struct ipfrstat {
36 u_long ifs_exists; /* add & already exists */
42 struct ipfr **ifs_table;
43 struct ipfr **ifs_nattab;
46 #define IPFR_CMPSZ (offsetof(ipfr_t, ipfr_off) - \
47 offsetof(ipfr_t, ipfr_src))
49 extern int fr_ipfrttl;
50 extern int fr_frag_lock;
51 extern ipfrstat_t *ipfr_fragstats __P((void));
52 extern int ipfr_newfrag __P((ip_t *, fr_info_t *, u_int));
53 extern int ipfr_nat_newfrag __P((ip_t *, fr_info_t *, u_int, struct nat *));
54 extern nat_t *ipfr_nat_knownfrag __P((ip_t *, fr_info_t *));
55 extern frentry_t *ipfr_knownfrag __P((ip_t *, fr_info_t *));
56 extern void ipfr_forget __P((void *));
57 extern void ipfr_unload __P((void));
58 extern void ipfr_fragexpire __P((void));
60 #if (BSD >= 199306) || SOLARIS || defined(__sgi)
61 # if defined(SOLARIS2) && (SOLARIS2 < 7)
62 extern void ipfr_slowtimer __P((void));
64 extern void ipfr_slowtimer __P((void *));
67 extern int ipfr_slowtimer __P((void));
68 #endif /* (BSD >= 199306) || SOLARIS */
70 #endif /* __IP_FIL_H__ */