Граф коммитов

285 Коммитов

Автор SHA1 Сообщение Дата
Kershaw Chang 0e741f1658 Bug 1598676 - P2: Send dns suffix list updated event (Windows/Linux/Android) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54901

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Kershaw Chang 4c90c150c6 Bug 1598676 - P1: Send dns suffix list updated event (MacOS) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54782

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Valentin Gosu 43afef29e7 Bug 1565022 - TRR: Check for NRPT on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54093

--HG--
extra : moz-landing-system : lando
2019-11-24 14:33:26 +00:00
Valentin Gosu 0e928af6c3 Bug 1565008 - TRR: Check for Proxy on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54092

--HG--
extra : moz-landing-system : lando
2019-11-24 14:54:02 +00:00
Valentin Gosu 13590a1c98 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Cosmin Sabou 4e76fd5665 Backed out 2 changesets (bug 1565004) for xpc failures on netwerk/test/unit/test_trr.js.
Backed out changeset 3d6d67621349 (bug 1565004)
Backed out changeset ef016d00ec9b (bug 1565004)
2019-11-20 18:40:16 +02:00
Valentin Gosu eb905c9af5 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-20 14:33:11 +00:00
Valentin Gosu d7cadb0bc8 Bug 1597683 - Parse DNS suffix list from the windows registry r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53814

--HG--
extra : moz-landing-system : lando
2019-11-20 12:54:29 +00:00
Michal Novotny c42d0ce790 Bug 1596419 - Network change event can be hidden by coalescing period on Linux/Android r=valentin
This patch makes network change event different from network ID change event on Linux and Android. Network change event is now also sent when any address has been added, removed or changed.

Differential Revision: https://phabricator.services.mozilla.com/D53796

--HG--
extra : moz-landing-system : lando
2019-11-20 11:56:13 +00:00
Valentin Gosu 8cf9e7e128 Bug 1589446 - Send the network id notification on networkID change (OSX) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53363

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:43 +00:00
Valentin Gosu 8c6c95e80d Bug 1589446 - Send the network id notification on networkID change (Android) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53362

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:30 +00:00
Valentin Gosu 0f34f53efd Bug 1589446 - Send the network id notification on networkID change (Linux) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53361

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:17 +00:00
Valentin Gosu b28d9ca7fc Bug 1589446 - Add network id change event (Windows) r=kershaw,michal
- removes nsNotifyAddrListener::ChangeEvent in favour of NS_NewRunnableFunction
- adds new topic for network ID change notification

Differential Revision: https://phabricator.services.mozilla.com/D52689

--HG--
extra : moz-landing-system : lando
2019-11-19 11:41:43 +00:00
Junior Hsu 65217caaa7 Bug 1579424 - P5 module log for network link service in OSX, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48927

--HG--
extra : moz-landing-system : lando
2019-11-12 16:08:22 +00:00
Junior Hsu c4bdf5edf8 Bug 1579424 - P4 asking kernel the gateway of pre-defined address, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48926

--HG--
extra : moz-landing-system : lando
2019-11-14 21:25:17 +00:00
Junior Hsu 47b7017d25 Bug 1579424 - P3 Use ifname and ip as a fail over, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48805

--HG--
extra : moz-landing-system : lando
2019-11-12 16:05:08 +00:00
Junior Hsu 2e5cd89695 Bug 1579424 - P2 Calculate network id not only using the main gateway, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48804

--HG--
extra : moz-landing-system : lando
2019-11-12 16:04:38 +00:00
Junior Hsu 049eb24005 Bug 1579424 - P1 Traverse the whole routing table, r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48803

--HG--
extra : moz-landing-system : lando
2019-11-12 16:04:09 +00:00
Valentin Gosu 33ffe027d9 Bug 1588218 - Expose DNS suffix list (Android) r=michal,snorp
Differential Revision: https://phabricator.services.mozilla.com/D51561

--HG--
extra : moz-landing-system : lando
2019-11-14 20:39:34 +00:00
Michal Novotny a012999a15 Bug 1589447 - Add network id change event on Linux and Android, r=kershaw,valentin
This patch adds network ID change event to Linux and Android. On these platforms network ID change event is equal to network change event.

Differential Revision: https://phabricator.services.mozilla.com/D50391

--HG--
extra : moz-landing-system : lando
2019-11-14 13:37:50 +00:00
Csoregi Natalia f61715aa1b Backed out changeset 8265027727ef (bug 1589446) for marionette failures on \test_refresh_firefox.py. CLOSED TREE 2019-11-14 03:43:54 +02:00
Valentin Gosu eecaa3ac0e Bug 1589446 - Add network id change event (Windows) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D52689

--HG--
extra : moz-landing-system : lando
2019-11-12 18:24:37 +00:00
Valentin Gosu d130f41722 Bug 1562388 - Remove legacy ICS handling from nsNotifyAddrListener r=mayhemer
This code was added in bug 465158 to deal with on-demand dial-up
connections. That scenario is hopefully not common anymore.
One benefit of the code was that it excludes network adapters
that share the computers network from being part of network
change notifications, network ID, etc. However, the code assumed
that only adapters with the address 192.168.0.1 would be a ICS
adapter, but trying to set up ICS on Windows 10 actually set the
LAN interface with 192.168.137.1 - so that assumption isn't
valid anymore. So the code is likely not even running for
adapters that are ICS. It may run for adapters which have the
IP 192.168.0.1, but probably that's quite rare as that's more
often a gateway IP than a client IP.

In any case, it's better to just get rid of it and if needed,
however unlikely, we'll replace it with a more modern API.

Depends on D52573

Differential Revision: https://phabricator.services.mozilla.com/D52574

--HG--
extra : moz-landing-system : lando
2019-11-12 18:21:48 +00:00
Valentin Gosu b4f254a384 Bug 1562388 - Remove XP legacy NotifyAddrChange call from nsNotifyAddrListener r=mayhemer
Old code needed to dynamically load a DLL - which was not available
for windows versions prior to Vista, and if that failed it would
fall back to using an older API.

This patch now calls the methods directly, since we don't have to
worry about the library not being there; we also remove the
fallback, meaning we always call NotifyIpInterfaceChange instead
of falling back to NotifyAddrChange.

Differential Revision: https://phabricator.services.mozilla.com/D52573

--HG--
extra : moz-landing-system : lando
2019-11-12 18:18:21 +00:00
Dorel Luca 9afadd1cdd Backed out changeset 6384318223b4 (bug 1588218) for Linting failure on mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java. CLOSED TREE 2019-11-11 23:16:27 +02:00
Valentin Gosu f4d8a78639 Bug 1588218 - Expose DNS suffix list (Android) r=michal,snorp
Differential Revision: https://phabricator.services.mozilla.com/D51561

--HG--
extra : moz-landing-system : lando
2019-11-11 20:51:42 +00:00
Michal Novotny 2d153a80d4 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

Differential Revision: https://phabricator.services.mozilla.com/D52027

--HG--
extra : moz-landing-system : lando
2019-11-07 15:16:36 +00:00
Ciure Andrei e16f37061a Backed out changeset 755655b3175a (bug 1593693)for causing NetlinkService.cpp build bustages CLOSED TREE 2019-11-07 15:40:49 +02:00
Michal Novotny a85ff06ef1 Bug 1593693 - nsINetworkLinkService.isLinkUp returns true when no network connection is available, r=valentin
Determining link status from states and addresses of the individual interfaces isn't always reliable. With this patch we assume the link is up when we could find a route for kRouteCheckIPv4 host or kRouteCheckIPv6 host.

Differential Revision: https://phabricator.services.mozilla.com/D52027

--HG--
extra : moz-landing-system : lando
2019-11-07 11:45:13 +00:00
Michal Novotny 787ca4f17b Bug 1593658 - network ID: Fix detecting mobile data link on some Android versions, r=valentin
When we fail to detect the link as mobile data device, we use GW address for ID calculation. And because GW changes often in case of mobile data we often get different ID for the same network.

Differential Revision: https://phabricator.services.mozilla.com/D51612

--HG--
extra : moz-landing-system : lando
2019-11-04 19:45:49 +00:00
Kershaw Chang 07ce7a231c Bug 1589448 - Add network id changed event on MacOS r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D50463

--HG--
extra : moz-landing-system : lando
2019-10-29 23:19:03 +00:00
Kershaw Chang 8afce6a668 Bug 1588217 - Use SystemConfiguration framework to get DNS search domains r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49476

--HG--
extra : moz-landing-system : lando
2019-10-29 23:05:17 +00:00
Gurzau Raul 75def3b448 Backed out changeset 0961f4328316 (bug 1588056) for build bustage at nsNetworkLinkService.mm on a CLOSED TREE. 2019-10-30 00:57:27 +02:00
Dragana Damjanovic 3071f2992e Bug 1588056 - Add telemetry about the time between network change events if we do the events coalescing. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D48954

--HG--
extra : moz-landing-system : lando
2019-10-29 22:25:40 +00:00
Narcis Beleuzu 9e239f2b4a Backed out 2 changesets (bug 1589461, bug 1589447) for wpt failures on report-only-in-meta.sub.html
Backed out changeset e58350a47d50 (bug 1589461)
Backed out changeset abdcdc97cd4c (bug 1589447)
2019-10-29 19:05:09 +02:00
Michal Novotny 0eadedd8b8 Bug 1589461 - Add network id change event (Android), r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D50429

--HG--
extra : moz-landing-system : lando
2019-10-29 09:04:13 +00:00
Michal Novotny 9f3a7ca5a2 Bug 1589447 - Add network id change event (linux), r=kershaw
This patch splits network change event into 2 events:
1) network ID change event
It is sent when the calculated ID differs from the previous one.

2) network change event
It is sent when the network ID has changed or when any address has been added, removed or changed.

Differential Revision: https://phabricator.services.mozilla.com/D50391

--HG--
extra : moz-landing-system : lando
2019-10-29 09:37:58 +00:00
Michal Novotny 02ec9a0a47 Bug 1590250 - network ID: different ID is detected after re-enabling mobile data, r=valentin
For same reason, there are artificial MAC addresses available on some non-ethernet link devices. With this patch we ignore all neighbor messages for non-ethernet links. Also, when traffic for the checked host is routed via rmnet_data device, we skip hashing IP of next hop, because it changes very often in case of some mobile providers.

Differential Revision: https://phabricator.services.mozilla.com/D50184

--HG--
extra : moz-landing-system : lando
2019-10-23 13:17:46 +00:00
Valentin Gosu fe3c993ae7 Bug 1588219 - Expose DNS suffix list (Linux) r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49414

--HG--
extra : moz-landing-system : lando
2019-10-22 19:46:28 +00:00
Kershaw Chang 5a6e10c586 Bug 1584165 - Calaulate network id with delay after network changed r=michal
Differential Revision: https://phabricator.services.mozilla.com/D48446

--HG--
extra : moz-landing-system : lando
2019-10-17 14:24:57 +00:00
Razvan Maries af59d8f13e Backed out changeset 61a42130beb8 (bug 1588056) for build bustages on nsNetworkLinkService.mm. CLOSED TREE 2019-10-16 00:34:01 +03:00
Dragana Damjanovic 58d9498a00 Bug 1588056 - Add telemetry about the time between network change events if we do the events coalescing. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D48954

--HG--
extra : moz-landing-system : lando
2019-10-11 16:13:35 +00:00
Valentin Gosu 65efbcd070 Bug 1558840 - Add nsINetworkLinkService.dnsSuffixList implementation for windows r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D48556

--HG--
extra : moz-landing-system : lando
2019-10-10 16:21:19 +00:00
Michal Novotny d206228f78 Bug 1586731 - network ID: drop routes/addresses when link/address is removed by the kernel, r=valentin
Kernel can drop routes, addresses and neighbors without notification via netlink. So we update information in our structures as follows:
- when a link is removed all associated routes, addresses and neighbors are removed too
- when a link is disabled all associated routes and neighbors are removed
- when an address on a link is removed all routes and neighbors from this network are removed

All routes, neighbors and addresses always belong to some link, so a new class LinkInfo was created and it holds all information related to a single link. This makes finding information related to a specific link much easier.

Differential Revision: https://phabricator.services.mozilla.com/D48360

--HG--
extra : moz-landing-system : lando
2019-10-08 13:05:42 +00:00
Razvan Maries c748295700 Backed out changeset fbc6bf62b19d (bug 1586731) for perma fails on nsAutoPtr.h. CLOSED TREE 2019-10-08 15:44:06 +03:00
Michal Novotny e16c1f2400 Bug 1586731 - network ID: drop routes/addresses when link/address is removed by the kernel, r=valentin
Kernel can drop routes, addresses and neighbors without notification via netlink. So we update information in our structures as follows:
- when a link is removed all associated routes, addresses and neighbors are removed too
- when a link is disabled all associated routes and neighbors are removed
- when an address on a link is removed all routes and neighbors from this network are removed

All routes, neighbors and addresses always belong to some link, so a new class LinkInfo was created and it holds all information related to a single link. This makes finding information related to a specific link much easier.

Differential Revision: https://phabricator.services.mozilla.com/D48360

--HG--
extra : moz-landing-system : lando
2019-10-08 12:08:15 +00:00
Michal Novotny 3b3f253dd6 Bug 1585920 - network ID: fix VPN detection on Linux for non ethernet devices, r=valentin
In case of non ethernet device we can never get a MAC address of the next hop, so skip MAC lookup and proceed directly to network ID calculation based on device name and IP/network address.

Differential Revision: https://phabricator.services.mozilla.com/D48049

--HG--
extra : moz-landing-system : lando
2019-10-07 14:34:38 +00:00
Michal Novotny 7cb94b9058 Bug 1584089 - Use only global routes for network ID calculation, r=valentin
Although local link addresses are not routable, some Android versions have default route for such prefix. We need to ignore any non-global routes when calculating ID.

Differential Revision: https://phabricator.services.mozilla.com/D47578

--HG--
extra : moz-landing-system : lando
2019-10-01 12:58:18 +00:00
Valentin Gosu 561f9c7ff6 Bug 1583170 - Dispatch nsNotifyAddrListener runnable after creating thread r=michal
Bug 1576386 converted the thread into a threadpool, but when changing that it failed to dispatch the runnable to the thread/threadpool as before.
As a result nsNotifyAddrListener stopped listening for network change events on windows.

Differential Revision: https://phabricator.services.mozilla.com/D46932

--HG--
extra : moz-landing-system : lando
2019-09-25 12:59:26 +00:00
Michal Novotny e994509c2a Bug 1583204 - No Network ID is available when switching between WiFi and Lan networks, r=valentin
There can be multiple records for the same neighbor with different interface index when the computer is connected to the same network via multiple interfaces, e.g. LAN and WiFi. This patch adds interface index to the key, so when some interface goes down it doesn't remove records belonging to a different interface.

Differential Revision: https://phabricator.services.mozilla.com/D47017

--HG--
extra : moz-landing-system : lando
2019-09-25 12:38:20 +00:00