HomeFreeBSD

ifconfig: Exit with a non-zero status when SIOCSIFFIB fails

Description

ifconfig: Exit with a non-zero status when SIOCSIFFIB fails

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 is wrong.

Add a little regression test.

Reviewed by: pouria, zlei, melifaro
MFC after: 2 weeks
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D54918

Details

Provenance
markjAuthored on Jan 28 2026, 4:11 PM
Reviewer
pouria
Differential Revision
D54918: ifconfig: Report errors from failed FIB commands
Parents
rGb41b6fdb3a16: flua: lposix: fix WARNS=6 issues
Branches
Unknown
Tags
Unknown