aboutsummaryrefslogtreecommitdiff
path: root/sys/netns/ns_input.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1995-05-11 00:13:26 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1995-05-11 00:13:26 +0000
commit748e0b0accfecc7d90f16a3fc05b9c4502112625 (patch)
tree300274f99668c935a329a2380c568f8de35d4eb3 /sys/netns/ns_input.c
parentc904a246d26ffde849a50c5eba13fe84a755330c (diff)
downloadsrc-748e0b0accfecc7d90f16a3fc05b9c4502112625.tar.gz
src-748e0b0accfecc7d90f16a3fc05b9c4502112625.zip
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.
Notes
Notes: svn path=/head/; revision=8426
Diffstat (limited to 'sys/netns/ns_input.c')
-rw-r--r--sys/netns/ns_input.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netns/ns_input.c b/sys/netns/ns_input.c
index a50c121ac0cb..83b02818897c 100644
--- a/sys/netns/ns_input.c
+++ b/sys/netns/ns_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_input.c 8.1 (Berkeley) 6/10/93
- * $Id: ns_input.c,v 1.2 1994/08/02 07:51:49 davidg Exp $
+ * $Id: ns_input.c,v 1.3 1995/03/16 18:15:28 bde Exp $
*/
#include <sys/param.h>
@@ -49,6 +49,7 @@
#include <net/if.h>
#include <net/route.h>
#include <net/raw_cb.h>
+#include <net/netisr.h>
#include <netns/ns.h>
#include <netns/ns_if.h>
@@ -101,7 +102,7 @@ ns_init()
int nsintr_getpck = 0;
int nsintr_swtch = 0;
void
-nsintr()
+nsintr(void)
{
register struct idp *idp;
register struct mbuf *m;
@@ -236,6 +237,8 @@ bad:
goto next;
}
+NETISR_SET(NETISR_NS, nsintr);
+
u_char nsctlerrmap[PRC_NCMDS] = {
ECONNABORTED, ECONNABORTED, 0, 0,
0, 0, EHOSTDOWN, EHOSTUNREACH,