]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-server: check address conflict more carefully
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Jan 2024 21:06:55 +0000 (06:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Jan 2024 20:10:47 +0000 (05:10 +0900)
commit0596f5939fa4d583756054cdfe8028146f52d4b4
tree9d64462a563f05da21025bda78bb029a8dafedc0
parentcb0ba4b41b9581460efea77789f255471d4a069d
sd-dhcp-server: check address conflict more carefully

- Even if we found a matching static lease, check if there is no
  conflicting lease.
- Accept an address request that is different from the previous one.
- Also return NAK if the server address is requested.
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/test-dhcp-server.c