Commit Briefs

5877655646 rsadowski

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@


d72422bd7f rsadowski

relayctl.8: name|id is required, not optional

OK kirill@


83da7b9b00 rsadowski

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@


b75abfda74 tb

relayd/relayctl: convert imsg_get() to imsgbuf_get()

The special return value is unused, so it's just using the other function. ok rsadowski


8c06ee3338 rsadowski

knfmt


faba4d91a0 claudio

Convert simple stuff in usr.sbin over to new imsgbuf_init behaviour

OK tb@


fc8eb334fd claudio

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@


2bad7ba2a4 claudio

Convert the common imsgbuf_read calls to the post EAGAIN world.

OK tb@


a5f723dc87 claudio

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@


80696ce4c7 claudio

Use imsg_flush() instead of implementing the same by hand.

OK tb@


Branches

Tags

This repository contains no tags

Tree