dhcp subnet prefix fix

This commit is contained in:
soypat
2025-08-20 19:25:08 -03:00
parent 7470324b49
commit d254f3ae80
5 changed files with 39 additions and 3 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ func (s *StackAsync) populateDHCPResults() error {
router := netip.AddrFrom4(router4)
s.dhcpResults = DHCPResults{
Router: router,
Subnet: netip.PrefixFrom(router, int(s.dhcp.SubnetCIDRBits())),
Subnet: s.dhcp.SubnetPrefix(),
AssignedAddr: netip.AddrFrom4(assigned4),
ServerAddr: addr4(s.dhcp.ServerAddr()),
BroadcastAddr: addr4(s.dhcp.BroadcastAddr()),