]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
ff6e181a A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
1c79356b | 12 | * |
ff6e181a A |
13 | * The Original Code and all software distributed under the License are |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
ff6e181a A |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
1c79356b A |
20 | * |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | */ | |
23 | /*- | |
24 | * Copyright (c) 1998 The NetBSD Foundation, Inc. | |
25 | * All rights reserved. | |
26 | * | |
27 | * This code is derived from software contributed to The NetBSD Foundation | |
28 | * by the 3am Software Foundry ("3am"). It was developed by Matt Thomas. | |
29 | * | |
30 | * Redistribution and use in source and binary forms, with or without | |
31 | * modification, are permitted provided that the following conditions | |
32 | * are met: | |
33 | * 1. Redistributions of source code must retain the above copyright | |
34 | * notice, this list of conditions and the following disclaimer. | |
35 | * 2. Redistributions in binary form must reproduce the above copyright | |
36 | * notice, this list of conditions and the following disclaimer in the | |
37 | * documentation and/or other materials provided with the distribution. | |
38 | * 3. All advertising materials mentioning features or use of this software | |
39 | * must display the following acknowledgement: | |
40 | * This product includes software developed by the NetBSD | |
41 | * Foundation, Inc. and its contributors. | |
42 | * 4. Neither the name of The NetBSD Foundation nor the names of its | |
43 | * contributors may be used to endorse or promote products derived | |
44 | * from this software without specific prior written permission. | |
45 | * | |
46 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | |
47 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
48 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
49 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
50 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
51 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
52 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
53 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
54 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
55 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
56 | * POSSIBILITY OF SUCH DAMAGE. | |
57 | * | |
9bccf70c | 58 | * $FreeBSD: src/sys/netinet/ip_flow.h,v 1.2 1999/08/28 00:49:22 peter Exp $ |
1c79356b A |
59 | */ |
60 | ||
61 | #ifndef _NETINET_IP_FLOW_H | |
62 | #define _NETINET_IP_FLOW_H | |
9bccf70c | 63 | #include <sys/appleapiopts.h> |
1c79356b | 64 | |
91447636 | 65 | #ifdef KERNEL_PRIVATE |
1c79356b A |
66 | struct ipflow { |
67 | LIST_ENTRY(ipflow) ipf_next; /* next ipflow in bucket */ | |
68 | struct in_addr ipf_dst; /* destination address */ | |
69 | struct in_addr ipf_src; /* source address */ | |
70 | ||
71 | u_int8_t ipf_tos; /* type-of-service */ | |
72 | struct route ipf_ro; /* associated route entry */ | |
73 | u_long ipf_uses; /* number of uses in this period */ | |
74 | ||
75 | int ipf_timer; /* remaining lifetime of this entry */ | |
76 | u_long ipf_dropped; /* ENOBUFS returned by if_output */ | |
77 | u_long ipf_errors; /* other errors returned by if_output */ | |
78 | u_long ipf_last_uses; /* number of uses in last period */ | |
79 | }; | |
91447636 | 80 | #endif /* KERNEL_PRIVATE */ |
1c79356b A |
81 | |
82 | #endif |