summaryrefslogtreecommitdiff
path: root/sys/netns
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
parentc904a246d26ffde849a50c5eba13fe84a755330c (diff)
downloadsrc-test2-748e0b0accfecc7d90f16a3fc05b9c4502112625.tar.gz
src-test2-748e0b0accfecc7d90f16a3fc05b9c4502112625.zip
Notes
Diffstat (limited to 'sys/netns')
-rw-r--r--sys/netns/ns_input.c7
-rw-r--r--sys/netns/ns_proto.c6
2 files changed, 9 insertions, 4 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,
diff --git a/sys/netns/ns_proto.c b/sys/netns/ns_proto.c
index a19e8cbc4202..ff26004e88f7 100644
--- a/sys/netns/ns_proto.c
+++ b/sys/netns/ns_proto.c
@@ -30,11 +30,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)ns_proto.c 8.1 (Berkeley) 6/10/93
- * $Id$
+ * From: @(#)ns_proto.c 8.1 (Berkeley) 6/10/93
+ * $Id: ns_proto.c,v 1.2 1994/08/02 07:51:54 davidg Exp $
*/
#include <sys/param.h>
+#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/protosw.h>
#include <sys/domain.h>
@@ -95,3 +96,4 @@ struct domain nsdomain =
nssw, &nssw[sizeof(nssw)/sizeof(nssw[0])], 0,
rn_inithead, 16, sizeof(struct sockaddr_ns)};
+DOMAIN_SET(ns);