Staticise private interface lists.
This commit is contained in:
parent
c2a5e58c01
commit
e814937e0b
@ -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 *));
|
||||
|
@ -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);
|
||||
|
@ -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 *));
|
||||
|
@ -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,
|
||||
|
@ -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 */
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user