]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: tools: provide a tree dump function for ebmbtrees as well
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Aug 2022 09:55:57 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Aug 2022 09:59:15 +0000 (11:59 +0200)
commit0dc9e6dca2b32a288dcd272b4606a01fa712010c
tree62268a43f60d08f0c07c792d5f5b8a8ae9fc367b
parent87aff021dba41715d3a3e0dab9fcd685b38498da
DEBUG: tools: provide a tree dump function for ebmbtrees as well

It's convenient for debugging IP trees. However we're not dumping the
full keys, for the sake of simplicity, only the 4 first bytes are dumped
as a u32 hex value. In practice this is sufficient for debugging. As a
reminder since it seems difficult to recover the command each time it's
needed, the output is converted to an image using dot from Graphviz:

    dot -o a.png -Tpng dump.txt
include/haproxy/tools.h
src/tools.c