diff options
author | wollman <wollman@FreeBSD.org> | 1995-05-11 00:13:26 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-05-11 00:13:26 +0000 |
commit | 37660997fe63e18311e879f7d973edfeb03a28f5 (patch) | |
tree | 300274f99668c935a329a2380c568f8de35d4eb3 /sys/net | |
parent | 78ce3864de28cf6df1d35bae1167167384cc0d42 (diff) | |
download | FreeBSD-src-37660997fe63e18311e879f7d973edfeb03a28f5.zip FreeBSD-src-37660997fe63e18311e879f7d973edfeb03a28f5.tar.gz |
Make networking domains drop-ins, through the magic of GNU ld. (Some day,
there may even be LKMs.) Also, change the internal name of `unixdomain'
to `localdomain' since AF_LOCAL is now the preferred name of this family.
Declare netisr correctly and in the right place.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/netisr.h | 16 | ||||
-rw-r--r-- | sys/net/rtsock.c | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h index fb8c97e..3558348 100644 --- a/sys/net/netisr.h +++ b/sys/net/netisr.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)netisr.h 8.1 (Berkeley) 6/10/93 - * $Id: netisr.h,v 1.4 1994/08/21 05:11:44 paul Exp $ + * $Id: netisr.h,v 1.5 1995/01/05 19:51:47 se Exp $ */ #ifndef _NET_NETISR_H_ @@ -68,7 +68,19 @@ #ifndef LOCORE #ifdef KERNEL -volatile unsigned int netisr; /* scheduling bits for network */ +extern volatile unsigned int netisr; /* scheduling bits for network */ + +typedef void netisr_t(void); + +struct netisrtab { + int nit_num; + netisr_t *nit_isr; +}; + +#define NETISR_SET(num, isr) \ + static struct netisrtab mod_nit = { num, isr }; \ + DATA_SET(netisr_set, mod_nit); + #endif #endif diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index ea651d5..dc3b3fb 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -36,6 +36,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> #include <sys/proc.h> #include <sys/mbuf.h> #include <sys/socket.h> @@ -793,3 +794,4 @@ struct domain routedomain = { PF_ROUTE, "route", route_init, 0, 0, routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] }; +DOMAIN_SET(route); |