Bug 1568898 - Calaulate network id when ip changed r=michal
authorKershaw Chang <kershaw@mozilla.com>
Tue, 13 Aug 2019 16:48:05 +0000
changeset 488195 fa0807f1afad6b15d1675687a50777886c3e2a2a
parent 488194 3fff9f16b14d9f78c281aec7ac16ecdbd0348c1f
child 488196 9a51c0c9a0f7b16b0fbaa675300e8b4b29add727
push id36437
push userncsoregi@mozilla.com
push dateThu, 15 Aug 2019 19:33:18 +0000
treeherdermozilla-central@44aac6fc3352 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs1568898
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1568898 - Calaulate network id when ip changed r=michal Differential Revision: https://phabricator.services.mozilla.com/D39699
netwerk/system/mac/nsNetworkLinkService.mm
--- a/netwerk/system/mac/nsNetworkLinkService.mm
+++ b/netwerk/system/mac/nsNetworkLinkService.mm
@@ -389,16 +389,17 @@ nsNetworkLinkService::Observe(nsISupport
   return NS_OK;
 }
 
 /* static */
 void nsNetworkLinkService::IPConfigChanged(SCDynamicStoreRef aStoreREf, CFArrayRef aChangedKeys,
                                            void* aInfo) {
   nsNetworkLinkService* service = static_cast<nsNetworkLinkService*>(aInfo);
   service->SendEvent(true);
+  service->calculateNetworkId();
 }
 
 nsresult nsNetworkLinkService::Init(void) {
   nsresult rv;
 
   nsCOMPtr<nsIObserverService> observerService =
       do_GetService("@mozilla.org/observer-service;1", &rv);
   NS_ENSURE_SUCCESS(rv, rv);