1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Reverting the previous change for now. Some users reports the patch

fixes their issues but one reports a failure in NFS ROOT. Revert
the change for now pending further investigation.

Reviewed by:	bz
MFC after:	immediately
This commit is contained in:
Qing Li 2009-09-15 22:09:42 +00:00
parent b7bb894067
commit 812777783d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197235

View File

@ -464,6 +464,10 @@ nfs_mountroot(struct mount *mp)
}
#endif
error = ifioctl(so, SIOCAIFADDR, (caddr_t)&nd->myif, td);
if (error)
panic("nfs_mountroot: SIOCAIFADDR: %d", error);
if ((cp = getenv("boot.netif.mtu")) != NULL) {
ir.ifr_mtu = strtol(cp, NULL, 10);
bcopy(nd->myif.ifra_name, ir.ifr_name, IFNAMSIZ);