redesigned formatting of ipsec status|statusall

This commit is contained in:
Andreas Steffen
2006-11-01 17:28:47 +00:00
parent 1f9160614a
commit efa0ed68cf
4 changed files with 62 additions and 40 deletions
+5 -3
View File
@@ -164,9 +164,11 @@ static int print(FILE *stream, const struct printf_info *info,
{
return fprintf(stream, "(null)");
}
return fprintf(stream, "%llx:%llx[%c]",
this->initiator_spi, this->responder_spi,
this->is_initiator_flag ? 'i' : 'r');
return fprintf(stream, "0x%0llx_i%s 0x%0llx_r%s",
this->initiator_spi,
this->is_initiator_flag ? "*" : "",
this->responder_spi,
this->is_initiator_flag ? "" : "*");
}
/**