mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Staticize.
This commit is contained in:
parent
b2c3ac73a8
commit
f6d24a780b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12704
@ -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;
|
||||
{
|
||||
|
@ -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).
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user