Page MenuHomeFreeBSD

ifconfig: Report errors from failed FIB commands
ClosedPublic

Authored by markj on Jan 27 2026, 6:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 9:22 PM
Unknown Object (File)
Sun, May 17, 9:15 PM
Unknown Object (File)
Sun, May 17, 4:02 AM
Unknown Object (File)
Sun, May 17, 4:00 AM
Unknown Object (File)
Thu, May 14, 6:37 AM
Unknown Object (File)
Thu, May 14, 4:37 AM
Unknown Object (File)
Thu, May 14, 1:22 AM
Unknown Object (File)
Thu, May 14, 1:22 AM

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 .