-
Notifications
You must be signed in to change notification settings - Fork 793
[applevz] Additional networks #4757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5e0b2b7
[vm-factory] Fetch networks supported by applevz
sharder996 84f334c
[vm] Bridged network via applevz framework
sharder996 b7c84d5
[applevz] Add file for housing vmnet code
sharder996 a58f8a9
[vmnet] Create struct for custom network interface
sharder996 9213909
[applevz] Refine interface for vmnet relays
sharder996 af09171
[applevz] Translate AppleVZ usage to vmnet
sharder996 dbf85e4
[packaging] Remove networking entitlement
sharder996 0589559
[applevz] Assign MAC address to bridged interface
sharder996 819e7ab
[vmnet] Rework VmnetRelay struct
sharder996 c5f591e
[vmnet] Mock up vmnet network interface creation
sharder996 dfa8244
[vmnet] Start vmnet interface impl
sharder996 e0dbe07
[vmnet] DGRAM socket creation
sharder996 dab0d6d
[vmnet] Start relay communication
sharder996 e8ac418
[vmnet] Don't generate UUIDs
sharder996 a527bb1
[vmnet] Log vmnet destruction process
sharder996 2450ea4
[vmnet] Add performance improvements
sharder996 9c93211
[vmnet] Credit original authors
sharder996 ca99b61
[applevz] Add some testing for VM factory
sharder996 842561a
[vmnet] Use a bit more idiomatic C++
sharder996 09c94c5
[vmnet] Organize buffers into struct
sharder996 e3e90a7
[vmnet] Convert to chrono units
sharder996 1b10902
[vmnet] Symmetrize forwarding loops
sharder996 434af6e
[vmnet] Directly return std::array
sharder996 7ee27b6
[vmnet] Simplify loop
sharder996 971399f
[bridge] Apply code suggestions
sharder996 825cf47
[tests] Test vm cloning
sharder996 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Copyright (C) Canonical, Ltd. | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; version 3. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| * | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <Virtualization/Virtualization.h> | ||
|
|
||
| #include <memory> | ||
|
|
||
| namespace multipass::applevz | ||
| { | ||
|
|
||
| // Opaque handle whose lifetime must exceed that of the attachment it was created with. | ||
| using VmnetRelayHandle = std::shared_ptr<void>; | ||
|
|
||
| struct VmnetBridge | ||
| { | ||
| VZFileHandleNetworkDeviceAttachment* attachment; | ||
| VmnetRelayHandle relay; | ||
| }; | ||
|
|
||
| VmnetBridge create_vmnet_bridge(const std::string& physical_iface); | ||
|
|
||
| } // namespace multipass::applevz |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.