From 773ccd5d46f25cab4cf679f4c96287c9cd8581fe Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Mon, 30 Nov 2015 22:45:18 +0100 Subject: [PATCH] txtinfo: add /runtime and /startup commands Signed-off-by: Ferry Huberts --- lib/txtinfo/src/olsrd_txtinfo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c index 13a4e9c0..8b4742b5 100644 --- a/lib/txtinfo/src/olsrd_txtinfo.c +++ b/lib/txtinfo/src/olsrd_txtinfo.c @@ -375,8 +375,13 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int else if (strstr(requ, "/all")) send_what = SIW_ALL; else { - /* print out every combinations of requested tabled - * 3++ letter abbreviations are matched */ + // these are the two overarching categories + if (strstr(requ, "/runtime")) + send_what |= SIW_RUNTIME_ALL; + if (strstr(requ, "/startup")) + send_what |= SIW_STARTUP_ALL; + + // these are the individual sections if (strstr(requ, "/nei")) send_what |= SIW_NEIGHBORS; if (strstr(requ, "/lin")) -- 2.20.1