Staticise private interface lists.

This commit is contained in:
msmith 2002-01-08 10:30:09 +00:00
parent c2a5e58c01
commit e814937e0b
6 changed files with 5 additions and 7 deletions

View File

@ -103,7 +103,7 @@ static int faithmodevent __P((module_t, int, void *));
static MALLOC_DEFINE(M_FAITH, FAITHNAME, "Firewall Assisted Tunnel Interface");
static struct rman faithunits[1];
LIST_HEAD(, faith_softc) faith_softc_list;
static LIST_HEAD(, faith_softc) faith_softc_list;
int faith_clone_create __P((struct if_clone *, int *));
void faith_clone_destroy __P((struct ifnet *));

View File

@ -85,7 +85,7 @@
static MALLOC_DEFINE(M_GIF, "gif", "Generic Tunnel Interface");
static struct rman gifunits[1];
LIST_HEAD(, gif_softc) gif_softc_list;
static LIST_HEAD(, gif_softc) gif_softc_list;
void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af);
void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af);

View File

@ -130,7 +130,7 @@
#include <net/ppp_comp.h>
#endif
struct ppp_softc ppp_softc[NPPP];
static struct ppp_softc ppp_softc[NPPP];
/* XXX layering violation */
extern void pppasyncattach __P((void *));

View File

@ -98,8 +98,6 @@ struct ppp_softc {
int sc_rawin_count; /* # in sc_rawin */
};
extern struct ppp_softc ppp_softc[];
struct ppp_softc *pppalloc __P((pid_t pid));
void pppdealloc __P((struct ppp_softc *sc));
int pppioctl __P((struct ppp_softc *sc, u_long cmd, caddr_t data,

View File

@ -165,7 +165,7 @@ static MALLOC_DEFINE(M_SL, "sl", "SLIP Interface");
#define ABT_COUNT 3 /* count of escapes for abort */
#define ABT_WINDOW (ABT_COUNT*2+2) /* in seconds - time to count */
LIST_HEAD(sl_list, sl_softc) sl_list;
static LIST_HEAD(sl_list, sl_softc) sl_list;
#define FRAME_END 0xc0 /* Frame End */
#define FRAME_ESCAPE 0xdb /* Frame Esc */

View File

@ -135,7 +135,7 @@ struct stf_softc {
LIST_ENTRY(stf_softc) sc_list; /* all stf's are linked */
};
LIST_HEAD(, stf_softc) stf_softc_list;
static LIST_HEAD(, stf_softc) stf_softc_list;
static MALLOC_DEFINE(M_STF, STFNAME, "6to4 Tunnel Interface");
static struct rman stfunits[1];