Page MenuHomeFreeBSD

ifconfig: Fix the -L flag when using netlink
ClosedPublic

Authored by markj on Thu, Dec 18, 7:37 PM.
Tags
None
Referenced Files
F141978508: D54294.diff
Wed, Jan 14, 11:17 AM
Unknown Object (File)
Sun, Jan 11, 2:12 PM
Unknown Object (File)
Sat, Jan 10, 5:42 PM
Unknown Object (File)
Sat, Jan 10, 7:21 AM
Unknown Object (File)
Wed, Jan 7, 8:08 PM
Unknown Object (File)
Tue, Jan 6, 3:07 PM
Unknown Object (File)
Mon, Jan 5, 4:56 AM
Unknown Object (File)
Mon, Jan 5, 2:35 AM

Details

Summary

By default, when ifconfig shows a v6 address derived from a
router-advertised prefix, it shows the initial preferred and valid
lifetimes. When -L is specified, it is supposed to show the remaining
lifetimes, but this was broken in the conversion to netlink.

Fix that, and add a regression test which validates ifconfig output
before and after a short-lived address expires.

Fixes: 4c91a5dfe483 ("ifconfig: make interface and address listing use Netlink as transport")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable