diff options
author | bde <bde@FreeBSD.org> | 1997-12-21 16:35:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-21 16:35:12 +0000 |
commit | 7fb46d49218076b8a6b7f0ddeb7afd3d18187df8 (patch) | |
tree | 302ab6db2aa4c8bd74494f8f0e0611d9d70a4cf2 /sys | |
parent | eea70ed327c60cf4c3aff2d936fca12324fc9f47 (diff) | |
download | FreeBSD-src-7fb46d49218076b8a6b7f0ddeb7afd3d18187df8.zip FreeBSD-src-7fb46d49218076b8a6b7f0ddeb7afd3d18187df8.tar.gz |
Moved some declarations from <sys/socket.h> to the correct places, and
fixed everything that depended on them being misplaced.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netipx/ipx_ip.c | 3 | ||||
-rw-r--r-- | sys/sys/protosw.h | 3 | ||||
-rw-r--r-- | sys/sys/socket.h | 10 | ||||
-rw-r--r-- | sys/sys/socketvar.h | 10 |
4 files changed, 15 insertions, 11 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index bd9eb51..822144a 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -33,7 +33,7 @@ * * @(#)ipx_ip.c * - * $Id: ipx_ip.c,v 1.16 1997/06/26 19:35:47 jhay Exp $ + * $Id: ipx_ip.c,v 1.17 1997/12/15 20:31:13 eivind Exp $ */ /* @@ -49,6 +49,7 @@ #include <sys/mbuf.h> #include <sys/protosw.h> #include <sys/socket.h> +#include <sys/socketvar.h> #include <sys/sockio.h> #include <net/if.h> diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index 29cbc65..7c0ebbf 100644 --- a/sys/sys/protosw.h +++ b/sys/sys/protosw.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)protosw.h 8.1 (Berkeley) 6/2/93 - * $Id: protosw.h,v 1.20 1997/08/16 19:16:13 wollman Exp $ + * $Id: protosw.h,v 1.21 1997/09/14 02:25:40 peter Exp $ */ #ifndef _SYS_PROTOSW_H_ @@ -310,6 +310,7 @@ char *prcorequests[] = { #endif #ifdef KERNEL +void pfctlinput __P((int, struct sockaddr *)); struct protosw *pffindproto __P((int family, int protocol, int type)); struct protosw *pffindtype __P((int family, int type)); #endif diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 366d0f6..1c58ed2 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)socket.h 8.4 (Berkeley) 2/21/94 - * $Id: socket.h,v 1.21 1997/08/16 19:16:14 wollman Exp $ + * $Id: socket.h,v 1.22 1997/10/12 20:26:04 phk Exp $ */ #ifndef _SYS_SOCKET_H_ @@ -378,12 +378,6 @@ int socket __P((int, int, int)); int socketpair __P((int, int, int, int *)); __END_DECLS -#else /* KERNEL */ -#ifdef MALLOC_DECLARE -MALLOC_DECLARE(M_SOCKET); -MALLOC_DECLARE(M_SONAME); -MALLOC_DECLARE(M_PCB); -#endif -void pfctlinput __P((int, struct sockaddr *)); #endif /* !KERNEL */ + #endif /* !_SYS_SOCKET_H_ */ diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 83c88c9..2292f37 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)socketvar.h 8.3 (Berkeley) 2/19/95 - * $Id: socketvar.h,v 1.21 1997/08/16 19:16:14 wollman Exp $ + * $Id: socketvar.h,v 1.22 1997/09/14 02:25:41 peter Exp $ */ #ifndef _SYS_SOCKETVAR_H_ @@ -198,6 +198,13 @@ struct socket { #define sowwakeup(so) sowakeup((so), &(so)->so_snd) #ifdef KERNEL + +#ifdef MALLOC_DECLARE +MALLOC_DECLARE(M_PCB); +MALLOC_DECLARE(M_SOCKET); +MALLOC_DECLARE(M_SONAME); +#endif + extern u_long sb_max; struct filedesc; @@ -277,6 +284,7 @@ int sosetopt __P((struct socket *so, int level, int optname, struct mbuf *m0, struct proc *p)); int soshutdown __P((struct socket *so, int how)); void sowakeup __P((struct socket *so, struct sockbuf *sb)); + #endif /* KERNEL */ #endif /* !_SYS_SOCKETVAR_H_ */ |