1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-11 23:52:54 +00:00

89 Commits

Author SHA1 Message Date
Olaf Seibert
03f86bdde7 Small news update. 2016-02-17 23:36:07 +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
7d3bc2cfba Add carefully crafted Makefile for recursing into subdirectories...
that is compatile with both real Make and GNU Make.
2016-02-12 20:56:42 +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
e35327965a Smal docc update. 2016-01-25 22:44:45 +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
3aafe75ece Change --disable-vde into --without-vde and --with-vde=PATH
so that the option can also be used to specify the location of the header
file and library.
2016-01-24 16:30:58 +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
06d8ca1a56 Get CONFFLAGS_AUX from old build files, and avoid double inclusion of it. 2016-01-23 23:25:31 +01:00
Olaf Seibert
ebcfab3c8e Move old build directories to a location that indicates it's no longer used. 2016-01-23 23:20:29 +01:00
Olaf Seibert
74e63d2b60 Eliminate recursive Make invocation
by moving the model-specific CONFFLAGS into the model-specific
makefile fragments.
2016-01-23 23:19:19 +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
edd7142ea8 Mention VDE settings. Pass LDFRLAGS through. 2016-01-22 02:13:46 +01:00
Olaf Seibert
e8774af207 A beginning of revised instructions. 2016-01-21 23:50:47 +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
Olaf Seibert
01dffdb412 Small cleanups. 2016-01-07 20:38:22 +01:00
Olaf Seibert
41d8c908b9 Add some IMP usage hints in config file. 2016-01-06 00:53:44 +01:00
Olaf Seibert
ff6747d034 Intermediate state.
Tested with ITS and ifmeth=pcap, tun, and tap+bridge.
2016-01-06 00:52:37 +01:00
Olaf Seibert
6f1f3b4758 Add some NI20 usage hints in config file. 2016-01-05 22:53:27 +01:00
Olaf Seibert
d23813a1dd Intermediate state.
Tested with NetBSD host and TOPS-20 guest only: ifmeth=pcap and ifmeth=tap+bridge work.
Not tested wit ITS guest or Linux host.
Not cleaned up.
2016-01-03 17:07:58 +01:00
Olaf Seibert
3586d96356 Small changes in helper files. 2016-01-03 17:02:46 +01:00
Olaf Seibert
f6eed67799 Use ea_set(). 2015-12-30 17:29:10 +01:00
Olaf Seibert
aa498e3e1f Actually copy name. 2015-12-30 17:28:49 +01:00
Olaf Seibert
9aee94ee3d Avoid crash if an interface has no addresses. 2015-12-22 22:35:07 +01:00
Olaf Seibert
f7761c466a Add ifmeth=string as parameter for NI20 and IMP. 2015-12-22 21:03:27 +01:00