Page MenuHomeFreeBSD

ifconfig: Fix the -L flag when using netlink
AcceptedPublic

Authored by markj on Thu, Dec 18, 7:37 PM.
Tags
None
Referenced Files
F140032388: D54294.id.diff
Fri, Dec 19, 7:51 AM
F140031826: D54294.id.diff
Fri, Dec 19, 7:38 AM
F140008618: D54294.diff
Thu, Dec 18, 11:26 PM
F140005074: D54294.id168358.diff
Thu, Dec 18, 10:14 PM

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69380
Build 66263: arc lint + arc unit