Add readline completion for tincctl config and tincctl info.
[tinc] / src / info.c
index eb0d395..18b8e24 100644 (file)
@@ -33,7 +33,7 @@ void logger(int level, int priority, const char *format, ...) {
         va_end(ap);
 }
 
-static char *strip_weight(char *netstr) {
+char *strip_weight(char *netstr) {
        int len = strlen(netstr);
        if(len >= 3 && !strcmp(netstr + len - 3, "#10"))
                netstr[len - 3] = 0;
@@ -104,6 +104,8 @@ static int info_node(int fd, const char *item) {
                printf(" reachable");
        if(status.indirect)
                printf(" indirect");
+       if(status.sptps)
+               printf(" sptps");
        printf("\n");
        printf("Options:     ");
        if(options & OPTION_INDIRECT)