summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/dev_net.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-09-01 09:11:14 +0000
committerdfr <dfr@FreeBSD.org>1999-09-01 09:11:14 +0000
commit780e80b50782553f48d800ffd0e9f9830fb85364 (patch)
tree08eb96f597e6ba09e1d80f6443db86127437e530 /sys/boot/common/dev_net.c
parentf6c539b7049c35b0ee6eea4a8a7cd3c49d2f8770 (diff)
downloadFreeBSD-src-780e80b50782553f48d800ffd0e9f9830fb85364.zip
FreeBSD-src-780e80b50782553f48d800ffd0e9f9830fb85364.tar.gz
* Fix a stack of warnings.
* Make it possible to type a filename to boot1 so that it is possible to recover from fatally broken versions of /boot/loader. * Make a start at a CD boot program (not yet functional).
Diffstat (limited to 'sys/boot/common/dev_net.c')
-rw-r--r--sys/boot/common/dev_net.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/boot/common/dev_net.c b/sys/boot/common/dev_net.c
index cf12680..c944e59 100644
--- a/sys/boot/common/dev_net.c
+++ b/sys/boot/common/dev_net.c
@@ -79,9 +79,8 @@ static int netdev_sock = -1;
static int netdev_opens;
static int net_init(void);
-static int net_open(struct open_file *, void *vdev);
+static int net_open(struct open_file *, ...);
static int net_close(struct open_file *);
-static int net_ioctl();
static int net_strategy();
static int net_getparams(int sock);
@@ -108,12 +107,15 @@ net_init(void)
* This is declared with variable arguments...
*/
int
-net_open(struct open_file *f, void *vdev)
+net_open(struct open_file *f, ...)
{
+ va_list args;
char *devname; /* Device part of file name (or NULL). */
int error = 0;
- devname = vdev;
+ va_start(args, f);
+ devname = va_arg(args, char*);
+ va_end(args);
/* On first open, do netif open, mount, etc. */
if (netdev_opens == 0) {
@@ -173,12 +175,6 @@ net_close(f)
}
int
-net_ioctl()
-{
- return EIO;
-}
-
-int
net_strategy()
{
return EIO;
@@ -202,6 +198,8 @@ int try_bootp = 1;
int bootp(int sock);
#endif
+extern n_long ip_convertaddr(char *p);
+
static int
net_getparams(sock)
int sock;
OpenPOWER on IntegriCloud