Staticize <if>_clone_{create,destroy} functions.

Reviewed by:	mlaier
This commit is contained in:
Brooks Davis 2004-04-14 00:57:49 +00:00
parent 17834543c8
commit bb2bfb4fa9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128209
6 changed files with 24 additions and 24 deletions

View File

@ -104,8 +104,8 @@ struct pflog_softc pflogif[NPFLOG];
#endif
#ifdef __FreeBSD__
void pflog_clone_destroy(struct ifnet *);
int pflog_clone_create(struct if_clone *, int);
static void pflog_clone_destroy(struct ifnet *);
static int pflog_clone_create(struct if_clone *, int);
#else
void pflogattach(int);
#endif
@ -125,7 +125,7 @@ static LIST_HEAD(pflog_list, pflog_softc) pflog_list;
struct if_clone pflog_cloner = IF_CLONE_INITIALIZER(PFLOGNAME,
pflog_clone_create, pflog_clone_destroy, 1, IF_MAXUNIT);
void
static void
pflog_clone_destroy(struct ifnet *ifp)
{
struct pflog_softc *sc;
@ -143,7 +143,7 @@ pflog_clone_destroy(struct ifnet *ifp)
free(sc, M_PFLOG);
}
int
static int
pflog_clone_create(struct if_clone *ifc, int unit)
{
struct pflog_softc *sc;

View File

@ -95,8 +95,8 @@ struct pfsync_softc pfsyncif;
#endif
#ifdef __FreeBSD__
void pfsync_clone_destroy(struct ifnet *);
int pfsync_clone_create(struct if_clone *, int);
static void pfsync_clone_destroy(struct ifnet *);
static int pfsync_clone_create(struct if_clone *, int);
#else
void pfsyncattach(int);
#endif
@ -120,7 +120,7 @@ static LIST_HEAD(pfsync_list, pfsync_softc) pfsync_list;
struct if_clone pfsync_cloner = IF_CLONE_INITIALIZER(PFSYNCNAME,
pfsync_clone_create, pfsync_clone_destroy, 1, IF_MAXUNIT);
void
static void
pfsync_clone_destroy(struct ifnet *ifp)
{
struct pfsync_softc *sc;
@ -141,7 +141,7 @@ pfsync_clone_destroy(struct ifnet *ifp)
free(sc, M_PFSYNC);
}
int
static int
pfsync_clone_create(struct if_clone *ifc, int unit)
{
struct pfsync_softc *sc;

View File

@ -99,8 +99,8 @@ static struct mtx faith_mtx;
static MALLOC_DEFINE(M_FAITH, FAITHNAME, "Firewall Assisted Tunnel Interface");
static LIST_HEAD(, faith_softc) faith_softc_list;
int faith_clone_create(struct if_clone *, int);
void faith_clone_destroy(struct ifnet *);
static int faith_clone_create(struct if_clone *, int);
static void faith_clone_destroy(struct ifnet *);
static void faith_destroy(struct faith_softc *);
struct if_clone faith_cloner = IF_CLONE_INITIALIZER(FAITHNAME,
@ -157,7 +157,7 @@ static moduledata_t faith_mod = {
DECLARE_MODULE(if_faith, faith_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
MODULE_VERSION(if_faith, 1);
int
static int
faith_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@ -196,7 +196,7 @@ faith_destroy(struct faith_softc *sc)
free(sc, M_FAITH);
}
void
static void
faith_clone_destroy(ifp)
struct ifnet *ifp;
{

View File

@ -96,8 +96,8 @@ void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af);
void (*ng_gif_attach_p)(struct ifnet *ifp);
void (*ng_gif_detach_p)(struct ifnet *ifp);
int gif_clone_create(struct if_clone *, int);
void gif_clone_destroy(struct ifnet *);
static int gif_clone_create(struct if_clone *, int);
static void gif_clone_destroy(struct ifnet *);
struct if_clone gif_cloner = IF_CLONE_INITIALIZER("gif",
gif_clone_create, gif_clone_destroy, 0, IF_MAXUNIT);
@ -135,7 +135,7 @@ static int parallel_tunnels = 0;
SYSCTL_INT(_net_link_gif, OID_AUTO, parallel_tunnels, CTLFLAG_RW,
&parallel_tunnels, 0, "Allow parallel tunnels?");
int
static int
gif_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@ -208,7 +208,7 @@ gif_destroy(struct gif_softc *sc)
free(sc, M_GIF);
}
void
static void
gif_clone_destroy(ifp)
struct ifnet *ifp;
{

View File

@ -102,8 +102,8 @@ int loioctl(struct ifnet *, u_long, caddr_t);
static void lortrequest(int, struct rtentry *, struct rt_addrinfo *);
int looutput(struct ifnet *ifp, struct mbuf *m,
struct sockaddr *dst, struct rtentry *rt);
int lo_clone_create(struct if_clone *, int);
void lo_clone_destroy(struct ifnet *);
static int lo_clone_create(struct if_clone *, int);
static void lo_clone_destroy(struct ifnet *);
struct ifnet *loif = NULL; /* Used externally */
@ -115,7 +115,7 @@ static LIST_HEAD(lo_list, lo_softc) lo_list;
struct if_clone lo_cloner = IF_CLONE_INITIALIZER(LONAME,
lo_clone_create, lo_clone_destroy, 1, IF_MAXUNIT);
void
static void
lo_clone_destroy(ifp)
struct ifnet *ifp;
{
@ -134,7 +134,7 @@ lo_clone_destroy(ifp)
free(sc, M_LO);
}
int
static int
lo_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;

View File

@ -172,14 +172,14 @@ static int stf_checkaddr6(struct stf_softc *, struct in6_addr *,
static void stf_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
static int stf_ioctl(struct ifnet *, u_long, caddr_t);
int stf_clone_create(struct if_clone *, int);
void stf_clone_destroy(struct ifnet *);
static int stf_clone_create(struct if_clone *, int);
static void stf_clone_destroy(struct ifnet *);
/* only one clone is currently allowed */
struct if_clone stf_cloner =
IF_CLONE_INITIALIZER(STFNAME, stf_clone_create, stf_clone_destroy, 0, 0);
int
static int
stf_clone_create(ifc, unit)
struct if_clone *ifc;
int unit;
@ -223,7 +223,7 @@ stf_destroy(struct stf_softc *sc)
free(sc, M_STF);
}
void
static void
stf_clone_destroy(ifp)
struct ifnet *ifp;
{