summaryrefslogtreecommitdiff
path: root/babeld/util.c
diff options
context:
space:
mode:
authorMatthieu Boutier <boutier@pps.jussieu.fr>2012-01-19 22:36:56 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:52 +0100
commitd3351d1ebf99591cf436035bb148e4ae0b351ffc (patch)
treef0e5286ec77fe2bab401343df6ce32e79a7b963b /babeld/util.c
parent1f39f466e439f217dcbae741ddc23a5340a05ec9 (diff)
babeld: add command: "show_babel_running_config".
Diffstat (limited to 'babeld/util.c')
-rw-r--r--babeld/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/babeld/util.c b/babeld/util.c
index f1ac0f15..514e0ff3 100644
--- a/babeld/util.c
+++ b/babeld/util.c
@@ -298,6 +298,10 @@ format_eui64(const unsigned char *eui)
return buf[i];
}
+const char *format_bool(const int b) {
+ return b ? "true" : "false";
+}
+
int
parse_address(const char *address, unsigned char *addr_r, int *af_r)
{