Handle changing interface indexes when binding DHCP sockets.

This commit is contained in:
Simon Kelley committed 2022-02-03 17:26:28 +00:00
1 parent 292dfa653e
commit fa580ad3eb
4 files changed
+56 -26

No files matched your search

+8
View File
@@ -39,6 +39,14 @@ version 2.87
a local NODATA answer. The pre-2.86 behaviour is still available,
by configuring --address=/example.com/1.2.3.4 --local=/example.com/
Fix problem with binding DHCP sockets to an individual interface.
Despite the fact that the system call tales the interface _name_ as
a parameter, it actually, binds the socket to interface _index_.
Deleting the interface and creating a new one with the same name
leaves the socket bound to the old index. (Creating new sockets
always allocates a fresh index, they are not reused). We now
take this behaviour into account and keep up with changing indexes.
version 2.86
Handle DHCPREBIND requests in the DHCPv6 server code.