aboutgitcodebugslistschat
path: root/test/tcp
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-06-20 01:26:21 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-06-22 09:13:46 +0200
commitd66a3f18138f94a3a7f8674d75551e7a844a1308 (patch)
tree4a8d8a28564b822e83ccbf86d162ad58467c870e /test/tcp
parent3f57f0382f6a72c0b8ce0c5ff92248b5117ed9b6 (diff)
downloadpasst-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar.gz
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar.bz2
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar.lz
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar.xz
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.tar.zst
passt-d66a3f18138f94a3a7f8674d75551e7a844a1308.zip
flow: Regularise flow specific logging helpers
flow.h has a collection of logging helpers that automatically include information about a specific flow. Which variants are present are a bit ad-hoc, based on what we happened to want use (e.g. there are no LOG_WARNING level versions, at present). There's also a rather awkward and only occasionally used flow_log_details_() helper to print additional log messages with more details of the flow (basically its addresses). It's particularly awkward to try to combine that with ratelimiting. Re-organise this to be based around a flow_log__() internal helper, which has bool parameters to include strerror() / perror information and/or the extra details. Add wrapper macros for all combinations of perror, ratelimiting and DEBUG/WARNING/ERR priorities. Be a little more consistent about parameter order between the various functions / macros / wrappers while we're at it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp')
0 files changed, 0 insertions, 0 deletions