]>
git.saurik.com Git - apple/xnu.git/blob - bsd/netinet/ip_frag.h
faff6d5d1408d9c701e36e0e75e15aa1b38f83fa
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (C) 1993-1997 by Darren Reed.
25 * Redistribution and use in source and binary forms are permitted
26 * provided that this notice is preserved and due credit is given
27 * to the original author and the contributors.
29 * @(#)ip_frag.h 1.5 3/24/96
38 struct ipfr
*ipfr_next
, *ipfr_prev
;
40 struct in_addr ipfr_src
;
41 struct in_addr ipfr_dst
;
51 typedef struct ipfrstat
{
52 u_long ifs_exists
; /* add & already exists */
58 struct ipfr
**ifs_table
;
59 struct ipfr
**ifs_nattab
;
62 #define IPFR_CMPSZ (4 + 4 + 2 + 1 + 1)
64 extern int fr_ipfrttl
;
65 extern ipfrstat_t
*ipfr_fragstats
__P((void));
66 extern int ipfr_newfrag
__P((ip_t
*, fr_info_t
*, int));
67 extern int ipfr_nat_newfrag
__P((ip_t
*, fr_info_t
*, int, struct nat
*));
68 extern nat_t
*ipfr_nat_knownfrag
__P((ip_t
*, fr_info_t
*));
69 extern int ipfr_knownfrag
__P((ip_t
*, fr_info_t
*));
70 extern void ipfr_forget
__P((void *));
71 extern void ipfr_unload
__P((void));
73 #if (BSD >= 199306) || SOLARIS || defined(__sgi)
74 extern void ipfr_slowtimer
__P((void));
76 extern int ipfr_slowtimer
__P((void));
79 #endif /* __IP_FIL_H__ */