1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-03-07 19:30:46 +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
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
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
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
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
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
58b59dbaa1 Overlay panda-dist/klh10-2.0h
by the late MRC, Mark Crispin.
Source: probably the former http://panda.com/tops-20/ .
panda-dist.tar.gz dated Mar 30  2007.
2015-04-27 23:07:21 +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