summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-09 20:43:53 +0000
committerphk <phk@FreeBSD.org>1995-12-09 20:43:53 +0000
commit8f20b511b7228671b02076aad1f3032fa5f3e9b2 (patch)
tree192eb88f9bb33d9f89292db457a642d49af7787f /sys/netinet/in.c
parent37ba510363b37d063e0d337e3d63dd626661df15 (diff)
downloadFreeBSD-src-8f20b511b7228671b02076aad1f3032fa5f3e9b2.zip
FreeBSD-src-8f20b511b7228671b02076aad1f3032fa5f3e9b2.tar.gz
Staticize.
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index db5f97c..c1b2301 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in.c 8.4 (Berkeley) 1/9/95
- * $Id: in.c,v 1.18 1995/11/14 20:33:56 phk Exp $
+ * $Id: in.c,v 1.19 1995/11/20 12:28:21 phk Exp $
*/
#include <sys/param.h>
@@ -42,6 +42,8 @@
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/queue.h>
+#include <sys/kernel.h>
+#include <sys/sysctl.h>
#include <net/if.h>
#include <net/route.h>
@@ -70,10 +72,9 @@ static int in_ifinit __P((struct ifnet *,
struct in_ifaddr *, struct sockaddr_in *, int));
static void in_ifscrub __P((struct ifnet *, struct in_ifaddr *));
-#ifndef SUBNETSARELOCAL
-#define SUBNETSARELOCAL 1
-#endif
-int subnetsarelocal = SUBNETSARELOCAL;
+static int subnetsarelocal = 1;
+SYSCTL_INT(_net_inet_ip, OID_AUTO, subnets_are_local, CTLFLAG_RW,
+ &subnetsarelocal, 0, "");
/*
* Return 1 if an internet address is for a ``local'' host
* (one to which we have a connection). If subnetsarelocal
@@ -139,7 +140,7 @@ struct sockaddr_in *ap;
}
}
-int in_interfaces; /* number of external internet interfaces */
+static int in_interfaces; /* number of external internet interfaces */
/*
* Generic internet control operations (ioctl's).
OpenPOWER on IntegriCloud