aboutgitcodebugslistschat
path: root/test/lib/git:/passt.top
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-05-03 23:56:00 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-07 08:06:30 +0200
commit4ff9887bfe630aa27178ec38c69e69f7960e1d50 (patch)
treef118f96f921275effe92a15fc74af4e3a27f3717 /test/lib/git:/passt.top
parent7c5b1d72ffa4225929e99ac32604df4648d20eed (diff)
downloadpasst-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:/passt.top')
0 files changed, 0 insertions, 0 deletions