This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --metered option to indicate that network is metered and/or shoul…
…d be used sparingly This extremely useful StackExchange post summarizes the different ways of indicating this to clients: https://unix.stackexchange.com/a/631812 1. Microsoft's "network cost information element" (https://learn.microsoft.com/fi-fi/windows-hardware/drivers/mobilebroadband/network-cost-information-element) which seems to be quasi-standard at this point. Recent versions of NetworkManager also understand it, but due to a mistake in earlier versions of Microsoft's documentation, older versions parse the element incorrectly (gory details at https://openwrt.org/docs/guide-user/network/wifi/ms-meteredconnection#under_the_hood). 2. Apple's vendor element (https://apple.stackexchange.com/a/457630) seems to be undocumented, but it can be copied/used as is. 3. Adding the value "ANDROID_METERED" as part of the force-sent DHCP option 43 causes Android devices to perceive this wireless network as metered (see https://unix.stackexchange.com/a/631812 as well as https://www.lorier.net/docs/android-metered.html).
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters