MSharq
242e8af3a7
fixed a bug
2018-10-29 15:44:53 +01:00
MSharq
2bc581d4f6
fixed indentation ether_unix
2018-10-28 19:42:04 +01:00
MSharq
cf406ec953
fixed indentation ether_unix
2018-10-28 19:40:08 +01:00
MSharq
0c622863cf
fixed a bug
2018-10-23 15:37:09 +02:00
MSharq
50c98de60f
a few indentation fixes
2018-10-20 15:07:38 +02:00
MSharq
e4332cc72a
added the printf statement for all Ethernet devices
2018-10-20 11:18:08 +02:00
MSharq
90b65715ae
added VDE functionality
2018-09-28 16:14:14 +02:00
David O'Shea
385b49ba8e
Avoid an all-zero Ethernet/MAC address when using TUN/TAP ( fixes #154 ).
...
Previously, when "ether tun" configuration was used on a Linux host,
packets were sent with Ethernet/MAC address 00:00:00:00:00:00. Under
CentOS 7 at least, this did not appear to cause any issues where the
tun interface on the host was configured with an IP address, but when
an attempt was made to bridge the tun interface, it was no longer
possible to establish IP communication between the emulated machine
and either the Linux host or a Windows NT Server 4 VM.
This fix causes an Ethernet/MAC address to be generated in the same
way when using TUN/TAP as is done for ethertap.
2017-12-28 22:49:01 +10:30
Charles Lehner
76911be266
Fix compilation error on OS X.
2012-10-30 09:34:10 -04:00
Charles Lehner
349fad4d2f
Add port redirection option for networking with slirp.
...
Port forwarding allows the emulator to host servers that can be
accessed from outside the virtual network.
The code for parsing the preference option "redir" is adapted from
qemu code. The rest was already implemented.
2012-10-30 01:32:38 -04:00
Christian Bauer
b4940ae29d
more cleanups (unused/uninitialized variables, forgotten free()s, etc.)
2012-09-08 12:33:39 +02:00
asvitkine
c6409b4ce5
|Description: important compiler warnings fixes
...
| This patch fix a compiler warning about the direct printing of strings
| using formatted printing functions without the use of a format string.
|Author: Giulio Paci <giuliopaci@gmail.com>
|Forwarded: no
|Last-Update: 2012-03-04
2012-04-01 15:05:55 +00:00
asvitkine
81ab1a3f6c
another warning fix
2012-03-01 04:27:42 +00:00
asvitkine
3d09f85dc9
fix some unused var/function warnings
2011-12-28 20:22:25 +00:00
gbeauche
c8cb4879a4
Happy New Year!
2008-01-01 09:40:36 +00:00
gbeauche
b899d55068
Don't raise SIGPIPE, let errno be set to EPIPE. i.e. this fixes slirp ethernet
...
mode with no listening port on the remote host.
2007-11-03 11:31:36 +00:00
gbeauche
896ada92dc
Try to improve slirp performance again (though passive mode is still slower)
2006-04-02 21:06:50 +00:00
gbeauche
b80e9651f5
fix cross-block initializer
2006-02-27 13:39:29 +00:00
gbeauche
a615a4ac24
Use the most portable POSIX-style non-blocking I/O (O_NONBLOCK) instead of
...
BSD-style through FIONBIO. It turns out Tru64 and probably IRIX don't support
the latter when fd is a pipe (slirp case).
2006-01-24 23:46:19 +00:00
gbeauche
f0f76cd7ad
Remove nigel's hack, I am confident the problem was MacOS X implementation of
...
poll() that was not a cancellation point, which I fixed (OSX/Intel 10.4.4)
2006-01-21 20:48:17 +00:00
gbeauche
ceb7488a77
poll() and select() are still not cancellation points in MacOS X 10.4.4...
2006-01-21 16:19:47 +00:00
nigel
5d09d2b6c4
Small hack for clean exits on Nigel's OS X port
2005-12-29 13:40:25 +00:00
gbeauche
9d7e5017d9
Factor out stuff for SheepShaver compatibility.
2005-07-03 08:21:32 +00:00
gbeauche
2bc79fd857
Enable Basilisk II to work even if slirp_init() failed. Disable ethernet
...
emulation in that case, don't exit(1).
2005-06-12 22:48:48 +00:00
gbeauche
a4caa8ab09
Handle all slirp input/output from a single thread, thus fixing occasional
...
hangs on slower systems (concurrent read/write in 68k mode). Reduce timeout
to 10 ms.
2005-05-21 17:48:21 +00:00
gbeauche
02714e46a8
Fix and factor out ether_exit(). Pitifully, MacOS X 10.2 does not make select()
...
a cancellation point when it is passed a NULL timeout. Workarounded in
receive_func() with a full inline of poll_fd() + pthread_testcancel().
2005-05-15 17:22:12 +00:00
gbeauche
77446db25d
fix poll() emulation
2005-05-14 17:33:57 +00:00
gbeauche
eff6830415
detect slirp at configure time, aka fix build when ether_dummy.cpp is used
2005-05-14 08:10:49 +00:00
gbeauche
63015fd6d3
Use a custom poll_fd() function implemented as select() on platforms that
...
don't support poll() natively, e.g. MacOS X and some older BSDs.
2005-05-13 17:43:38 +00:00
gbeauche
fdfcd3eb86
Some 64-bit fixes to bootp, icmp, udp (cu-seeme). However, it can happen
...
that on certain occasions, it doesn't work. Some timing problem?
2005-05-13 14:02:37 +00:00
gbeauche
20fcf38e30
Recognize Intel Compilers. Add user mode network stack with slirp from qemu.
...
Simply use "ether slirp" in the prefs file, no kernel module required. I
could perform up to 450 KB/sec on my DSL line.
2005-05-13 09:21:21 +00:00
gbeauche
143b18c752
Make ethernet really work on 64-bit platforms, especially x86-64
2005-03-19 17:43:03 +00:00
gbeauche
30632aed4f
Happy New Year!
2005-01-30 21:42:16 +00:00
gbeauche
1406b615c7
Make EtherInterrupt/packet[] "static" so that it is allocated in the .data
...
section, which is likely accessible under 32-bit address on 64-bit platforms
2004-12-18 18:10:40 +00:00
gbeauche
9445ccb5ad
typos
2004-05-12 11:46:34 +00:00
gbeauche
a8c8c1d4d9
Move and fix tun interface shutdown call
2004-05-09 16:32:12 +00:00
gbeauche
2ce9491e96
TUN/TAP support
2004-05-09 16:16:05 +00:00
cebix
9e7932abf0
Happy New Year! :)
2004-01-12 15:29:31 +00:00
cebix
7627f346ee
cleaned up pthread attributes [Brian Johnson]
2002-02-07 16:10:57 +00:00
cebix
628533940d
- documentation updates
...
- 2001 -> 2002
- version 0.9 -> 1.0
2002-01-15 14:58:43 +00:00
cebix
67eddf896a
- added IRIX patches from Brian Johnson
...
- the existence of socklen_t is now checked by the configure script
2001-09-02 13:50:05 +00:00
cebix
78c97c3f20
- outgoing packet source address is set in ether.cpp
...
- UDP tunnelling sends packets to Ethernet broadcast address as IP broadcasts
2001-07-13 18:49:29 +00:00
cebix
72c7f0db7a
- updated the TECH document
...
- EtherReset() clears the UDP protocol list
- audio_oss_esd.cpp: AudioExit() calls close_audio()
- ether_unix.cpp: uses map<> for protocol handlers
- updated audio_dummy.cpp and ether_dummy.cpp
2001-07-13 15:39:25 +00:00
cebix
6c35c2a9e8
- Implemented AppleTalk-over-UDP tunnelling, activated by setting "udptunnel"
...
to "true". This uses the BSD socket API, so it's fairly portable (currently
only imeplemented under Unix, though). This works by sending raw Ethernet
packets as UDP packets to a fixed port number ("udpport", default is 6066),
using IP broadcasts to simulate Ethernet broad- and multicasts. Currently
only tested with AppleTalk.
2001-07-12 19:48:28 +00:00
cebix
3b54f1f8de
- FreeBSD configure script cleanups [Michael Alyn Miller]
...
- ether_linux.cpp moved and renamed to ether_unix.cpp, now also works with
the tap driver under FreeBSD [Michael Alyn Miller]
- fpu_x86_asm.h: fixed problem in with newer GCC pre-processors
2001-03-29 14:20:55 +00:00