From 4a35f708503457e5cced6e6df603e7a401ef6b45 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Thu, 18 Apr 2002 00:59:58 +0000 Subject: [PATCH] - add tuntap interface --- bochs/iodev/eth.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bochs/iodev/eth.cc b/bochs/iodev/eth.cc index ca0f98cbf..f7a393d72 100644 --- a/bochs/iodev/eth.cc +++ b/bochs/iodev/eth.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: eth.cc,v 1.11 2002-03-09 04:18:08 bdenney Exp $ +// $Id: eth.cc,v 1.12 2002-04-18 00:59:58 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -60,6 +60,9 @@ extern class bx_win32_locator_c bx_win32_match; #if HAVE_ETHERTAP extern class bx_tap_locator_c bx_tap_match; #endif +#if HAVE_TUNTAP +extern class bx_tuntap_locator_c bx_tuntap_match; +#endif #ifdef ETH_TEST extern bx_test_match; #endif @@ -108,6 +111,12 @@ eth_locator_c::create(const char *type, const char *netif, ptr = (eth_locator_c *) &bx_linux_match; } #endif +#if HAVE_TUNTAP + { + if (!strcmp(type, "tuntap")) + ptr = (eth_locator_c *) &bx_tuntap_match; + } +#endif #if HAVE_ETHERTAP { if (!strcmp(type, "tap"))