-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
7 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,8 +198,8 @@ def _add_ubridge_connection(self, nio, port_number): | |
|
||
if sys.platform.startswith("linux"): | ||
# use raw sockets on Linux | ||
yield from self._ubridge_send('bridge add_nio_linux_raw {name} "{interface}"'.format(name=bridge_name, | ||
interface=port_info["interface"])) | ||
yield from self._ubridge_send('bridge add_nio_ethernet {name} "{interface}"'.format(name=bridge_name, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
julien-duponchelle
via email
Author
Contributor
|
||
interface=port_info["interface"])) | ||
else: | ||
if sys.platform.startswith("darwin"): | ||
# Wireless adapters are not well supported by the libpcap on OSX | ||
|
@@ -214,8 +214,9 @@ def _add_ubridge_connection(self, nio, port_number): | |
interface=port_info["interface"])) | ||
|
||
elif port_info["type"] == "tap": | ||
yield from self._ubridge_send('bridge add_nio_tap {name} "{interface}"'.format(name=bridge_name, | ||
interface=port_info["interface"])) | ||
yield from self._ubridge_send('bridge add_nio_tap {name} "{interface}"'.format(name=bridge_name, interface=port_info["interface"])) | ||
if port_info["interface"].startswith("nat"): | ||
yield from self._ubridge_send('brctl addif virbr0 "{interface}"'.format(interface=port_info["interface"])) | ||
|
||
elif port_info["type"] == "udp": | ||
yield from self._ubridge_send('bridge add_nio_udp {name} {lport} {rhost} {rport}'.format(name=bridge_name, | ||
|
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 will require lib pcap to be installed.