ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/ether_unix.cpp
Revision 1.34 - (view) (annotate) - [select for diffs]
2012-04-01T15:05:55Z (12 years, 1 month ago) by asvitkine
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +1 -1 lines
Diff to previous 1.33
|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

Revision 1.33 - (view) (annotate) - [select for diffs]
2012-03-01T04:27:42Z (12 years, 2 months ago) by asvitkine
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32
another warning fix

Revision 1.32 - (view) (annotate) - [select for diffs]
2011-12-28T20:22:25Z (12 years, 4 months ago) by asvitkine
Branch: MAIN
Changes since 1.31: +0 -1 lines
Diff to previous 1.31
fix some unused var/function warnings

Revision 1.31 - (view) (annotate) - [select for diffs]
2008-01-01T09:40:33Z (16 years, 4 months ago) by gbeauche
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
Happy New Year!

Revision 1.30 - (view) (annotate) - [select for diffs]
2007-11-03T11:31:36Z (16 years, 6 months ago) by gbeauche
Branch: MAIN
Changes since 1.29: +11 -0 lines
Diff to previous 1.29
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.

Revision 1.29 - (view) (annotate) - [select for diffs]
2006-04-02T21:06:50Z (18 years, 1 month ago) by gbeauche
Branch: MAIN
CVS Tags: nigel-build-19
Changes since 1.28: +9 -3 lines
Diff to previous 1.28
Try to improve slirp performance again (though passive mode is still slower)

Revision 1.28 - (view) (annotate) - [select for diffs]
2006-02-27T13:39:29Z (18 years, 2 months ago) by gbeauche
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27
fix cross-block initializer

Revision 1.27 - (view) (annotate) - [select for diffs]
2006-01-24T23:46:19Z (18 years, 3 months ago) by gbeauche
Branch: MAIN
Changes since 1.26: +14 -1 lines
Diff to previous 1.26
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).

Revision 1.26 - (view) (annotate) - [select for diffs]
2006-01-21T20:48:17Z (18 years, 3 months ago) by gbeauche
Branch: MAIN
Changes since 1.25: +0 -5 lines
Diff to previous 1.25
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)

Revision 1.25 - (view) (annotate) - [select for diffs]
2006-01-21T16:19:47Z (18 years, 3 months ago) by gbeauche
Branch: MAIN
Changes since 1.24: +14 -1 lines
Diff to previous 1.24
poll() and select() are still not cancellation points in MacOS X 10.4.4...

Revision 1.24 - (view) (annotate) - [select for diffs]
2005-12-29T13:40:25Z (18 years, 4 months ago) by nigel
Branch: MAIN
CVS Tags: nigel-build-17
Changes since 1.23: +5 -0 lines
Diff to previous 1.23
Small hack for clean exits on Nigel's OS X port

Revision 1.23 - (view) (annotate) - [select for diffs]
2005-07-03T08:21:32Z (18 years, 10 months ago) by gbeauche
Branch: MAIN
Changes since 1.22: +216 -47 lines
Diff to previous 1.22
Factor out stuff for SheepShaver compatibility.

Revision 1.22 - (view) (annotate) - [select for diffs]
2005-06-12T22:48:48Z (18 years, 11 months ago) by gbeauche
Branch: MAIN
Changes since 1.21: +5 -1 lines
Diff to previous 1.21
Enable Basilisk II to work even if slirp_init() failed. Disable ethernet
emulation in that case, don't exit(1).

Revision 1.21 - (view) (annotate) - [select for diffs]
2005-05-21T17:48:21Z (18 years, 11 months ago) by gbeauche
Branch: MAIN
Changes since 1.20: +40 -2 lines
Diff to previous 1.20
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.

Revision 1.20 - (view) (annotate) - [select for diffs]
2005-05-15T17:22:12Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.19: +29 -26 lines
Diff to previous 1.19
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().

Revision 1.19 - (view) (annotate) - [select for diffs]
2005-05-14T17:33:57Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18
fix poll() emulation

Revision 1.18 - (view) (annotate) - [select for diffs]
2005-05-14T08:10:49Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
detect slirp at configure time, aka fix build when ether_dummy.cpp is used

Revision 1.17 - (view) (annotate) - [select for diffs]
2005-05-13T17:43:38Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.16: +24 -4 lines
Diff to previous 1.16
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.

Revision 1.16 - (view) (annotate) - [select for diffs]
2005-05-13T14:02:36Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.15: +2 -4 lines
Diff to previous 1.15
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?

Revision 1.15 - (view) (annotate) - [select for diffs]
2005-05-13T09:21:21Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.14: +145 -16 lines
Diff to previous 1.14
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.

Revision 1.14 - (view) (annotate) - [select for diffs]
2005-03-19T17:43:03Z (19 years, 1 month ago) by gbeauche
Branch: MAIN
Changes since 1.13: +10 -10 lines
Diff to previous 1.13
Make ethernet really work on 64-bit platforms, especially x86-64

Revision 1.13 - (view) (annotate) - [select for diffs]
2005-01-30T21:42:14Z (19 years, 3 months ago) by gbeauche
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12
Happy New Year!

Revision 1.12 - (view) (annotate) - [select for diffs]
2004-12-18T18:10:40Z (19 years, 4 months ago) by gbeauche
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11
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

Revision 1.11 - (view) (annotate) - [select for diffs]
2004-05-12T11:46:34Z (20 years ago) by gbeauche
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
typos

Revision 1.10 - (view) (annotate) - [select for diffs]
2004-05-09T16:32:12Z (20 years ago) by gbeauche
Branch: MAIN
Changes since 1.9: +11 -6 lines
Diff to previous 1.9
Move and fix tun interface shutdown call

Revision 1.9 - (view) (annotate) - [select for diffs]
2004-05-09T16:11:45Z (20 years ago) by gbeauche
Branch: MAIN
Changes since 1.8: +117 -13 lines
Diff to previous 1.8
TUN/TAP support

Revision 1.8 - (view) (annotate) - [select for diffs]
2004-01-12T15:29:25Z (20 years, 4 months ago) by cebix
Branch: MAIN
CVS Tags: nigel-build-15, nigel-build-16
Changes since 1.7: +1 -1 lines
Diff to previous 1.7
Happy New Year! :)

Revision 1.7 - (view) (annotate) - [select for diffs]
2002-02-07T16:10:55Z (22 years, 3 months ago) by cebix
Branch: MAIN
CVS Tags: nigel-build-12, nigel-build-13
Changes since 1.6: +1 -11 lines
Diff to previous 1.6
cleaned up pthread attributes [Brian Johnson]

Revision 1.6 - (view) (annotate) - [select for diffs]
2002-01-15T14:58:37Z (22 years, 3 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-15012002
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
- documentation updates
- 2001 -> 2002
- version 0.9 -> 1.0

Revision 1.5 - (view) (annotate) - [select for diffs]
2001-09-02T13:50:05Z (22 years, 8 months ago) by cebix
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4
- added IRIX patches from Brian Johnson
- the existence of socklen_t is now checked by the configure script

Revision 1.4 - (view) (annotate) - [select for diffs]
2001-07-13T18:49:29Z (22 years, 10 months ago) by cebix
Branch: MAIN
Changes since 1.3: +0 -4 lines
Diff to previous 1.3
- outgoing packet source address is set in ether.cpp
- UDP tunnelling sends packets to Ethernet broadcast address as IP broadcasts

Revision 1.3 - (view) (annotate) - [select for diffs]
2001-07-13T15:39:23Z (22 years, 10 months ago) by cebix
Branch: MAIN
Changes since 1.2: +23 -91 lines
Diff to previous 1.2
- 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

Revision 1.2 - (view) (annotate) - [select for diffs]
2001-07-12T19:48:27Z (22 years, 10 months ago) by cebix
Branch: MAIN
Changes since 1.1: +137 -79 lines
Diff to previous 1.1
- 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.

Revision 1.1 - (view) (annotate) - [select for diffs]
2001-03-29T14:20:53Z (23 years, 1 month ago) by cebix
Branch: MAIN
CVS Tags: release-0_9-1, snapshot-29052001
- 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

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a