diff options
| author | Marko Zec <zec@FreeBSD.org> | 2008-11-19 09:39:34 +0000 |
|---|---|---|
| committer | Marko Zec <zec@FreeBSD.org> | 2008-11-19 09:39:34 +0000 |
| commit | 44e33a075818146eb289c39c3ca2817f54517c9f (patch) | |
| tree | 3d398563f1e14b804a0558dd3dda1de9a42b9970 /sys/net/if_loop.c | |
| parent | 6f0e1ffd076c821819632e0371db2f38434ad02c (diff) | |
Notes
Diffstat (limited to 'sys/net/if_loop.c')
| -rw-r--r-- | sys/net/if_loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 09bbb5549e49..ba49d76c6fb7 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -96,7 +96,9 @@ int looutput(struct ifnet *ifp, struct mbuf *m, static int lo_clone_create(struct if_clone *, int, caddr_t); static void lo_clone_destroy(struct ifnet *); -struct ifnet *loif = NULL; /* Used externally */ +#ifdef VIMAGE_GLOBALS +struct ifnet *loif; /* Used externally */ +#endif IFC_SIMPLE_DECLARE(lo, 1); @@ -142,6 +144,7 @@ loop_modevent(module_t mod, int type, void *data) switch (type) { case MOD_LOAD: + V_loif = NULL; if_clone_attach(&lo_cloner); break; |
