summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>1999-05-04 07:30:08 +0000
committerluigi <luigi@FreeBSD.org>1999-05-04 07:30:08 +0000
commit61851a14d7f0271bacc976afef8762bdfa4b29d7 (patch)
treeb94fe5db74091e9e76883be5594c3f6426b3e96c /sys/netinet/ip_dummynet.h
parentcd4564cee7f2a60d615773daaa303999bd220569 (diff)
downloadFreeBSD-src-61851a14d7f0271bacc976afef8762bdfa4b29d7.zip
FreeBSD-src-61851a14d7f0271bacc976afef8762bdfa4b29d7.tar.gz
assorted dummynet cleanup:
+ plug an mbuf leak when dummynet used with bridging + make prototype of dummynet_io consistent with usage + code cleanup so that now bandwidth regulation is precise to the bit/s and not to (8*HZ) bit/s as before.
Diffstat (limited to 'sys/netinet/ip_dummynet.h')
-rw-r--r--sys/netinet/ip_dummynet.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/ip_dummynet.h b/sys/netinet/ip_dummynet.h
index c0bb0e3..98eae82 100644
--- a/sys/netinet/ip_dummynet.h
+++ b/sys/netinet/ip_dummynet.h
@@ -10,7 +10,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_dummynet.h,v 1.3 1999/01/23 23:59:50 archie Exp $
+ * $Id: ip_dummynet.h,v 1.4 1999/04/20 13:32:04 peter Exp $
*/
#ifndef _IP_DUMMYNET_H
@@ -39,7 +39,7 @@ struct dn_pkt {
struct m_hdr hdr ;
#define dn_next hdr.mh_nextpkt /* next element in queue */
#define dn_m hdr.mh_next /* packet to be forwarded */
-#define dn_hlen hdr.mh_len /* hlen, for ip_output */
+#define dn_dst hdr.mh_len /* dst, for ip_output */
#define dn_dir hdr.mh_flags /* IP_FW_F_IN or IP_FW_F_OUT */
int delay; /* stays queued until delay=0 */
struct ifnet *ifp; /* interface, for ip_output */
@@ -107,7 +107,8 @@ extern ip_dn_ctl_t *ip_dn_ctl_ptr;
void dn_rule_delete(void *r); /* used in ip_fw.c */
int dummynet_io(int pipe, int dir,
- struct mbuf *m, struct ifnet *ifp, struct route *ro, int hlen,
+ struct mbuf *m, struct ifnet *ifp, struct route *ro,
+ struct sockaddr_in * dst,
struct ip_fw_chain *rule);
#endif /* KERNEL */
OpenPOWER on IntegriCloud