ip_dummynet.h (201122) | ip_dummynet.h (201527) |
---|---|
1/*- 2 * Copyright (c) 1998-2002 Luigi Rizzo, Universita` di Pisa 3 * Portions Copyright (c) 2000 Akamba Corp. 4 * All rights reserved 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1998-2002 Luigi Rizzo, Universita` di Pisa 3 * Portions Copyright (c) 2000 Akamba Corp. 4 * All rights reserved 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/netinet/ip_dummynet.h 201122 2009-12-28 10:47:04Z luigi $ | 27 * $FreeBSD: head/sys/netinet/ip_dummynet.h 201527 2010-01-04 19:01:22Z luigi $ |
28 */ 29 30#ifndef _IP_DUMMYNET_H 31#define _IP_DUMMYNET_H 32 33/* 34 * Definition of dummynet data structures. In the structures, I decided 35 * not to use the macros in <sys/queue.h> in the hope of making the code --- 73 unchanged lines hidden (view full) --- 109 * Packets processed by dummynet have an mbuf tag associated with 110 * them that carries their dummynet state. This is used within 111 * the dummynet code as well as outside when checking for special 112 * processing requirements. 113 * Note that the first part is the reinject info and is common to 114 * other forms of packet reinjection. 115 */ 116struct dn_pkt_tag { | 28 */ 29 30#ifndef _IP_DUMMYNET_H 31#define _IP_DUMMYNET_H 32 33/* 34 * Definition of dummynet data structures. In the structures, I decided 35 * not to use the macros in <sys/queue.h> in the hope of making the code --- 73 unchanged lines hidden (view full) --- 109 * Packets processed by dummynet have an mbuf tag associated with 110 * them that carries their dummynet state. This is used within 111 * the dummynet code as well as outside when checking for special 112 * processing requirements. 113 * Note that the first part is the reinject info and is common to 114 * other forms of packet reinjection. 115 */ 116struct dn_pkt_tag { |
117 /* first part, reinject info */ 118 uint32_t slot; /* slot of next rule to use */ 119 uint32_t rulenum; /* matching rule number */ 120 uint32_t rule_id; /* matching rule id */ 121 uint32_t chain_id; /* ruleset id */ | 117 struct ipfw_rule_ref rule; /* matching rule */ |
122 123 /* second part, dummynet specific */ 124 int dn_dir; /* action when packet comes out. */ 125 /* see ip_fw_private.h */ 126 127 dn_key output_time; /* when the pkt is due for delivery */ 128 struct ifnet *ifp; /* interface, for ip_output */ 129 struct _ip6dn_args ip6opt; /* XXX ipv6 options */ --- 249 unchanged lines hidden --- | 118 119 /* second part, dummynet specific */ 120 int dn_dir; /* action when packet comes out. */ 121 /* see ip_fw_private.h */ 122 123 dn_key output_time; /* when the pkt is due for delivery */ 124 struct ifnet *ifp; /* interface, for ip_output */ 125 struct _ip6dn_args ip6opt; /* XXX ipv6 options */ --- 249 unchanged lines hidden --- |