• Dan Williams's avatar
    core: allow custom IP address ranges for Shared connections (bgo #675973) · 32a001f5
    Dan Williams authored
    Given an IPv4 address and prefix for a shared config, figure out
    the DHCP address range automatically.  To keep things simple we
    allow a max of 252 addresses (not including network address,
    broadcast address, and the hotspot) no matter what prefix you use,
    so if the address is, you still only get a range of ->
    But we also leave some addresses available above the host address
    for static stuff, like we did before.  This is done on a sliding
    scale from 0 to 8 addresses, where about 1/10th the number of
    available addresses are reserved.
.gitignore 5.07 KB