From 077afa02f5c8ce4316dae857dd025c8118e5eec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Thu, 3 Nov 2011 09:16:56 +0100 Subject: [PATCH] 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. --- src/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-device.c b/src/nm-device.c index a4cd3e9332..95f07e44da 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -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))) {