diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-03 23:56:00 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-07 08:06:30 +0200 |
| commit | 4ff9887bfe630aa27178ec38c69e69f7960e1d50 (patch) | |
| tree | f118f96f921275effe92a15fc74af4e3a27f3717 /test/lib/git: | |
| parent | 7c5b1d72ffa4225929e99ac32604df4648d20eed (diff) | |
| download | passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar.gz passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar.bz2 passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar.lz passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar.xz passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.tar.zst passt-4ff9887bfe630aa27178ec38c69e69f7960e1d50.zip | |
conf, fwd: Allow switching to new rules received from pesto
We can now receive updates to the forwarding rules from the pesto client
and store them in a "pending" copy of the forwarding tables. Implement
switching to using the new rules.
The logic is in a new fwd_listen_switch(). For now this closes all
listening sockets related to the old tables, swaps the active and pending
tables, then listens based on the new tables. In future we look to improve
this so that we don't temporarily stop listening on ports that both the
old and new tables specify.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[sbrivio: In fwd_listen_switch(), use the destination size as argument
to memcpy(), instead of sizeof(tmp), as suggested by Laurent]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions
