- add tuntap interface
This commit is contained in:
parent
2f69a74616
commit
4a35f70850
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user