2
0

556 Commits

Author SHA1 Message Date
cab0d7a805 update ppp package 2026-03-09 11:12:40 +00:00
41375681dd hash for firmwre-utils 2026-03-09 11:12:27 +00:00
dd3629ae8e update firmware-utils for compatibility with newer cmake 2026-03-08 01:08:50 +00:00
f15ffaeac2 kludge: force gcc 13 for kernel builds
we can get rid of this when we upgrade devices from kernel 5.x to 6.x
(which clearly we also need to do)
2026-03-07 22:27:12 +00:00
9f3c8f7cbd treewide: nixfmt and deadnix 2025-11-11 21:49:45 +00:00
d538e8f6cf add options for setting sysctl parameters at boot time 2025-11-11 21:44:37 +00:00
46dcf71e16 fix swconfig build
missing ctype.h
2025-11-04 18:53:38 +00:00
ead6cb918a log backfill: synthesize timestamps when in 1970s
if the log message timestamp is in 1970, treat it as if
the epoch were the system boot time
2025-10-28 23:29:20 +00:00
f4b87430ea tai64: write timestamp 2025-10-28 23:28:33 +00:00
c3d6ad7ad4 unix time to TAI conversion 2025-10-28 21:05:55 +00:00
8049714cdb rename anoia.tai64.to-utc as to-unix
it's a far more accurate name for somethingthat return non-leap
seconds since 1-1-1970
2025-10-28 20:17:35 +00:00
0f90f3f46d lualinux.open needs three args 2025-10-27 21:18:52 +00:00
481715f906 remove debug output 2025-10-27 21:16:49 +00:00
26e1608fa7 align log shipping start/stop messages between producer and consumer
also there's no need to make it configurable, so get rid of that
2025-10-26 20:41:19 +00:00
ad9bba4f93 logtap: add WIP backfill command 2025-10-26 20:34:52 +00:00
6f559e3700 add fennelc, a script to do what writeFennel does
it's a bit simpler because no need to do quite as much string surgery
to compute package.{c,}path

also it can be used in Makefiles
2025-10-26 20:32:52 +00:00
6478c56ed1 log.shipping.command is now a command not a string 2025-10-25 17:34:50 +01:00
1b14161a0e modern openssl needs rsa key >= 2048
per
https://docs.openssl.org/3.3/man3/SSL_CTX_set_security_level/#default-callback-behaviour
the default "security level" in openssl 3.3 is 2
2025-10-20 23:45:53 +01:00
72acb2e711 Merge remote-tracking branch 'newedge/fix-gl-ar750' 2025-10-19 14:22:49 +01:00
87c45dec67 switch certifix-client to luahttp 2025-10-19 14:11:51 +01:00
d1cd13d5dc CSR version should be 1 not 3 2025-10-19 14:11:51 +01:00
33fdf0d86d add missing prototype to fetch-freebsd lua glue to make it build 2025-10-19 14:10:13 +01:00
kurogeek
3f1f7c08d4 Missing repo https://github.com/dfskoll/rp-pppoe is fixed 2025-10-14 14:17:11 +07:00
77c6552e18 victorialogsend: cope with blank mesage field 2025-10-10 22:43:50 +01:00
a6442c872f change log shipper interface
* it's now a command not a service
* shipper is expected to open() the fifo passed as $LOG_FIFO instead of
  getting logs on stdin

logtap determines that remote logs are getting sent when there's a
reader on the fifo it's writing, but opening the fifo as stdin of
s6-tcpclient is too early as it hasn't even connected to the remote
log server at that time
2025-10-09 21:38:49 +01:00
b49beb2c86 make logtap notice sooner when the shipper dies
fifo(7) says

       Under Linux, opening a FIFO for read and write will succeed both
       in blocking and nonblocking mode.  POSIX leaves this behavior
       undefined.  This can be used to open a FIFO for writing while
       there are no readers available.

       When a process tries to write to a FIFO that is not opened for
       read on the other side, the process is sent a SIGPIPE signal.

but ... that doesn't match what I saw, which was that it carried on
writing until the buffer filled and then it blocked or returned -1
(depending on O_NONBLOCK)

Switch to opening O_WRONLY | O_NONBLOCK and retrying periodically
if it fails
2025-10-09 21:16:54 +01:00
29fbb5461d send log timestamp parse errors to victorialogs 2025-10-08 20:10:11 +01:00
70786712b3 make victorialogsend ucspi-compatible 2025-10-08 20:10:11 +01:00
be26df4e95 don't send 9 digits of nanosecond to victorialogs
It fails to parse. I havent investigated how many digits it will
parse, but let's try 3
2025-10-08 20:10:11 +01:00
71aed767f2 switch logtap to use fifo unstead of af_unix 2025-10-08 20:10:11 +01:00
af6e41db7a logshippers: add victorialogsend script
it's only very lightly tested but it seems to work.  the _stream
may be quite wrong, or perhaps that's a local admin decision anyway
2025-10-08 20:10:11 +01:00
947a1c1373 return utc as (values seconds nanos)
fractional seconds is just inviting too much fun with floating point
error
2025-10-08 20:10:11 +01:00
59eea64985 add tai64 module to anoia 2025-10-08 20:10:11 +01:00
a343e63231 rename logshipper -> logtap
- it matches the executable name
- it doesn't ship anything anyway, it's just plumbing
2025-10-08 20:10:11 +01:00
9f64eabeb4 rename incz package to logshippers 2025-10-08 20:10:11 +01:00
e55043a5a9 update uboot malta virtio support patch
compiler warnings are fatal, so add the header file that declares virtio_init
2025-04-15 12:57:28 +01:00
6a89b5b4d4 qemu 9.2 won't start network devices without romfile option 2025-04-14 21:27:44 +01:00
d749538e9e remove qemu vga adapter
it doesn't work with qemu 9.2 (coming soon) but we don't need it
anyway
2025-04-14 21:27:44 +01:00
e04724d7fc upgrade rp-pppoe 2025-04-14 21:27:44 +01:00
b3bdb5a9c4 output-template add lua type() function
I hope you never need it, but (1) I did; (2) it's harmless
2025-04-12 23:40:23 +01:00
8e5f3e29a7 don't write service properties with null values
because serialisation causes them to become empty strings
which are not null
2025-04-12 23:39:13 +01:00
d9723aeb87 secrets subscriber: make restart-all work 2025-03-31 23:01:48 +01:00
1a6160bcab firewall: show how to ratelimit icmp6 to 5% of available bandwidth
it's a little klunky as yet, requires setting properties.bandwidth on
the interface service
2025-03-25 23:53:02 +00:00
b1bf13bb01 add svc:directory, mostly for use in debugging messages 2025-03-25 23:47:01 +00:00
c3f550698d watch-outputs fix update logic
it was only working by accident, when it worked, which was by no
means all of the time

note that we unconditionally perform the action (restart or whatever)
once we've started and got the initial state of the outputs. That's
because we have no idea whether the outputs changed in the interval
between the controlled service initially starting and watch-outputs
starting, so updates in that interval could be lost
2025-03-25 23:44:21 +00:00
05991225de anoia.svc allow open of a service that is not yet running
we change the inotify watcher so that it attempts to monitor
/run/service as well as /run/service/foo. If foo doesn't yet exist
then that call to addwatch fails, so we need to be looking at the
parent if we are to be told when foo gets created
2025-03-25 23:37:58 +00:00
7ce1c6bb7d add realpath to lualinux 2025-03-24 22:39:59 +00:00
8440378a39 anoia: make dirname handle tralning / like posix 2025-03-24 22:37:24 +00:00
0ae5689a40 support maps in firewallgen 2025-03-21 21:19:18 +00:00
45047dc023 squahs falls back 2025-03-21 21:09:05 +00:00