- make all packet mover classes report their log messages using the NE2K
class's prefix, NE2K. The real issue is that the ne2k class exists at configuration time, so it is possible to tell it how to respond to panics, errors, etc. The packet mover is created after configuration depending on the setting of bx_options.ne2k.Oethmod, so I cannot (with major hacks) affect its settings from the configuration interface. Several packet movers were already set up this way anyway.
This commit is contained in:
parent
3d8e5f8b61
commit
1cda50d9f2
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: eth.h,v 1.10 2002-09-01 21:22:43 bdenney Exp $
|
||||
// $Id: eth.h,v 1.11 2002-09-02 16:56:24 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -40,7 +40,7 @@ typedef void (*eth_rx_handler_t)(void *arg, const void *buf, unsigned len);
|
||||
// system, an NDIS driver in promisc mode on WinNT, or maybe
|
||||
// a simulated network that talks to another process.
|
||||
//
|
||||
class eth_pktmover_c : public logfunctions {
|
||||
class eth_pktmover_c {
|
||||
public:
|
||||
virtual void sendpkt(void *buf, unsigned io_len) = 0;
|
||||
virtual ~eth_pktmover_c (void) {}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: eth_fbsd.cc,v 1.19 2001-11-06 17:14:34 fries Exp $
|
||||
// $Id: eth_fbsd.cc,v 1.20 2002-09-02 16:56:24 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
#include "bochs.h"
|
||||
#ifdef ETH_FBSD
|
||||
#define LOG_THIS this->
|
||||
#define LOG_THIS bx_ne2k.
|
||||
|
||||
extern "C" {
|
||||
#include <fcntl.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: eth_linux.cc,v 1.6 2002-03-06 15:56:27 bdenney Exp $
|
||||
// $Id: eth_linux.cc,v 1.7 2002-09-02 16:56:24 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include "bochs.h"
|
||||
#ifdef ETH_LINUX
|
||||
#define LOG_THIS this->
|
||||
#define LOG_THIS bx_ne2k.
|
||||
|
||||
extern "C" {
|
||||
#include <errno.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user