-
Notifications
You must be signed in to change notification settings - Fork 785
[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
Open
sharder996
wants to merge
26
commits into
main
Choose a base branch
from
feature/apple/networking
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e5b2d48
[vm-factory] Fetch networks supported by applevz
sharder996 4e43e5f
[vm] Bridged network via applevz framework
sharder996 ab29092
[applevz] Add file for housing vmnet code
sharder996 05d0daa
[vmnet] Create struct for custom network interface
sharder996 6f82b40
[applevz] Refine interface for vmnet relays
sharder996 25e8255
[applevz] Translate AppleVZ usage to vmnet
sharder996 584476c
[packaging] Remove networking entitlement
sharder996 3ee53aa
[applevz] Assign MAC address to bridged interface
sharder996 89efd8a
[vmnet] Rework VmnetRelay struct
sharder996 243f24a
[vmnet] Mock up vmnet network interface creation
sharder996 c0b58e3
[vmnet] Start vmnet interface impl
sharder996 b52e8e5
[vmnet] DGRAM socket creation
sharder996 9c09d51
[vmnet] Start relay communication
sharder996 52ab8ef
[vmnet] Don't generate UUIDs
sharder996 4ab411e
[vmnet] Log vmnet destruction process
sharder996 d24686b
[vmnet] Add performance improvements
sharder996 d2b4d9c
[vmnet] Credit original authors
sharder996 a3cae43
[applevz] Add some testing for VM factory
sharder996 bbc4484
[vmnet] Use a bit more idiomatic C++
sharder996 70f2a4a
[vmnet] Organize buffers into struct
sharder996 3b706e7
[vmnet] Convert to chrono units
sharder996 ba96f91
[vmnet] Symmetrize forwarding loops
sharder996 9eb4b90
[vmnet] Directly return std::array
sharder996 6c462db
[vmnet] Simplify loop
sharder996 0feafc9
[bridge] Apply code suggestions
sharder996 72f75f9
[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.