diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-03 23:55:57 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-07 08:06:30 +0200 |
| commit | fa0676869ff02e98facdf52e31dcba01f35983ad (patch) | |
| tree | 14ed7d7805581f64c1396eb3481cafccf151ab07 /test | |
| parent | 24c7ef9724929b6e7e3ffd35909f79f61959e57a (diff) | |
| download | passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar.gz passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar.bz2 passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar.lz passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar.xz passt-fa0676869ff02e98facdf52e31dcba01f35983ad.tar.zst passt-fa0676869ff02e98facdf52e31dcba01f35983ad.zip | |
pesto: Read current ruleset from passt/pasta and optionally display it
Implement serialisation of our current forwarding rules in conf.c,
deserialising it to display in the pesto client. Doing this requires
adding ip.c, inany.c, bitmap.c, lineread.c and fwd_rule.c to the pesto
build. With previous preparations that now requires only a trivial change
to lineread.c.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
[sbrivio: Use ntohs() for rule->to instead of htons() in
fwd_rule_read(), reported by Jon Maloy]
[sbrivio: Add upper bound check on pc->fwd.count for count of rules
received by pesto, reported missing by Laurent, plus nits also
reported by Laurent]
[sbrivio: Fix conflicts in Makefile]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
