1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-08 17:22:03 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
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
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
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
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
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
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
ff6747d034 Intermediate state.
Tested with ITS and ifmeth=pcap, tun, and tap+bridge.
2016-01-06 00:52:37 +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
f7761c466a Add ifmeth=string as parameter for NI20 and IMP. 2015-12-22 21:03:27 +01:00
Olaf Seibert
77aa001e3f Remove lots of now-unneeded code. 2015-12-22 18:06:27 +01:00
Olaf Seibert
89be604190 Add libpcap for receiving and sending ethernet frames.
The goal is to retire KLH10_NET_BPF, _PFLT, _DLPI and _LNX as much as possible.
However where ethernet addresses are manipulated, such operating system dependent methods still need to be used, since libpcap does not handle that.

Code for the other packet filters is still included but most likely does not work.
To use the new code, add -DKLH10_NET_PCAP to the Makefile(s).
2015-12-20 17:56:51 +01:00
Olaf Seibert
34559748e5 Remove SIOCGIFCONF in favour of getifaddrs(3) or pcap_findalldevs(3).
Use the result from those functions in preference to looking it up again.
Looking up of ethernet addresses remains unportable.
2015-12-18 14:06:28 +01:00
Olaf Seibert
639a0cbe4e Eliminate essentially unused fields
ife_pinet, ife_plink and ife_pother.
2015-12-15 20:33:43 +01:00
Olaf Seibert
13ec237e67 Merge branch 'master' into mmcm-tuntap
Merged these small conflicts:
	src/dpni20.c
	src/osdnet.c
	src/osdnet.h
Compile-tested on NetBSD and Linux, but not run-tested.
2015-07-22 00:02:26 +02:00
Olaf Seibert
0fdbb8f017 Patch applied. No conflicts.
klh10$ patch -p1 <tuntap.patch
Hmm...  Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/bld/lnx86/00build       2005-02-22 02:47:02.000000000
|-0500
|--- klh10-2.0i/bld/lnx86/00build       2005-09-10 01:05:48.000000000
|-0400
--------------------------
Patching file bld/lnx86/00build using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/dpimp.c     2003-02-23 13:07:35.000000000 -0500
|--- klh10-2.0i/src/dpimp.c     2005-09-11 10:14:55.000000000 -0400
--------------------------
Patching file src/dpimp.c using Plan A...
Hunk #1 succeeded at 279.
Hunk #2 succeeded at 501.
Hunk #3 succeeded at 563.
Hunk #4 succeeded at 573.
Hunk #5 succeeded at 637.
Hunk #6 succeeded at 695.
Hunk #7 succeeded at 709.
Hunk #8 succeeded at 1755.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/dpimp.h     2001-11-19 05:45:49.000000000 -0500
|--- klh10-2.0i/src/dpimp.h     2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/dpimp.h using Plan A...
Hunk #1 succeeded at 106.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/dpni20.c    2003-02-23 13:07:50.000000000 -0500
|--- klh10-2.0i/src/dpni20.c    2005-09-09 20:50:47.000000000 -0400
--------------------------
Patching file src/dpni20.c using Plan A...
Hunk #1 succeeded at 177.
Hunk #2 succeeded at 388.
Hunk #3 succeeded at 456.
Hunk #4 succeeded at 491.
Hunk #5 succeeded at 506.
Hunk #6 succeeded at 1463.
Hunk #7 succeeded at 1531.
Hunk #8 succeeded at 1543.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/dpni20.h    2001-11-10 16:29:01.000000000 -0500
|--- klh10-2.0i/src/dpni20.h    2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/dpni20.h using Plan A...
Hunk #1 succeeded at 52.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -r -c --exclude='*.orig' --unidirectional-new-file
|klh10-2.0h/src/dvlhdh.c klh10-2.0i/src/dvlhdh.c
|*** klh10-2.0h/src/dvlhdh.c    2001-11-19 05:47:54.000000000 -0500
|--- klh10-2.0i/src/dvlhdh.c    2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/dvlhdh.c using Plan A...
Hunk #1 succeeded at 103.
Hunk #2 succeeded at 172.
Hunk #3 succeeded at 303.
Hunk #4 succeeded at 1066.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/dvni20.c    2001-11-10 16:29:03.000000000 -0500
|--- klh10-2.0i/src/dvni20.c    2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/dvni20.c using Plan A...
Hunk #1 succeeded at 157.
Hunk #2 succeeded at 295.
Hunk #3 succeeded at 393.
Hunk #4 succeeded at 720.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/Makefile.mk 2005-02-22 02:16:14.000000000 -0500
|--- klh10-2.0i/src/Makefile.mk 2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/Makefile.mk using Plan A...
Hunk #1 succeeded at 302.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/osdnet.c    2005-04-28 18:01:04.000000000 -0400
|--- klh10-2.0i/src/osdnet.c    2005-09-11 11:12:41.000000000 -0400
--------------------------
Patching file src/osdnet.c using Plan A...
Hunk #1 succeeded at 812.
Hunk #2 succeeded at 1131.
Hunk #3 succeeded at 1162.
Hunk #4 succeeded at 1225.
Hunk #5 succeeded at 1616.
Hunk #6 succeeded at 1633.
Hunk #7 succeeded at 1691.
Hunk #8 succeeded at 1721.
Hunk #9 succeeded at 1817.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** klh10-2.0h/src/osdnet.h    2001-11-19 05:34:01.000000000 -0500
|--- klh10-2.0i/src/osdnet.h    2005-08-16 20:05:22.000000000 -0400
--------------------------
Patching file src/osdnet.h using Plan A...
Hunk #1 succeeded at 69.
Hunk #2 succeeded at 146.
Hunk #3 succeeded at 382.
done
klh10$
2015-07-21 23:37:45 +02:00
Olaf Seibert
0a03946833 Add tap/bridge support,
and some other small build support things for my environment.
2015-04-27 23:33:58 +02:00
Olaf Seibert
742b43d025 Initial import of klh10-2.0a.tgz
dated Nov 19  2001.
Source: http://klh10.trailing-edge.com/
2015-04-27 22:54:12 +02:00