1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-05 07:55:23 +00:00
Commit Graph

87 Commits

Author SHA1 Message Date
Olaf Seibert
b60c1e88a2 And in the other file. Should work for n < 100. 2017-05-14 13:10:33 +02:00
Olaf Seibert
22e336c700 Should fix Issue #17. 2017-05-14 12:35:46 +02:00
Lars Brinkhoff
78fa98ac15 Add ch11 files and apply patch from http://victor.se/bjorn/its/ch11.tar.gz 2017-02-02 21:02:56 +01:00
Olaf Seibert
1cfe638d1c Merge branch 'master' of github.com:PDP-10/klh10 2017-01-29 16:39:24 +01:00
Olaf Seibert
c3484ed92b Merge changes from Rich Alderson. 2017-01-27 22:12:43 +01:00
Olaf Seibert
2d96b28ec0 Unify duplicate code. 2017-01-23 23:45:58 +01:00
Olaf Seibert
a869dcdf6d Terminology clarification: "emulated host" is nowadays "guest"...
and it is running on the "host". The used term "emulated host" (as opposed to "hardware host") is somewhat confusing.
2017-01-23 23:42:58 +01:00
Olaf Seibert
f238169d61 Rewrite for clarity with fewer casts. 2017-01-23 23:42:58 +01:00
Olaf Seibert
d677598f66 Leave addresses on pre-configured TAP devices alone. 2017-01-23 23:42:58 +01:00
Olaf Seibert
372c24de14 Cleanup of unnecessarily copied locals. 2017-01-23 23:42:58 +01:00
Olaf Seibert
0abee1c6eb Extra safety return. 2017-01-23 20:37:38 +01:00
Olaf Seibert
09ee2e73c8 This may well have been the cause of the shutdown problems of dpni20. 2017-01-21 23:29:15 +01:00
Olaf Seibert
2945263432 For the ni20, add subcommands to the "dev ni0 ..." command.
This may be useful for debugging, given the subcommands as currently made available.
The main loop command line parser is used to parse the subcommands. I don't think this is working for interactive subcommands yet.
2017-01-21 23:15:32 +01:00
Lars Brinkhoff
80eee8f112 Add really-quit command which quits without questions asked. 2016-12-22 22:34:16 +01:00
Olaf Seibert
ff6ce33f28 #define IPC_[RW] if missing. 2016-12-17 14:14:13 +01:00
Olaf Seibert
d218e5b03f Replace 0600 in shmget(2) call with symbolic constants.
Inspired by Rich Alderson's MacOS 10.6.8 changes.
He used IPC_CREAT+IPC_PRIVATE+IPC_R+IPC_W.
However, IPC_PRIVATE is a special value for the key argument, not shmflg.
Furthermore, adding IPC_CREAT to the flags when the key is IPC_PRIVATE
seems unnecessary but should not harm.

See http://pubs.opengroup.org/onlinepubs/9699919799/functions/shmget.html
for the "IEEE Std 1003.1-2008, 2016 Edition" version of shmget(2).
2016-11-27 17:10:00 +01:00
Lars Brinkhoff
d4e70d8200 Make it possible to pass configuration flags from the environment.
Take user-defined configuration flags from environment variable CONFFLAGS_USR.
2016-11-10 12:58:05 +01:00
Olaf Seibert
7108b2c75c Make tape work when not using a device process, i.e. -DKLH10_DEV_DPTM03=0. 2016-11-09 23:49:00 +01:00
Olaf Seibert
4e6ef5edb1 Forgot to add kn10cpu.h... 2016-02-24 17:07:26 +01:00
Olaf Seibert
2b060584b2 Move more old building infrastructure to "old/". 2016-02-17 20:47:51 +01:00
Olaf Seibert
18f1e34ea6 Move some extern declarations to header files. 2016-02-17 20:44:40 +01:00
Olaf Seibert
bf51af5874 Make a string available that indicates the supported networking options.
dpni20 and dpimp print it on error or when -debug is given.
enaddr prints it with -v, but this does not reflect TUN since it doesn't use it.
2016-02-17 20:13:15 +01:00
Olaf Seibert
7fedb55643 Fix a warning: control may reach end of non-void function 2016-02-15 17:41:21 +01:00
Olaf Seibert
056e6bfadc Remove unneeded code left over from earlier attempt. 2016-02-12 20:28:36 +01:00
Olaf Seibert
4075a69ccb Try harder to get printf formats right for some typedef'ed types.
For older versions of clang that's still not enough and they keep complaining,
but for newer ones it's ok.
2016-01-26 20:44:13 +01:00
Olaf Seibert
563368b75b Implement QUIT messages to IMP and NI20
so that they can do cleanup at the end: mostly important for tun, tap,
and bridge that may have been created.
2016-01-26 20:41:14 +01:00
Olaf Seibert
1a512d7628 More HAVE_MLOCKALL. 2016-01-25 23:08:02 +01:00
Olaf Seibert
162cf21aca Changed the check for superuser from error to warning.
The check is done so early that we can't reasonably know yet if we really
need to be root. For VDE, root is unneeded, but for the other interface
methods it is.
2016-01-25 22:43:45 +01:00
Olaf Seibert
3830fca3f9 Ether address and multicast setting for MacOS X. 2016-01-25 22:12:00 +01:00
Olaf Seibert
223c7b4698 Start using CPPFLAGS and use it for the -I options.
This avoids sloppy messages from the configure script about the preprocessor.
2016-01-25 01:37:23 +01:00
Olaf Seibert
105ec2c0a8 Use configure for mlockall(2).
The set of OSes for was inconsistent and wrong (NetBSD has it too).
2016-01-25 01:14:49 +01:00
Olaf Seibert
7fc2cda719 Be a bit more frugal with sockets. 2016-01-24 16:26:54 +01:00
Olaf Seibert
1c0805eedb Fix building the secondary programs. 2016-01-24 13:31:03 +01:00
Olaf Seibert
8aff8084ff Make the setting of the ethernet address work better for virtual interfaces
and also implement obscure NetBSD variant.
2016-01-24 13:07:30 +01:00
Olaf Seibert
8cfece4ef4 Offer configure option to disable VDE. 2016-01-24 11:45:32 +01:00
Olaf Seibert
9e06958f2e Express CENV_SYSF_TERMIOS as HAVE_TERMIOS_H && HAVE_TCSETATTR. 2016-01-22 18:30:43 +01:00
Olaf Seibert
03be37db7c Add initial VDE (libvde2) support.
I have compile-tested this on a virtual FreeBSD 10.2 but not run it.
2016-01-21 23:50:27 +01:00
Olaf Seibert
d0f53b8cc9 Replace CENV_SYSF_SIGSET with HAVE_SIGACTION 2016-01-21 21:19:46 +01:00
Olaf Seibert
e3e86227de Replace CENV_SYSF_BSDTIMEVAL with HAVE_SETITIMER and HAVE_GETTIMEOFDAY 2016-01-21 19:52:40 +01:00
Olaf Seibert
14ba9636cd Eliminate CENV_SYSF_NANOSLEEP and use HAVE_NANOSLEEP instead 2016-01-21 00:42:41 +01:00
Olaf Seibert
2b48b63e74 Eliminate CENV_SYS_STRERROR, use configure checks instead 2016-01-21 00:02:22 +01:00
Olaf Seibert
8d683650f7 Let configure check for Large File Support 2016-01-20 23:10:42 +01:00
Olaf Seibert
0ac7cd4cdb Attempt a replacement for pcap_set_immediate_mode() if missing. 2016-01-20 20:17:31 +01:00
Olaf Seibert
334719e73a Make it build on MacOS X.
I only compile-tested it, I didn't run it.
The main effect is to make hardware tape support ~optional, since OSX
has no <sys/mtio.h>.
2016-01-20 17:51:31 +01:00
Olaf Seibert
2ac5184ff2 Add a configure script and remove a tangle of frail #if conditions
This only uses autoconf, not automake or libtool or intltool or whatever.
This also allows easy building of different emulators in different build directories.

I have tested TOPS-20 with pcap|tap+bridge, ITS with pcap|tun|tap+bridge, both on NetBSD and Linux
and hopefully everything still works after the fine-tuning.
2016-01-19 23:41:49 +01:00
Olaf Seibert
9312579251 clang-suggested changes, mostly wrt -Wparentheses
warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
2016-01-11 00:24:46 +01:00
Olaf Seibert
1105dd0c69 Build on FreeBSD 10.2.
Not tested further.
2016-01-10 23:40:37 +01:00
Olaf Seibert
447155ef02 Remove bridge creating code for Linux, since it's useless.
If $KLH_NET_BRIDGE is set, does bridge it to that bridge.
Use $KLH_NET_DEFAULT_IF as default interface, if given.
2016-01-10 22:54:03 +01:00
Olaf Seibert
e23aaab39a Add a few dependencies. 2016-01-08 01:12:33 +01:00
Olaf Seibert
10023a5e18 Added Linux tap+bridge, plus other cleanups.
However it turns out that Linux bridges are useless, since they freeze
the network when they are actually used (see http://www.microhowto.info/troubleshooting/troubleshooting_ethernet_bridging_on_linux.html#idp86992 )
"The machine appears to freeze
As noted above, adding an interface to a bridge causes it to
stop acting as an Internet Protocol endpoint. This could result
in the machine appearing to freeze.

"The underlying issue is that when an interface is attached to
a bridge then any network addresses need to be bound to the
bridge, not to the interface."

That makes them useless to configure temporarily without disturbing
the rest of the network traffic.
2016-01-08 01:11:43 +01:00