mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
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:
@@ -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
|
||||
|
||||
|
@@ -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*/
|
||||
|
||||
|
Reference in New Issue
Block a user