- Last Change:
- Clone URL:
ssh://anonymous@rsadowski.gothub.org:2242/relayctl.git
- ECDSA:
SHA256:Oq94TREAyXnZDrdacYaMwJnEVSPH4q+LaRHm/zHWzEY
- ED25519:
SHA256:ifzNYlBwG2RJUJ5G0c/Ec/Ggry4qeZBlg2SMMkdmHm8
- RSA:
SHA256:ic1xfYGl/bQ07MLkmBh3GjgznuKfAzIxsUmla82R9GY
Commit Briefs
relayctl: rework show output and add -v flag (devel, main)
- Added -v flag for more detailed output. - Replaced tab separators with space-padded, truncated columns (%.Ns) for stable alignment. - Added a new "Checks" column for host checks (N/N), replacing the total: N/N checks sub-line. - Shortened redirect to rdr in the Type column to stay under 80 columns. - Without -v: compact status (down); with -v: error inlined (down (tcp connect timeout)). - Table status shows host count (N hosts) only with -v. - retries sub-line only appears with show hosts -v. - show hosts no longer lists tables; use show summary for that. OK kirill@
relayctl: switch to imsg_get_* API
Use imsg_get_data() with size validation instead of casting imsg->data directly and imsg_get_type/len/id/pid() instead of imsg->hdr.* acc Structs like rdr/table/host.... carry embedded string buffers like name, label. When such a struct crosses a privilege boundary the receiver cannot Structs that the string is actually NUL terminated, so force a '\0' in the last byte after imsg_get_data(). Not strictly required here because relayd is the sender, but a good habit for imsg consumers. embedded string buffer hint by claudio@, OK claudio@
relayd/relayctl: convert imsg_get() to imsgbuf_get()
The special return value is unused, so it's just using the other function. ok rsadowski
Unify error reporting in various control programs.
Just use "read error" since the code also uses "write error" for the imsg_flush case. OK tb@
Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush. This separates the imsgbuf API from the per-imsg API. OK tb@
