Olaf Seibert
ff749f6d2e
Fix some more -Wall warnings
...
(but there are many many more to go...)
2020-03-28 16:33:42 +01:00
Olaf Seibert
f5e506cc10
Copy the right size into the destination.
...
Fixes !45 .
2020-03-28 16:16:57 +01:00
Olaf Seibert
6a8a710ecf
Change configure to control the compilation of the Panda lights.
...
This needs to check for libusb-1.0. Since this shouldn't be linked to
the auxiliary programs, add another Makefile variable to record it in:
CPULIBS.
Stub out calls to outb() if it is unavailable, so that it can at least
use libusb in that case.
2018-09-15 00:04:31 +02:00
Lars Brinkhoff
129e3d0f16
Use USB Panda Display.
...
Build with -DKLH10_DEV_LITES=1. Use the KLH10 command "lights usb" to
enable this feature.
2018-09-14 06:40:59 +02:00
Olaf Seibert
c8bdff6d49
Clear file pointer when file is closed.
2018-09-07 18:44:32 +02:00
Adam Sampson
591437d302
Add missing fclose after tape format detection.
...
Without this, doing something like:
devmount mta0 /tmp/foo
devunmount mta0
(i.e. without specifying fmt=bar to the devmount) will leak a FILE * and
file descriptor.
2018-05-12 12:35:34 +01:00
Björn Victor
678db7c80b
CH11 over Ether ( #33 )
...
Working chaos-over-ether implementation (in addition to Chaos-over-UDP).
Also rename dpchudp => dpchaos, both in code, files and the device process, since it no longer only supports Chaos-over-UDP, but is more generic.
Update doc for CH11.
2018-04-15 21:33:10 +02:00
John Forecast
dad5719aeb
cenv.h must be the first include so _FILE_OFFSET_BITS can affect system include files.
2018-04-09 11:23:40 -04:00
Olaf Seibert
ba556fbd9d
Fix incorrect identification to VDE (should be klh10 of course).
2017-12-14 20:37:08 +01:00
Lars Brinkhoff
2242d4f226
Remove limitation on 12 devices.
...
Falls back to the default, which is 20.
2017-12-14 20:24:33 +01:00
Olaf Seibert
9d13c2b5e5
Remove unneeded length check for interface name.
...
Since the length is checked in all other relevant places, the check here
is not needed, and was too strict for the "vde" case.
2017-12-10 17:37:00 +01:00
Olaf Seibert
e904b0b49e
Increase the size for a device name
...
For the benefit of VDE.
For other interfacing methods, check that the name is at most IFNAMSIZ,
which should always have been checked, because of unexpected truncation.
2017-11-29 21:46:03 +01:00
Olaf Seibert
9d6add677a
Add proper dependency on dpni20.h.
2017-11-29 21:10:07 +01:00
Lars Brinkhoff
e0a65234a6
Make console input more solid.
2017-10-26 22:38:58 +09:00
Björn Victor
9d12eee32b
Make dynamic chudp work again.
...
Supply size of socket to recvfrom call. This makes dynamic chudp work again. Also some minor modernisation.
2017-08-28 12:36:40 +02:00
Rhialto The M
3f3945f67b
Merge pull request #22 from PDP-10/massbus-serial-numbers
...
Massbus serial numbers
2017-05-14 19:12:56 +02:00
Olaf Seibert
4690de5b02
Fix call to memset (discovered due to compiler warning from Travis)
2017-05-14 13:39:48 +02:00
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