summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/stand/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/stand/net.c')
-rw-r--r--sys/arch/macppc/stand/net.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/sys/arch/macppc/stand/net.c b/sys/arch/macppc/stand/net.c
index 50acb67b7b6..4a876de51c6 100644
--- a/sys/arch/macppc/stand/net.c
+++ b/sys/arch/macppc/stand/net.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: net.c,v 1.3 2002/09/15 09:01:59 deraadt Exp $ */
+/* $OpenBSD: net.c,v 1.4 2003/10/16 04:30:09 drahn Exp $ */
/* $NetBSD: net.c,v 1.1 1997/04/16 20:29:18 thorpej Exp $ */
/*
@@ -72,11 +72,10 @@ static int open_count;
* This opens the low-level device and sets f->f_devdata.
*/
int
-net_open(op)
- struct of_dev *op;
+net_open(struct of_dev *op)
{
int error = 0;
-
+
/*
* On first open, do netif open, mount, etc.
*/
@@ -99,8 +98,7 @@ bad:
}
int
-net_close(op)
- struct of_dev *op;
+net_close(struct of_dev *op)
{
/*
* On last close, do netif close, etc.
@@ -119,21 +117,21 @@ net_mountroot()
#ifdef DEBUG
printf("net_mountroot\n");
#endif
-
+
/*
* Get info for NFS boot: our IP address, out hostname,
* server IP address, and our root path on the server.
* We use BOOTP (RFC951, RFC1532) exclusively as mandated
* by PowerPC Reference Platform Specification I.4.2
*/
-
+
bootp(netdev_sock);
-
+
if (myip.s_addr == 0)
return ETIMEDOUT;
-
+
printf("Using IP address: %s\n", inet_ntoa(myip));
-
+
#ifdef DEBUG
printf("myip: %s (%s)", hostname, inet_ntoa(myip));
if (gateip.s_addr)
@@ -143,7 +141,7 @@ net_mountroot()
printf("\n");
#endif
printf("root addr=%s path=%s\n", inet_ntoa(rootip), rootpath);
-
+
/*
* Get the NFS file handle (mount).
*/