summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2009-09-15 01:01:03 +0000
committerqingli <qingli@FreeBSD.org>2009-09-15 01:01:03 +0000
commitd073699112113e063b9f1f192a9fa00b3945c8a4 (patch)
tree3e2fdedb94aa2164e3571cc98d7695a19a289cd5 /sys/nfsclient
parentf2066f0140b87790e588ec3ea9e07817b7f04bd2 (diff)
downloadFreeBSD-src-d073699112113e063b9f1f192a9fa00b3945c8a4.zip
FreeBSD-src-d073699112113e063b9f1f192a9fa00b3945c8a4.tar.gz
The bootp code installs an interface address and the nfs client
module tries to install the same address again. This extra code is removed, which was discovered by the removal of a call to in_ifscrub() in r196714. This call to in_ifscrub is put back here because the SIOCAIFADDR command can be used to change the prefix length of an existing alias. Reviewed by: kmacy
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index e43f196..06316a8 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -463,9 +463,13 @@ nfs_mountroot(struct mount *mp)
break;
}
#endif
+
+#if 0 /* QL: XXX */
error = ifioctl(so, SIOCAIFADDR, (caddr_t)&nd->myif, td);
if (error)
panic("nfs_mountroot: SIOCAIFADDR: %d", error);
+#endif
+
if ((cp = getenv("boot.netif.mtu")) != NULL) {
ir.ifr_mtu = strtol(cp, NULL, 10);
bcopy(nd->myif.ifra_name, ir.ifr_name, IFNAMSIZ);
OpenPOWER on IntegriCloud