summaryrefslogtreecommitdiffstats
path: root/sys
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
parent37ba510363b37d063e0d337e3d63dd626661df15 (diff)
downloadFreeBSD-src-8f20b511b7228671b02076aad1f3032fa5f3e9b2.zip
FreeBSD-src-8f20b511b7228671b02076aad1f3032fa5f3e9b2.tar.gz
Staticize.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/igmp.c12
-rw-r--r--sys/netinet/in.c13
-rw-r--r--sys/netinet/raw_ip.c8
3 files changed, 17 insertions, 16 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index cbbe462..95664b2 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)igmp.c 8.1 (Berkeley) 7/19/93
- * $Id: igmp.c,v 1.13 1995/11/14 20:33:52 phk Exp $
+ * $Id: igmp.c,v 1.14 1995/12/02 19:37:52 bde Exp $
*/
/*
@@ -67,11 +67,11 @@
#include <netinet/igmp.h>
#include <netinet/igmp_var.h>
-extern int fill_rti __P((struct in_multi *inm));
-extern struct router_info *
+static int fill_rti __P((struct in_multi *inm));
+static struct router_info *
find_rti __P((struct ifnet *ifp));
-struct igmpstat igmpstat;
+static struct igmpstat igmpstat;
SYSCTL_STRUCT(_net_inet_igmp, IGMPCTL_STATS, stats, CTLFLAG_RD,
&igmpstat, igmpstat, "");
@@ -100,7 +100,7 @@ igmp_init()
Head = (struct router_info *) 0;
}
-int
+static int
fill_rti(inm)
struct in_multi *inm;
{
@@ -135,7 +135,7 @@ fill_rti(inm)
return IGMP_HOST_NEW_MEMBERSHIP_REPORT;
}
-struct router_info *
+static struct router_info *
find_rti(ifp)
struct ifnet *ifp;
{
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).
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 6a656b0..97c48e0 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)raw_ip.c 8.7 (Berkeley) 5/15/95
- * $Id: raw_ip.c,v 1.23 1995/10/21 02:12:20 davidg Exp $
+ * $Id: raw_ip.c,v 1.24 1995/11/14 20:34:23 phk Exp $
*/
#include <sys/param.h>
@@ -57,8 +57,8 @@
#include <netinet/ip_fw.h>
-struct inpcbhead ripcb;
-struct inpcbinfo ripcbinfo;
+static struct inpcbhead ripcb;
+static struct inpcbinfo ripcbinfo;
/*
* Nominal space allocated to a raw ip socket.
@@ -86,7 +86,7 @@ rip_init()
ripcbinfo.hashbase = phashinit(1, M_PCB, &ripcbinfo.hashsize);
}
-struct sockaddr_in ripsrc = { sizeof(ripsrc), AF_INET };
+static struct sockaddr_in ripsrc = { sizeof(ripsrc), AF_INET };
/*
* Setup generic address and protocol structures
* for raw_input routine, then pass them along with
OpenPOWER on IntegriCloud