Date: Sun, 21 Jan 2007 10:24:57 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 113247 for review Message-ID: <200701211024.l0LAOvAp087959@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113247 Change 113247 by zec@zec_tpx32 on 2007/01/21 10:24:33 The diskless NFS booting process can operate only in the default vnet -> always resolve V_inet in vnetb_0. Affected files ... .. //depot/projects/vimage/src/sys/nfsclient/nfs_diskless.c#3 edit Differences ... ==== //depot/projects/vimage/src/sys/nfsclient/nfs_diskless.c#3 (text+ko) ==== @@ -36,14 +36,17 @@ __FBSDID("$FreeBSD: src/sys/nfsclient/nfs_diskless.c,v 1.17 2006/12/06 02:15:25 sam Exp $"); #include "opt_bootp.h" +#include "opt_vimage.h" #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/mount.h> +#include <sys/socket.h> +#include <sys/vimage.h> -#include <sys/socket.h> +#include <net/vnet.h> #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> @@ -148,6 +151,7 @@ void nfs_setup_diskless(void) { + INIT_VNET_NET(&vnetb_0); struct nfs_diskless *nd = &nfs_diskless; struct ifnet *ifp; struct ifaddr *ifa; @@ -176,7 +180,7 @@ } ifa = NULL; IFNET_RLOCK(); - TAILQ_FOREACH(ifp, &ifnet, if_link) { + TAILQ_FOREACH(ifp, &V_ifnet, if_link) { TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { if (ifa->ifa_addr->sa_family == AF_LINK) { sdl = (struct sockaddr_dl *)ifa->ifa_addr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701211024.l0LAOvAp087959>