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

188 Commits

Author SHA1 Message Date
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
6bc3ecd739 Add .gitignore file. 2015-12-18 14:14:36 +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
79658f9bf8 Compiler suggested cleanups (mostly declarations). 2015-12-16 00:52:52 +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
0f3d110a2d dvtm03.patch Avoid incorrect "offline" message when mounting tape on TOPS-20 the first time.
from http://home.comcast.net/~mmcm/klh10/dvtm03.patch
2015-07-28 23:46:27 +02:00
Olaf Seibert
bb543c2994 Fix confusing typo in ini file
(if one wants to keep track of which installations are configured for
which IP addresses)
2015-07-28 23:42:32 +02:00
Olaf Seibert
37cbb5150b Merge branch 'mmcm-tuntap' because it didn't break on NetBSD. 2015-07-27 23:06:42 +02:00
Olaf Seibert
60a4cd1c9a Just a newline on the quit [confirm] prompt should not quit.
That is just too easy to type by accident. Only accept y, Y and EOF
(EOF for when there is an error).
2015-07-22 01:22:28 +02:00
Olaf Seibert
c9f494a3df EOF on the prompt should not loop infinitely 2015-07-22 01:20:34 +02:00
Olaf Seibert
75c47c9842 Rename the build executable for ITS to kn10-ks-its.
That should hopefully make it easier to install all versions in parallel
in the same directory, with less duplication.
2015-07-22 00:31:27 +02:00
Olaf Seibert
6cb2d40e2b Remove patch file. 2015-07-22 00:07:32 +02:00
Olaf Seibert
bdd48c5ea5 Move -DKLH10_NET_TUN=1 from 00build into Makefiles. 2015-07-22 00:06:14 +02: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
fcd51e4ce0 Add MMcM's Linux tun/tap patch file
via http://victor.se/bjorn/its/
from http://home.comcast.net/~mmcm/klh10/tuntap.patch
2015-07-21 23:33:58 +02:00
Olaf Seibert
23378e1e9b Slightly update build instructions. 2015-07-19 16:18:35 +02:00
Olaf Seibert
06caf9770d Add a Linux AXP target (also usable for amd64 aka x86_64 hosts)
so that the USEINT memory model can be used, rather than the USEHWD model
that gets used for 32-bit i386.
2015-07-19 15:56:09 +02:00
Olaf Seibert
b03241657d Add two helper scripts to put xterms in a nice mood for ITS. 2015-07-18 03:14:59 +02:00
Olaf Seibert
6c0cbe0f91 Improve comment. 2015-07-18 02:40:46 +02:00
Olaf Seibert
800d799b34 Fix usage printing. 2015-07-18 02:21:37 +02:00
Olaf Seibert
dafe65141a Make sure printf() arguments are of the right size.
Apparently they have a different size on Linux.
2015-07-18 02:21:14 +02:00
Olaf Seibert
4a29858bbf Remove extra arguments to printf().
These are presumably block numbers but they get printed earlier anyway.
2015-07-18 02:20:29 +02:00
Olaf Seibert
5365b5845a Conditionalize a debug message that doesn't compile on Linux. 2015-07-18 02:18:43 +02:00
Olaf Seibert
c948e8efff <asm/io.h> moved to <sys/io.h>. 2015-07-18 02:18:05 +02:00
Olaf Seibert
b9fcfeab37 Make build script more useful
by making it guess the build type from the directory you're in.
Alternatively you can override it on the command line.
2015-07-18 02:16:26 +02:00
Olaf Seibert
52e89809fc Add handy building script. 2015-05-04 01:08:45 +02:00
Olaf Seibert
d59d61451c Rename FILE *logf and static void log(char *fmt, ...)
because gcc complains about them:

vdkfmt.c:133:7: warning: built-in function 'logf' declared as non-function
tapedd.c:246:7: warning: built-in function 'logf' declared as non-function
enaddr.c:174:13: warning: conflicting types for built-in function 'log'

even though it probably should not. <math.h> has not been included as
far as I can see.
2015-05-04 01:07:26 +02:00
Olaf Seibert
9800c5b768 Fix some undeclared functions
by adding the proper #includes.
gcc warned with "warning: incompatible implicit declaration of built-in
function 'foo'".
2015-05-04 00:47:36 +02:00
Olaf Seibert
aad94caa2f Fix undefined int swstatus
when building enaddr.
2015-05-04 00:38:33 +02:00
Olaf Seibert
425337375c Remove src/*.old files. 2015-04-27 23:37:11 +02:00
Olaf Seibert
79e1a9e898 Add a build note for strange error
"[DTE: Bad to-10 BP 442200,,733000][dte_10xfrbeg: 10cnt left:
4086][dte_10xfrbeg: out of data, no I bit]"
2015-04-27 23:34:34 +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
f5ed23867f Fix bad code generation
multiple modifications of the same variable between sequence
points leads to undefined behaviour.
2015-04-27 23:20:16 +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.
klh10-2.0h
2015-04-27 23:07:21 +02:00
Olaf Seibert
00b977cfde Add klh10-2.0a-aux.tgz. klh10-2.0a 2015-04-27 22:59:12 +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