diff options
author | Thomas Haller <thaller@redhat.com> | 2017-05-28 14:48:25 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-05-28 18:10:48 +0200 |
commit | 46d9853e81a13da688bc62813335622849c9c694 (patch) | |
tree | ebb2e277e67f770ebb262c09892561f9f664e191 /src/main-utils.h | |
parent | 78a62bb0a998d45b5096debce753ba42688ebf41 (diff) | |
download | NetworkManager-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.h')
0 files changed, 0 insertions, 0 deletions