ethernet_slirp: Add libslirp EthernetConnection backend

The existing Ethernet connection implementation is PCAP-based. This
allows bridging your virtual machine directly to the host's network, but
requires elevated permissions on your OS and appropriate drivers which
often aren't available on Wi-Fi cards.

This commit adds a libslirp-based backend that provides just enough
internal networking to handle TCP/IP out of the guest to host, LAN or
Internet. As such things like ICMP, IPX and NetBIOS don't work properly.

The use case for this connection is to give Internet access to the guest
for things like IRC, HTTP and other connections to online services.
This commit is contained in:
Jookia
2021-03-04 10:12:13 +11:00
parent f070d5a706
commit ee071c5853
13 changed files with 600 additions and 12 deletions

View File

@@ -95,6 +95,9 @@
/* Define to 1 to enable ethernet passthrough, requires libpcap */
/* #undef C_PCAP */
/* Define to 1 to enable userspace TCP/IP emulation, requires libslirp */
/* #undef C_SLIRP */
/* Define to 1 to use opengl display output support */
//#define C_OPENGL 1

View File

@@ -117,6 +117,9 @@
/* Define to 1 to enable ethernet passthrough, requires libpcap */
#define C_PCAP 1
/* Define to 1 to enable userspace TCP/IP emulation, requires libslirp */
/* #undef C_SLIRP */
/* Define to 1 to use opengl display output support */
/*#define C_OPENGL 1*/