summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient-script
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r--sbin/dhclient/dhclient-script10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 06001d3f835..289320b4f03 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: dhclient-script,v 1.17 2010/06/02 09:57:16 phessler Exp $
+# $OpenBSD: dhclient-script,v 1.18 2011/03/27 12:15:46 krw Exp $
#
# Copyright (c) 2003 Kenneth R Westerback <krw@openbsd.org>
#
@@ -208,7 +208,13 @@ PREINIT6)
ifconfig $interface up
;;
-ARPCHECK|ARPSEND)
+ARPCHECK)
+ # Always succeed. i.e. accept lease.
+ ;;
+
+ARPSEND)
+ # Always fail. i.e. don't wait for ARP packet here.
+ exit 1
;;
BOUND|RENEW|REBIND|REBOOT)