]> git.ipfire.org Git - thirdparty/dhcp.git/commit
Changed supersede_lease() to return 1, even if the commit option is
authorDamien Neil <source@isc.org>
Thu, 15 Feb 2001 21:34:08 +0000 (21:34 +0000)
committerDamien Neil <source@isc.org>
Thu, 15 Feb 2001 21:34:08 +0000 (21:34 +0000)
commit15c24b882bf7241ff75fa4161d408fa2ec1dfa1a
tree9d2f7f0061cc4c38a4322cd6e99951a2109458e3
parentf7dca4c7b33d410bd703fb52841758b22b8f60fc
Changed supersede_lease() to return 1, even if the commit option is
not specified.  (Before, it would always return 0 if commit was not
given.)  Fixed up the one call to supersede_lease() which expected
the old behavior.

Added a check to supersede_lease() to return an error if the pimmediate
flag is given, and commit is not.  (You should never be sending information
on an uncommitted lease to a peer.)

Separated the failover queue update (the propogate flag) test from
the commit test in supersede_lease(), so that you can now enqueue an
update on an uncommitted lease.
server/dhcp.c
server/mdb.c