mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 17:15:51 +00:00
ip: fix display of prefix cache info
The "ip monitor" command does properly decode the "preferred" and "valid" lifetime records in router advertisements from netlink messages.
This commit is contained in:
parent
c441bd4c1b
commit
c13f598242
@ -92,7 +92,7 @@ int print_prefix(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||
|
||||
if (tb[PREFIX_CACHEINFO]) {
|
||||
struct prefix_cacheinfo *pc;
|
||||
pc = (struct prefix_cacheinfo *)tb[PREFIX_CACHEINFO];
|
||||
pc = (struct prefix_cacheinfo *)RTA_DATA(tb[PREFIX_CACHEINFO]);
|
||||
|
||||
fprintf(fp, "valid %u ", pc->valid_time);
|
||||
fprintf(fp, "preferred %u ", pc->preferred_time);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user