Page MenuHomeFreeBSD

ifconfig: Report errors from failed FIB commands
ClosedPublic

Authored by markj on Jan 27 2026, 6:32 PM.
Tags
None
Referenced Files
F150069359: D54918.id170647.diff
Sun, Mar 29, 3:35 AM
Unknown Object (File)
Fri, Mar 27, 11:17 AM
Unknown Object (File)
Fri, Mar 13, 9:33 PM
Unknown Object (File)
Mon, Mar 9, 2:46 PM
Unknown Object (File)
Fri, Mar 6, 11:16 PM
Unknown Object (File)
Feb 12 2026, 4:55 AM
Unknown Object (File)
Feb 10 2026, 12:22 AM
Unknown Object (File)
Feb 7 2026, 2:13 PM

Details

Summary

Previously, setting an interface FIB to some invalid value would result
in a warning being printed, but the ifconfig command would exit with
status 0, but this seems wrong.

Diff Detail

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

Event Timeline

markj requested review of this revision.Jan 27 2026, 6:32 PM
This revision is now accepted and ready to land.Jan 27 2026, 9:20 PM
zlei added a subscriber: zlei.

Looks good to me.

zlei added inline comments.
sbin/ifconfig/iffib.c
97

CC the author @melifaro to see if the warn() is intentional .