projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure the top command can be used more than once in tincctl's shell.
[tinc]
/
src
/
info.c
diff --git
a/src/info.c
b/src/info.c
index
df5d11d
..
18b8e24
100644
(file)
--- a/
src/info.c
+++ b/
src/info.c
@@
-33,7
+33,7
@@
void logger(int level, int priority, const char *format, ...) {
va_end(ap);
}
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;
int len = strlen(netstr);
if(len >= 3 && !strcmp(netstr + len - 3, "#10"))
netstr[len - 3] = 0;
@@
-104,8
+104,8
@@
static int info_node(int fd, const char *item) {
printf(" reachable");
if(status.indirect)
printf(" indirect");
printf(" reachable");
if(status.indirect)
printf(" indirect");
- if(status.
ecdh
)
- printf("
ecdh
");
+ if(status.
sptps
)
+ printf("
sptps
");
printf("\n");
printf("Options: ");
if(options & OPTION_INDIRECT)
printf("\n");
printf("Options: ");
if(options & OPTION_INDIRECT)