diff options
author | bde <bde@FreeBSD.org> | 1996-10-15 16:54:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-10-15 16:54:47 +0000 |
commit | 92cf41c9fd3893b5c490c1a377772b7e98a77a1a (patch) | |
tree | 42b82b70ec1150f96dde7a965703bee7e579f1cf /sys | |
parent | 24f1e6fa9a474bbc6c3562923b9a4522e72f95f8 (diff) | |
download | FreeBSD-src-92cf41c9fd3893b5c490c1a377772b7e98a77a1a.zip FreeBSD-src-92cf41c9fd3893b5c490c1a377772b7e98a77a1a.tar.gz |
Forward-declared `struct route' for the KERNEL case so that <net/route.h>
isn't a prerequisite.
Fixed style of ifdefs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_var.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 91b3bd8..ca037ed 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -31,11 +31,11 @@ * SUCH DAMAGE. * * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 - * $Id: ip_var.h,v 1.20 1996/03/26 19:16:45 fenner Exp $ + * $Id: ip_var.h,v 1.21 1996/07/10 19:44:27 julian Exp $ */ #ifndef _NETINET_IP_VAR_H_ -#define _NETINET_IP_VAR_H_ +#define _NETINET_IP_VAR_H_ /* * Overlay for ip header used by other protocols (tcp, udp). @@ -155,6 +155,8 @@ struct ipstat { #define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ #define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */ +struct route; + extern struct ipstat ipstat; extern struct ipq ipq; /* ip reass. queue */ extern u_short ip_id; /* ip packet ctr, for ids */ @@ -199,8 +201,8 @@ int div_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *)); extern u_short ip_divert_port; extern u_short ip_divert_ignore; -#endif /* IPDIVERT */ +#endif /* IPDIVERT */ -#endif /* KERNEL */ +#endif /* KERNEL */ -#endif +#endif /* _NETINET_IP_VAR_H_ */ |