Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2010 06:06:54 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/dhclient dhclient.c
Message-ID:  <201007070617.o676HB5U033801@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       2010-07-07 06:06:54 UTC

  FreeBSD src repository

  Modified files:
    sbin/dhclient        dhclient.c 
  Log:
  SVN rev 209756 on 2010-07-07 06:06:54Z by brian
  
  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
  
  Revision  Changes    Path
  1.27      +30 -16    src/sbin/dhclient/dhclient.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007070617.o676HB5U033801>