freebsd-dev/sbin
Brian Somers 6964abef83 When dhclient obtains a lease, it runs dhclient-script and expects
it to configure the interface.  When the script is complete, dhclient
monitors the routing socket and will terminate if its address is
deleted or if its interface is removed or brought down.

Because the routing socket is already open when dhclient-script is
run, dhclient ignores address deletions for 10 seconds after the
script was run.

If the address that will be obtained is already configured on the
interface before dhclient starts, and if dhclient-script takes more
than 10 seconds (perhaps due to dhclient-*-hooks latencies), on script
completion, dhclient will immediately and silently exit when it sees
the RTM_DELADDR routing message resulting from the script reassigning
the address to the interface.

This change logs dhclient's reason for exiting and also changes the
10 second timeout to be effective from completion of dhclient-script
rather than from when it was started.

We now ignore RTM_DELADDR and RTM_NEWADDR messages when the message
contains no interface address (which should not happen) rather than
exiting.

Not reviewed by:	brooks (timeout)
MFC after:		3 weeks
2010-07-07 06:06:54 +00:00
..
adjkerntz Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
atacontrol Improve output for controllers that doesn't report SATA speed. 2010-02-22 10:45:40 +00:00
atm Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
badsect Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
bsdlabel - Don't assign the return value from read(2) to a variable of type 2010-06-30 18:34:45 +00:00
camcontrol Correct explanation for idle and standby subcommands' -t argument. 2010-07-01 14:10:55 +00:00
ccdconfig Remove dead variable assignments 2010-06-11 17:03:04 +00:00
clri Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
comcontrol ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
conscontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ddb Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
devd Expand system into my_system, and add the necessary tidyness that we 2010-06-29 03:52:12 +00:00
devfs Document the interaction between /etc/devfs.conf and 2010-02-21 10:29:45 +00:00
dhclient When dhclient obtains a lease, it runs dhclient-script and expects 2010-07-07 06:06:54 +00:00
dmesg Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
dump Plug two memory leaks in error case. 2010-02-03 23:56:12 +00:00
dumpfs - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
dumpon Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
fdisk - Back out the previous change in order to maintain compatibility. 2009-06-17 06:41:10 +00:00
fdisk_pc98 Use the common PC98_SID_ACTIVE define instead of a local define. 2009-03-19 12:31:59 +00:00
ffsinfo Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
fsck Fix minor resource leak in a function which was introduced by changing an 2009-11-20 15:27:00 +00:00
fsck_ffs - Permit zero length directories as a handled inconsistency. This allows 2010-07-06 07:07:29 +00:00
fsck_msdosfs Fix some style(9), although there's a lot more issues here. 2010-06-20 09:40:54 +00:00
fsdb - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
fsirand fsirand(8): make WARNS=3 clean 2010-05-14 14:26:49 +00:00
gbde Remove dead variable assignments 2010-06-11 17:03:04 +00:00
geom Fix the clear function which has been broken for a bit. 2010-07-04 22:17:56 +00:00
ggate Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
growfs When growing a UFS1 filesystem, we need to initialise all inodes in any new 2010-02-13 16:22:08 +00:00
gvinum Initialize variables before usage. 2010-06-11 17:02:57 +00:00
hastctl mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
hastd Correct various log messages. 2010-06-14 21:46:48 +00:00
ifconfig Document the 'short preamble' capability for 802.11bg. 2010-05-14 15:06:12 +00:00
init Remove stale inclusion of <ulog.h>. 2010-01-27 20:32:58 +00:00
ipf Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
ipfw fix 64-bit build 2010-04-19 16:35:47 +00:00
iscontrol Remove dead variable assignments 2010-06-11 17:03:04 +00:00
kldconfig Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldload Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldstat Casting size_t to uintmax_t is not necessary anymore. This also 2010-05-12 15:47:43 +00:00
kldunload Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ldconfig ANSIfy ldconfig and the aout bits it still uses from rtld-aout. 2009-12-29 21:07:17 +00:00
mca sysctlbyname() returns -1 on error and sets errno. It does 2010-07-03 22:02:29 +00:00
md5 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mdconfig Make mdconfig(8) WARNS=6 clean: 2010-01-22 08:51:58 +00:00
mdmfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mknod Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
mksnap_ffs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount Clarify devfs manpages slightly. 2010-05-29 20:24:01 +00:00
mount_autofs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_cd9660 Fix minor memory leak in a function. 2009-11-20 15:28:38 +00:00
mount_ext2fs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_hpfs mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
mount_msdosfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_nfs Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
mount_ntfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_nullfs ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
mount_reiserfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_std mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_unionfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
natd Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
newfs Fix "Empty input line" mdoc warning. 2010-03-10 00:47:09 +00:00
newfs_msdos Rename variables to match msdosfs headers. 2010-02-14 12:25:39 +00:00
nfsiod - Display current settings when run without options. 2009-12-26 08:36:02 +00:00
nos-tun nos-tun(8): make WARNS=3 clean 2010-03-10 18:51:13 +00:00
pfctl Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
pflogd Let pflogd's Makefile just use WARNS instead of changing CFLAGS. 2009-04-23 09:11:37 +00:00
ping Small style fixes: 2010-06-20 12:52:33 +00:00
ping6 Call free and freeaddrinfo before exiting. 2010-06-16 15:49:17 +00:00
quotacheck Update to current version of head. 2010-04-28 05:33:59 +00:00
rcorder mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
reboot Let boot(8) refer to the uart(4) serial driver, which is the replacement 2010-07-04 20:39:07 +00:00
recoverdisk Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
restore Fix grammar in a line of output. 2010-05-12 20:21:44 +00:00
route route(8): make WARNS=3 clean 2010-02-27 10:18:33 +00:00
routed routed(8)/rtquery(8) bump/demote to WARNS=3 for all archs 2010-02-27 10:17:27 +00:00
rtsol rtsol(8)/rtsold(8): make WARNS=3 clean 2010-02-27 10:19:39 +00:00
savecore Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
setkey o Fix typo. 2010-03-26 05:35:25 +00:00
shutdown Add missing `void' for functions without arguments. 2009-12-29 08:49:43 +00:00
spppcontrol mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
sunlabel Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
swapon Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
sysctl Free the memory allocated via strdup. 2010-03-13 11:08:57 +00:00
tunefs - Round up the journal size to the block size so we don't confuse fsck. 2010-05-18 01:45:28 +00:00
umount Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
Makefile Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
Makefile.inc Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00