Wait some seconds after the interface is brought up before packets trunk
authordrochner <drochner@NetBSD.org>
Fri, 03 Sep 1999 20:06:46 +0000
branchtrunk
changeset 55085 c8eeff6774fd
parent 55084 5b856dce1d54
child 55086 bdca83ee1788
Wait some seconds after the interface is brought up before packets are sent. Needed at least for if_ti to get the link up.
sys/nfs/nfs_boot.c
--- a/sys/nfs/nfs_boot.c	Fri Sep 03 17:07:52 1999 +0000
+++ b/sys/nfs/nfs_boot.c	Fri Sep 03 20:06:46 1999 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_boot.c,v 1.51 1999/07/07 21:29:29 drochner Exp $	*/
+/*	$NetBSD: nfs_boot.c,v 1.52 1999/09/03 20:06:46 drochner Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -211,6 +211,8 @@
 		goto out;
 	}
 
+	if (up)
+		delay(3000000); /* give the link some time to get up */
 out:
 	soclose(so);
 	return (error);
@@ -268,6 +270,7 @@
 		goto out;
 	}
 
+	delay(3000000); /* give the link some time to get up */
 out:
 	soclose(so);
 	return (error);