-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CrOS] Support IPv6 overlay for WireGuard
Currently only IPv4 overlay can be configured for a WireGuard service in UI. This patch extends the support to IPv6. Changes: - Use a separate field for local addresses instead of the field in StaticIPConfig, so that we can support an array of IP addresses instead of a single one. Shill-ONC translation and mojo interface are updated according to it. - Change the input validation for the "Client IP address" field and "Allowed IPs" field so that users can input IPv6 address. Note that this patch does not change any user-visible element in the UI. Only the validation rules are changed. out/Default/chromeos_unittests` xvfb-run -s "-screen 0 1024x768x24" ./out/Default/browser_tests \ --gtest_filter=NetworkComponentsNetworkConfigTest` created and modified. Bug: b:262662603 Test: unit test: `autoninja -C out/Default chromeos_unittests; Test: broswer unit test: `autoninja -C out/Default browser_tests; Test: tast run $DUT network.VPNUI* Test: manually verified that dual-stack WireGuard service can be Change-Id: I29b9568ed5ce884991f0ac18d35f26f14ad2a025 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4225076 Commit-Queue: Jie Jiang <jiejiang@chromium.org> Reviewed-by: Gordon Seto <gordonseto@google.com> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1106073}
- Loading branch information
Jie Jiang
authored and
Chromium LUCI CQ
committed
Feb 16, 2023
1 parent
434fa55
commit a2ff85d
Showing
14 changed files
with
141 additions
and
36 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
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
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
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
4 changes: 2 additions & 2 deletions
4
chromeos/components/test/data/onc/translation_of_shill_wireguard.onc
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
Oops, something went wrong.