summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.h
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-01-23 23:59:50 +0000
committerarchie <archie@FreeBSD.org>1999-01-23 23:59:50 +0000
commit19d9007c62bc46ecf12ececa5a52e85b38c99781 (patch)
tree37d0cccd136c6a39a349ce39941dfc35ef205221 /sys/netinet/ip_dummynet.h
parentdd71e080d718592695693bfca232dab8e0a58534 (diff)
downloadFreeBSD-src-19d9007c62bc46ecf12ececa5a52e85b38c99781.zip
FreeBSD-src-19d9007c62bc46ecf12ececa5a52e85b38c99781.tar.gz
Move kernel-only declarations to within #ifdef KERNEL
Prompted by: gcc warnings when compiling /sbin/ipfw
Diffstat (limited to 'sys/netinet/ip_dummynet.h')
-rw-r--r--sys/netinet/ip_dummynet.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/netinet/ip_dummynet.h b/sys/netinet/ip_dummynet.h
index f01406f..e43dffa 100644
--- a/sys/netinet/ip_dummynet.h
+++ b/sys/netinet/ip_dummynet.h
@@ -10,14 +10,12 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_dummynet.h,v 1.1 1998/05/10 01:30:23 luigi Exp $
+ * $Id: ip_dummynet.h,v 1.2 1998/12/14 18:09:13 luigi Exp $
*/
#ifndef _IP_DUMMYNET_H
#define _IP_DUMMYNET_H
-typedef int ip_dn_ctl_t __P((struct sockopt *)) ;
-extern ip_dn_ctl_t *ip_dn_ctl_ptr;
/*
* Definition of dummynet data structures.
* Dummynet handles a list of pipes, each one identified by a unique
@@ -99,12 +97,19 @@ struct dn_pipe { /* a pipe */
#define DN_TO_IP_OUT 1
#define DN_TO_IP_IN 2
#define DN_TO_BDG_FWD 3
+
#ifdef KERNEL
+
MALLOC_DECLARE(M_IPFW);
+
+typedef int ip_dn_ctl_t __P((struct sockopt *)) ;
+extern ip_dn_ctl_t *ip_dn_ctl_ptr;
+
void ip_dn_init(void); /* called in ip_input.c */
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 ip_fw_chain *rule);
-#endif
+#endif /* KERNEL */
+
#endif /* _IP_DUMMYNET_H */
OpenPOWER on IntegriCloud