summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-07-22 08:51:42 +0000
committerjkh <jkh@FreeBSD.org>1999-07-22 08:51:42 +0000
commitd0bf24ef2dadd9d1c2b649b87c84c653e98ded47 (patch)
tree7d8e0d90b750b0d11182066964fd75adfc9aca7a /release
parent83880cb90483b6146cb79be6d0ff689512baa4e6 (diff)
downloadFreeBSD-src-d0bf24ef2dadd9d1c2b649b87c84c653e98ded47.zip
FreeBSD-src-d0bf24ef2dadd9d1c2b649b87c84c653e98ded47.tar.gz
Intentionally do the wrong thing in using the initial DHCP values for
ifconfig, essentially stealing the lease until the user goes and changes it. The alternative, sadly, is total dysfunction since bpf isn't in GENERIC and network connectivity would otherwise fail completely on first bootup when DHCP configuration was attempted again. The ultimate answer here is to make either bpf a loadable kernel module (which security conscious admins will be able to simply remove from /modules) or come up with a lighter weight mechanism just for dhcp and other apps that need to see broadcast packets but not otherwise sniff the wire in full bpf glory.
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/tcpip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c
index ffa2f05..d6a3d84 100644
--- a/release/sysinstall/tcpip.c
+++ b/release/sysinstall/tcpip.c
@@ -1,5 +1,5 @@
/*
- * $Id: tcpip.c,v 1.84 1999/07/19 10:18:52 jkh Exp $
+ * $Id: tcpip.c,v 1.85 1999/07/19 11:00:56 jkh Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@@ -384,9 +384,11 @@ netconfig:
di->use_dhcp = use_dhcp;
sprintf(ifn, "%s%s", VAR_IFCONFIG, devp->name);
+#ifdef notyet /* XXX this will only work once bpf is a loadable kernel mod */
if (use_dhcp)
sprintf(temp, "DHCP");
else
+#endif
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
ifaces = variable_get(VAR_INTERFACES);
OpenPOWER on IntegriCloud