Fixed a DHCP bug #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/DHCP-BugFix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dhcp.pas
-processPacket_OFFER
in which the client was responding with the client IP value within the DHCP header was incorrectly being filled out with the IP being requested & this value was then being used within the REQUESTED_IP_ADDRESS option. Corrected this to fill out the client IP with the currently configured IP, which will be NULL (0.0.0.0) on boot, and whatever is issued thereafter.copyIPv4(@NULL_IP[0], @packetCtx^.IP.Source[0])
.processPacket_OFFER
to process packets addressed to the BROADCAST MAC (WHY COULDN'T IT DO THIS ALREADY?!).