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.7 2002/07/06 14:17:51 darrenr Exp $
8 * $FreeBSD: src/sys/contrib/ipfilter/netinet/ip_frag.h,v 1.12.2.4 2002/08/31 16:24:52 darrenr Exp $
9 * $DragonFly: src/sys/contrib/ipfilter/netinet/ip_frag.h,v 1.2 2003/06/17 04:28:20 dillon Exp $
18 struct ipfr *ipfr_next, *ipfr_prev;
20 struct in_addr ipfr_src;
21 struct in_addr ipfr_dst;
36 typedef struct ipfrstat {
37 u_long ifs_exists; /* add & already exists */
43 struct ipfr **ifs_table;
44 struct ipfr **ifs_nattab;
47 #define IPFR_CMPSZ (offsetof(ipfr_t, ipfr_off) - \
48 offsetof(ipfr_t, ipfr_src))
50 extern int fr_ipfrttl;
51 extern int fr_frag_lock;
52 extern ipfrstat_t *ipfr_fragstats __P((void));
53 extern int ipfr_newfrag __P((ip_t *, fr_info_t *));
54 extern int ipfr_nat_newfrag __P((ip_t *, fr_info_t *, struct nat *));
55 extern nat_t *ipfr_nat_knownfrag __P((ip_t *, fr_info_t *));
56 extern frentry_t *ipfr_knownfrag __P((ip_t *, fr_info_t *));
57 extern void ipfr_forget __P((void *));
58 extern void ipfr_unload __P((void));
59 extern void ipfr_fragexpire __P((void));
62 # if (BSD >= 199306) || SOLARIS || defined(__sgi)
63 # if defined(SOLARIS2) && (SOLARIS2 < 7)
64 extern void ipfr_slowtimer __P((void));
66 extern void ipfr_slowtimer __P((void *));
69 extern int ipfr_slowtimer __P((void));
70 # endif /* (BSD >= 199306) || SOLARIS */
72 extern void ipfr_slowtimer __P((void));
75 #endif /* __IP_FIL_H__ */