More preprocessor controls.

This commit is contained in:
Gregory Alexander 2001-07-05 23:55:22 +00:00
parent 6052b0054b
commit c9d18333c0
4 changed files with 16 additions and 2 deletions

View File

@ -72,6 +72,9 @@ private:
// Define the known pktmover modules
#define ETH_NULL 1
#ifdef BX_USE_ETH_ARPBACK
# define ETH_ARPBACK 1
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#define ETH_FBSD 1
#endif

View File

@ -28,6 +28,9 @@
// rfc0903: rarp
#include "bochs.h"
#ifdef ETH_ARPBACK
#include "crc32.h"
#include "eth_packetmaker.h"
#define LOG_THIS bx_ne2k.
@ -198,3 +201,5 @@ void bx_arpback_pktmover_c::rx_timer (void)
}
}
#endif

View File

@ -1,6 +1,9 @@
#include "eth_packetmaker.h"
#include "bochs.h"
#ifdef ETH_ARPBACK
#include "eth_packetmaker.h"
Boolean sendable(const eth_packet& outpacket) {
//FINISH ME!
@ -169,5 +172,5 @@ eth_ARPmaker::sendpacket(const eth_packet& outpacket) {
}
}
#endif

View File

@ -4,6 +4,8 @@
#include "../config.h"
#ifdef ETH_ARPBACK
#define PACKET_BUF_SIZE 2048
static const Bit8u internal_mac[]={0xB0, 0xC4, 0x20, 0x20, 0x00, 0x00, 0x00};
static const Bit8u external_mac[]={0xB0, 0xC4, 0x20, 0x20, 0x00, 0x00, 0x00};
@ -124,5 +126,6 @@ private:
};
#endif // ETH_ARPBACK
#endif // _ETH_PACKETMAKER_H_