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)
Wed, Jul 15, 7:04 AM
Unknown Object (File)
Wed, Jul 15, 7:04 AM
Unknown Object (File)
Thu, Jun 18, 12:09 PM
Unknown Object (File)
Jun 16 2026, 8:23 AM
Unknown Object (File)
Jun 14 2026, 12:39 PM
Unknown Object (File)
Jun 13 2026, 12:47 AM
Unknown Object (File)
Jun 13 2026, 12:35 AM
Unknown Object (File)
Jun 9 2026, 12:46 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 .