mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Makes date/time formats configurable.
This commit is contained in:
@@ -1114,11 +1114,11 @@ static void
|
||||
rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d, ea_list *tmpa)
|
||||
{
|
||||
byte via[STD_ADDRESS_P_LENGTH+32], from[STD_ADDRESS_P_LENGTH+6];
|
||||
byte tm[TM_RELTIME_BUFFER_SIZE], info[256];
|
||||
byte tm[TM_DATETIME_BUFFER_SIZE], info[256];
|
||||
rta *a = e->attrs;
|
||||
|
||||
rt_format_via(e, via);
|
||||
tm_format_reltime(tm, e->lastmod);
|
||||
tm_format_datetime(tm, &config->tf_route, e->lastmod);
|
||||
if (ipa_nonzero(a->from) && !ipa_equal(a->from, a->gw))
|
||||
bsprintf(from, " from %I", a->from);
|
||||
else
|
||||
|
Reference in New Issue
Block a user