with dhcp ON, after apply and menu quit wrong check for changed interface parameters, received from dhcp

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1310 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: dc2016504a
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-03-17 (Thu, 17 Mar 2011)
This commit is contained in:
[CST] Focus
2011-03-17 18:35:32 +00:00
parent d8140099b1
commit 912f58fd5a

View File

@@ -146,6 +146,23 @@ bool CNetworkConfig::modified_from_orig(void)
if((ssid != orig_ssid) || (key != orig_key))
return 1;
}
/* check for following changes with dhcp enabled trigger apply question on menu quit,
* even if apply already done */
if (inet_static) {
if ((orig_address != address ) ||
(orig_netmask != netmask ) ||
(orig_broadcast != broadcast ) ||
(orig_gateway != gateway ))
return 1;
}
return (
(orig_automatic_start != automatic_start) ||
(orig_hostname != hostname ) ||
(orig_inet_static != inet_static ) ||
(orig_ifname != ifname)
);
#if 0
return (
(orig_automatic_start != automatic_start) ||
(orig_address != address ) ||
@@ -156,6 +173,7 @@ bool CNetworkConfig::modified_from_orig(void)
(orig_inet_static != inet_static ) ||
(orig_ifname != ifname)
);
#endif
}
void CNetworkConfig::commitConfig(void)