Commit Graph

46 Commits

Author SHA1 Message Date
oysteikt 6dd67cdb50 test/rcon: name sockets fds more clearly
Distinguishing between `sv[0]` and `sv[1]` gets old after a while...
Let's name them `client` and `server` for clarity.
2026-06-12 00:09:52 +09:00
oysteikt b8d861cc84 rcon: handle recv_packet with body size 0 2026-06-12 00:09:52 +09:00
oysteikt 8c0e5fae40 .gitea/workflows/build-and-test: run rsync with --checksum for coverage report upload 2026-06-11 23:05:14 +09:00
oysteikt a36c1cbcc3 .gitea/workflows/build-and-test: build nix outputs with -L
Build and test / build-freebsd-cross (push) Successful in 56s
Build and test / build (push) Successful in 59s
Build and test / test (push) Successful in 1m14s
2026-06-11 18:14:14 +09:00
oysteikt 1e9e711a71 .gitea/workflows/build-and-test: run rsync with --delete for coverage report upload
Build and test / build (push) Successful in 56s
Build and test / test (push) Successful in 1m12s
Build and test / build-freebsd-cross (push) Successful in 1m57s
2026-06-11 18:13:08 +09:00
oysteikt ee2b648c9a nix/coverage-html: use line coverage for badge number
Build and test / build (push) Successful in 56s
Build and test / build-freebsd-cross (push) Successful in 1m2s
Build and test / test (push) Successful in 1m6s
2026-06-11 18:08:05 +09:00
oysteikt 28ddaff0b7 rcon.c: fix freebsd cross
Build and test / build-freebsd-cross (push) Successful in 57s
Build and test / build (push) Successful in 1m4s
Build and test / test (push) Successful in 2m48s
2026-06-11 17:52:24 +09:00
oysteikt 3b92010f20 README: add link to coverage
Build and test / build (push) Successful in 1m3s
Build and test / build-freebsd-cross (push) Failing after 1m3s
Build and test / test (push) Successful in 1m6s
2026-06-11 17:45:11 +09:00
oysteikt b39e41f294 flake.nix: add libllvm to devshell
Build and test / build-freebsd-cross (push) Failing after 1m2s
Build and test / build (push) Successful in 1m4s
Build and test / test (push) Successful in 1m13s
2026-06-11 17:42:05 +09:00
oysteikt 10c8780027 nix/coverage-html: generate badge 2026-06-11 17:41:49 +09:00
oysteikt 6b69812a3a nix/coverage-html: ignore header files 2026-06-11 17:41:23 +09:00
oysteikt 16e9f12a34 Split off rcon related code into separate source file
Also rename tests and rename some constants, and modify Makefile to
handle the new structure.
2026-06-11 17:02:21 +09:00
oysteikt d3e4b35b73 flake.nix: ensure llvm profile outputs end up in output 2026-06-11 16:57:47 +09:00
oysteikt e33c1b65e2 .gitignore: ignore coverage outputs 2026-06-11 16:54:42 +09:00
oysteikt 4ea2888ddf flake.nix: make gitea workflows runnable locally through nix run
Build and test / build (push) Successful in 1m0s
Build and test / test (push) Successful in 1m6s
Build and test / build-freebsd-cross (push) Successful in 1m45s
2026-06-11 04:38:39 +09:00
oysteikt 89571ab9a2 .gitea/workflows/build-and-test: init 2026-06-11 04:38:39 +09:00
oysteikt 7c2b7e5ea8 main.c: remove unused argc + argv 2026-06-11 04:32:50 +09:00
oysteikt f847eda400 flake.nix: add package for generating coverage output 2026-06-11 04:32:35 +09:00
oysteikt ca3139fe3b tests: create some basic unit tests 2026-06-11 04:31:54 +09:00
oysteikt 4afb710413 flake.nix: build packages with clang 2026-05-13 09:31:54 +02:00
oysteikt ca540543ed flake.nix: fix use of clang in devshell 2026-05-13 09:31:54 +02:00
oysteikt 16b83475c2 recv_packet: calculate valid package sizes from struct size 2026-05-12 20:06:15 +09:00
oysteikt ef973d9532 {send,recv}_packet: embed last padding byte in package struct and fix sizes accordingly 2026-05-12 20:06:15 +09:00
oysteikt ba31695c9b {send,recv}_packet: use compiler intrinsics to fix endianness on all platforms 2026-05-12 20:06:15 +09:00
oysteikt 061101731c Makefile: build against C23 with GNU extensions 2026-05-12 20:06:15 +09:00
oysteikt 13c8ced533 recv_packet: fix reported packet size on abnormal payloads 2026-05-12 19:21:09 +09:00
frero b8c8d886ab add gplv3 license 2026-05-12 11:19:22 +02:00
oysteikt 3c8d72f8d8 Makefile: strip symbols on release build 2026-02-12 10:24:58 +01:00
frero e34c59fed4 Merge pull request 'flake.nix: add nix package' (#5) from add-nix-package into hovudgren
Reviewed-on: #5
2026-02-12 10:24:04 +01:00
oysteikt 9629f86ba0 flake.nix: use lib.fileset for source filtering 2026-02-12 10:23:28 +01:00
oysteikt 8f6c41c47e flake.nix: add freebsd cross compiled variant of package 2026-02-12 10:23:28 +01:00
oysteikt 1669bc478f nix/package: init 2026-02-12 10:23:28 +01:00
oysteikt 81fededbc0 Makefile: add install target 2026-02-12 10:23:28 +01:00
oysteikt 9e0f8c1d85 .envrc: init 2026-02-12 09:53:55 +01:00
oysteikt 071d511e89 Makefile: split release/debug targets, add more compile flags 2026-02-09 11:07:45 +01:00
oysteikt c271425a55 README: add link to relevant bluemap code 2026-02-08 16:10:10 +09:00
frero 24b45c002f add readme 2026-02-08 00:46:18 +01:00
frero 9be78416d1 fix: remove double auth packet sending 2026-02-08 00:25:10 +01:00
frero ec39359931 ensure little endian 2026-02-08 00:12:29 +01:00
frero ac67ea4f7f more error handling 2026-02-07 23:38:49 +01:00
frero 366405c82a add some remote utility commands 2026-02-07 23:14:44 +01:00
frero 39a943e4cc send and receive packets 2026-02-07 22:35:46 +01:00
frero 4e0036e5f9 rcon protocol helpers 2026-02-07 22:16:12 +01:00
frero 27aa6fcd19 add rcon packet struct 2026-02-07 22:05:17 +01:00
frero 58dc45b910 get port number from envvar 2026-02-07 22:05:17 +01:00
frero f63f3fa4b7 initial hello world 2026-02-07 20:53:17 +01:00