Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve the issue with DHCP lease not being renewed
Very easily reproduced when you start a node with a Dynamic IP. Normally it should renew lease after TTL/2, but that doesn't happen, so the node starts to get next IP one after another. After looking at packets sent by other clients, found out that they have `Client IP address` equal to the IP given by the DHCP server. Additionally, changed DHCP client to send Request packets directly to the DHCP server after getting an offer. It looks like DHCP spec states that you should use unicast request directly to DHCP server, not broadcast. Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com>
- Loading branch information