mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 12:00:36 +01:00
core: correct shared IP range to be 10.42.x.1 as is documented (bgo #657127)
This fixes possible "overflow" of range from 10.42.x.1 to the fourth (on LSB) or the second (on MSB) octet.
This commit is contained in:
parent
fc0739a5d4
commit
077afa02f5
1 changed files with 1 additions and 1 deletions
|
|
@ -1863,7 +1863,7 @@ release_shared_ip (gpointer data)
|
|||
static guint32
|
||||
reserve_shared_ip (void)
|
||||
{
|
||||
guint32 start = (guint32) ntohl (0x0a2a2b01); /* 10.42.43.1 */
|
||||
guint32 start = (guint32) ntohl (0x0a2a0001); /* 10.42.0.1 */
|
||||
guint32 count = 0;
|
||||
|
||||
while (g_hash_table_lookup (shared_ips, GUINT_TO_POINTER (start + count))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue