txtinfo: add /runtime and /startup commands
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 30 Nov 2015 21:45:18 +0000 (22:45 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 17:41:12 +0000 (18:41 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 13a4e9c..8b4742b 100644 (file)
@@ -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"))