[patch] ifconfig -L shows inet6 addresses pltime and vltime as zero since 10.0-RELEASE
Guy Yur
guyyur at gmail.com
Sat Apr 12 16:05:43 UTC 2014
Hi,
"ifconfig -L" shows inet6 addresses pltime and vltime as zero since
10.0-RELEASE.
Seems that ifconfig was missed in r253970 which
changed usage from time_second to time_uptime.
I filed bin/188520 with a patch to use clock_gettime(CLOCK_MONOTONIC_FAST)
in ifconfig per r253970 comment.
http://www.freebsd.org/cgi/query-pr.cgi?pr=188520
ifconfig -L
...
inet6 XXXX:XXXX:XXXX:XXXX:YYYY:YYYY:YYYY:YYYY
prefixlen 64 autoconf temporary pltime 0 vltime 0
The prefix is learned via router advertisment.
tcpdump shows non zero values in the icmp6 packet.
A test program that calls SIOCGIFALIFETIME_IN6
shows the value is < wall clock which is
the test done by ifconfig.
time = 1397314436
ia6t_preferred = 608907
ia6t_expire = 2596107
Thanks,
Guy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifconfig_af_inet6_monotonic.patch
Type: application/octet-stream
Size: 2373 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20140412/98b3d657/attachment.obj>
More information about the freebsd-net
mailing list