[Olsr-dev] [PATCH v1 007/115] txtinfo: add /runtime and /startup commands
Ferry Huberts
(spam-protected)
Wed Dec 2 21:27:40 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
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 13a4e9c..8b4742b 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.5.0
More information about the Olsr-dev
mailing list