Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netns Eliminate use of commons.
details: https://anonhg.NetBSD.org/src/rev/bd416f6277fd
branches: trunk
changeset: 526841:bd416f6277fd
user: matt <matt%NetBSD.org@localhost>
date: Sun May 12 19:09:12 2002 +0000
description:
Eliminate use of commons.
diffstat:
sys/netns/ns.c | 5 ++---
sys/netns/ns.h | 14 ++++++++------
sys/netns/ns_error.c | 6 ++++--
sys/netns/ns_error.h | 4 ++--
sys/netns/ns_pcb.h | 4 ++--
5 files changed, 18 insertions(+), 15 deletions(-)
diffs (116 lines):
diff -r bbe3bf3dacbc -r bd416f6277fd sys/netns/ns.c
--- a/sys/netns/ns.c Sun May 12 18:30:32 2002 +0000
+++ b/sys/netns/ns.c Sun May 12 19:09:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns.c,v 1.22 2001/11/13 01:08:10 lukem Exp $ */
+/* $NetBSD: ns.c,v 1.23 2002/05/12 19:09:12 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ns.c,v 1.22 2001/11/13 01:08:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ns.c,v 1.23 2002/05/12 19:09:12 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -57,7 +57,6 @@
struct ns_ifaddrhead ns_ifaddr;
int ns_interfaces;
-extern struct sockaddr_ns ns_netmask, ns_hostmask;
/*
* Generic internet control operations (ioctl's).
diff -r bbe3bf3dacbc -r bd416f6277fd sys/netns/ns.h
--- a/sys/netns/ns.h Sun May 12 18:30:32 2002 +0000
+++ b/sys/netns/ns.h Sun May 12 19:09:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns.h,v 1.15 2000/04/10 02:19:29 chs Exp $ */
+/* $NetBSD: ns.h,v 1.16 2002/05/12 19:09:13 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -132,14 +132,16 @@
#ifdef _KERNEL
extern struct domain nsdomain;
-union ns_host ns_thishost;
-union ns_host ns_zerohost;
-union ns_host ns_broadhost;
-union ns_net ns_zeronet;
-union ns_net ns_broadnet;
+extern union ns_host ns_thishost;
+extern union ns_host ns_zerohost;
+extern union ns_host ns_broadhost;
+extern union ns_net ns_zeronet;
+extern union ns_net ns_broadnet;
#define satosns(sa) ((struct sockaddr_ns *)(sa))
#define snstosa(sns) ((struct sockaddr *)(sns))
+
+extern struct sockaddr_ns ns_netmask, ns_hostmask;
#else
#include <sys/cdefs.h>
diff -r bbe3bf3dacbc -r bd416f6277fd sys/netns/ns_error.c
--- a/sys/netns/ns_error.c Sun May 12 18:30:32 2002 +0000
+++ b/sys/netns/ns_error.c Sun May 12 19:09:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_error.c,v 1.12 2001/11/13 01:08:10 lukem Exp $ */
+/* $NetBSD: ns_error.c,v 1.13 2002/05/12 19:09:13 matt Exp $ */
/*
* Copyright (c) 1984, 1988, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ns_error.c,v 1.12 2001/11/13 01:08:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ns_error.c,v 1.13 2002/05/12 19:09:13 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -74,6 +74,8 @@
int ns_errprintfs = 0;
#endif
+struct ns_errstat ns_errstat;
+
int
ns_err_x(c)
int c;
diff -r bbe3bf3dacbc -r bd416f6277fd sys/netns/ns_error.h
--- a/sys/netns/ns_error.h Sun May 12 18:30:32 2002 +0000
+++ b/sys/netns/ns_error.h Sun May 12 19:09:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_error.h,v 1.8 2001/09/16 16:34:42 wiz Exp $ */
+/* $NetBSD: ns_error.h,v 1.9 2002/05/12 19:09:13 matt Exp $ */
/*
* Copyright (c) 1984, 1988, 1993
@@ -88,5 +88,5 @@
};
#ifdef _KERNEL
-struct ns_errstat ns_errstat;
+extern struct ns_errstat ns_errstat;
#endif
diff -r bbe3bf3dacbc -r bd416f6277fd sys/netns/ns_pcb.h
--- a/sys/netns/ns_pcb.h Sun May 12 18:30:32 2002 +0000
+++ b/sys/netns/ns_pcb.h Sun May 12 19:09:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_pcb.h,v 1.8 1997/07/18 19:30:42 thorpej Exp $ */
+/* $NetBSD: ns_pcb.h,v 1.9 2002/05/12 19:09:13 matt Exp $ */
/*
* Copyright (c) 1984, 1985, 1986, 1987, 1993
@@ -77,5 +77,5 @@
#ifdef _KERNEL
-struct nspcb nspcb; /* head of list */
+extern struct nspcb nspcb; /* head of list */
#endif
Home |
Main Index |
Thread Index |
Old Index