Re: r239356: does it mean, that synchronous dhcp and dhcplcinet with disabled devd gone?

From: Lev Serebryakov <lev_at_FreeBSD.org>
Date: Tue, 21 Aug 2012 21:01:52 +0400
Hello, Ian.
You wrote 21 августа 2012 г., 19:55:07:

IL> I don't know what "teardown the configured lease" in that comment means,
IL> but it doesn't mean that the interface loses its current configuration,
IL> or that any existing connections are perturbed.
  Sorry, but comment in PR:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=166656

  says:

===================================
>dhclient on exit should also remove the IP address it has set.
Yes, and the patch in the existing PR _should_ do that - it invokes
the failure handler in the same way as the other dhclient failure
modes.
===================================

 I don't understand what exactly "should" means here -- it should, but
it doesn't or it should and it does?

 But in any case, it looks like here is intention to remove IP address, and if it
doesn't done so, it will be ``fixed'' in future -- no
contradictions/objections to this ``desired behavior'' is seen in this
PR.

IL> The important point is that if you unplug the cable then plug it into a
IL> different network, now the right thing will happen -- you will acquire
IL> an address on the new network.  That's the reason that this change is an
IL> important bugfix for a long standing (many many years) bug in freebsd's
IL> dhclient.
  No, I'll be without dhclient at all, if I don't use devd :(. And
 absence of devd is completely legal, and should be supported. It is
 perfectly valid and sensible setup for small devices (think:
 MIPS-based routers, which are started to be supported now), where devd
 could be very costly in both terms of flash size (it is C++
 application and need C++ runtime!) and memory (only devd event on
 such devices are this cable plugging/unplugging -- so using devd
 doesn't add any value for such setups).

-- 
// Black Lion AKA Lev Serebryakov <lev_at_FreeBSD.org>
Received on Tue Aug 21 2012 - 15:01:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC