Page MenuHomeFreeBSD

ifconfig: Fix the -L flag when using netlink
ClosedPublic

Authored by markj on Dec 18 2025, 7:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 13, 8:48 PM
Unknown Object (File)
Thu, Jun 4, 11:12 AM
Unknown Object (File)
Thu, Jun 4, 11:12 AM
Unknown Object (File)
Thu, Jun 4, 11:11 AM
Unknown Object (File)
May 22 2026, 4:46 PM
Unknown Object (File)
May 14 2026, 3:35 PM
Unknown Object (File)
May 14 2026, 12:30 PM
Unknown Object (File)
May 14 2026, 5:24 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