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;
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)
if(options & OPTION_CLAMP_MSS)
printf(" clamp_mss");
printf("\n");
+ printf("Protocol: %d.%d\n", PROT_MAJOR, OPTION_VERSION(options));
printf("Reachability: ");
if(!*port)
printf("can reach itself\n");