diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-03 23:55:53 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-07 08:06:30 +0200 |
| commit | f1d893ca1926e58ae5a2bf5602b515a883f3f994 (patch) | |
| tree | 4e5473d65d2c94f5a4991345337b5c65bca3ff54 /test | |
| parent | 8ad7dd45281935e8fd471fb3d3d33875ce4192b3 (diff) | |
| download | passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar.gz passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar.bz2 passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar.lz passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar.xz passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.tar.zst passt-f1d893ca1926e58ae5a2bf5602b515a883f3f994.zip | |
pesto, conf: Have pesto connect to passt and check versions
Start implementing pesto in earnest. Create a control/configuration
socket in passt. Have pesto connect to it and retrieve a server greeting
Perform some basic version checking.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[sbrivio: Avoid potential recursive calling between conf_accept() and
conf_close(), reported by clang-tidy]
[sbrivio: In conf(), check we're not exceeding sizeof(c->control_path)
instead of sizeof(c->socket_path), and, in pesto's main(), print
argv[optind] instead of argv[1] to indicate an invalid socket path,
both reported by Jon Maloy]
[sbrivio: In pesto's main(), drop unnecessary newline from error
message, reported by Laurent]
[sbrivio: Don't use SOCK_NONBLOCK on accept4(), as that only applies
to the *new* file descriptor, which we don't want -- set O_NONBLOCK
on the listening file descriptor using fcntl()]
[sbrivio: Switch to protocol version 1, and reflect the true magic
behind pesto, i.e. basil, into the magic string]
[sbrivio: Fix conflicts in the Makefile caused by the fact that I'm
not merging a previous series reworking it]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
