- networking modules eth_tap and eth_tuntap fixed for OpenBSD

- removed unnecessary spaces
This commit is contained in:
Volker Ruppert 2006-11-23 17:21:59 +00:00
parent 79afc6dd01
commit 4314b6a911
2 changed files with 20 additions and 19 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: eth_tap.cc,v 1.27 2005-12-10 18:37:35 vruppert Exp $
// $Id: eth_tap.cc,v 1.28 2006-11-23 17:21:58 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -275,7 +275,8 @@ bx_tap_pktmover_c::sendpkt(void *buf, unsigned io_len)
Bit8u txbuf[BX_PACKET_BUFSIZE];
txbuf[0] = 0;
txbuf[1] = 0;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) // Should be fixed for other *BSD
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
defined(__APPLE__) || defined(__OpenBSD__) // Should be fixed for other *BSD
memcpy(txbuf, buf, io_len);
unsigned int size = write(fd, txbuf, io_len);
if (size != io_len) {

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: eth_tuntap.cc,v 1.25 2006-08-05 15:53:52 vruppert Exp $
// $Id: eth_tuntap.cc,v 1.26 2006-11-23 17:21:59 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -62,7 +62,7 @@
#include <linux/if_tun.h>
#else
#include <net/if.h>
#ifndef __APPLE__
#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
#include <net/if_tap.h>
#endif
#endif