summaryrefslogtreecommitdiff
path: root/src/main-utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-05-28 14:48:25 +0200
committerThomas Haller <thaller@redhat.com>2017-05-28 18:10:48 +0200
commit46d9853e81a13da688bc62813335622849c9c694 (patch)
treeebb2e277e67f770ebb262c09892561f9f664e191 /src/main-utils.c
parent78a62bb0a998d45b5096debce753ba42688ebf41 (diff)
downloadNetworkManager-th/shared-address-range.tar.gz
dnsmasq: fix generating shared IPv4 address rangeth/shared-address-range
Change behavior for the network-address and broadcast-address. Users should not specify such addresses, but if they do, generate something more sensible. Also, if the address was in network larger then /24, the generated address range was rather unexpected. Change behavior here. There are no particularly strong reasons for the chosen range. It just seems suitable. The decision to hand out at most a /24 is because it is likely to be plenty, and because that is what the previous code did -- at least, if the address was in the first /24 of the subnet. See how the result for 192.168.0.1/20 is unchanged, but 192.168.1.1/20 changes.
Diffstat (limited to 'src/main-utils.c')
0 files changed, 0 insertions, 0 deletions