2 * Copyright (C) 1993-1998 by Darren Reed.
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
8 * @(#)ip_frag.h 1.5 3/24/96
9 * $Id: ip_frag.h,v 2.2 1999/08/06 06:26:38 darrenr Exp $
19 struct ipfr *ipfr_next, *ipfr_prev;
21 struct in_addr ipfr_src;
22 struct in_addr ipfr_dst;
32 typedef struct ipfrstat {
33 u_long ifs_exists; /* add & already exists */
39 struct ipfr **ifs_table;
40 struct ipfr **ifs_nattab;
43 #define IPFR_CMPSZ (4 + 4 + 2 + 1 + 1)
45 extern int fr_ipfrttl;
46 extern ipfrstat_t *ipfr_fragstats __P((void));
47 extern int ipfr_newfrag __P((ip_t *, fr_info_t *, u_int));
48 extern int ipfr_nat_newfrag __P((ip_t *, fr_info_t *, u_int, struct nat *));
49 extern nat_t *ipfr_nat_knownfrag __P((ip_t *, fr_info_t *));
50 extern frentry_t *ipfr_knownfrag __P((ip_t *, fr_info_t *));
51 extern void ipfr_forget __P((void *));
52 extern void ipfr_unload __P((void));
54 #if (BSD >= 199306) || SOLARIS || defined(__sgi)
55 # if defined(SOLARIS2) && (SOLARIS2 < 7)
56 extern void ipfr_slowtimer __P((void));
58 extern void ipfr_slowtimer __P((void *));
61 extern int ipfr_slowtimer __P((void));
64 #endif /* __IP_FIL_H__ */