opnsense-src/sbin/ifconfig
Mark Johnston 4bc309c96f 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

(cherry picked from commit 2ea85a622bcba92a7b58901d6a6e945df3022c4e)
2026-02-18 12:53:20 +01:00
..
tests ifconfig: Exit with a non-zero status when SIOCSIFFIB fails 2026-02-18 12:53:20 +01:00
af_inet.c ifconfig: Fix default netmask calculation 2024-06-15 17:24:59 +02:00
af_inet6.c ifconfig: fix removing IPv6 addresses 2026-02-18 12:52:56 +01:00
af_link.c ifconfig: fix 'ifconfig -l ether' 2026-02-18 12:52:38 +01:00
af_nd6.c Migrate from printb to print_bits for locally defined bit fields. 2025-10-23 08:16:04 +02:00
carp.c carp: don't unintentionally revert to multicast mode 2025-02-11 17:52:42 +01:00
ifbridge.c ifconfig: Support VLAN ID in static/deladdr 2025-08-26 10:27:25 +02:00
ifclone.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
ifconfig.8 ifconfig.8: Mention max name length 2026-02-18 12:53:12 +01:00
ifconfig.c ifconfig: fix logical error in interface matching for '-l ether' 2026-02-18 12:52:25 +01:00
ifconfig.h ifconfig: fix 'ifconfig -l ether' 2026-02-18 12:52:38 +01:00
ifconfig_netlink.c ifconfig: fix 'ifconfig -l link' 2026-02-18 12:52:47 +01:00
ifconfig_netlink.h ifconfig: make interface and address listing use Netlink as transport 2023-05-16 19:39:13 +00:00
iffib.c ifconfig: Exit with a non-zero status when SIOCSIFFIB fails 2026-02-18 12:53:20 +01:00
ifgif.c Migrate from printb to print_bits for locally defined bit fields. 2025-10-23 08:16:04 +02:00
ifgre.c ifconfig: fix gre(4) status 2026-02-18 12:52:13 +01:00
ifgroup.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
ifieee80211.c ifconfig: 802.11: decode more information elements (IEs) 2025-07-09 10:05:46 +02:00
ifipsec.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
iflagg.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
ifmac.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ifmedia.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
ifpfsync.c ifconfig: Fix wrong indentation for the status of pfsync(4) 2024-10-31 12:40:16 +08:00
ifstf.c ifconfig: remove (most of) the usages of global 'struct ifreq ifr'. 2023-06-16 07:19:21 +00:00
ifvlan.c ifconfig: Redo fix vlan/vlanproto reconfiguration 2024-05-25 00:03:02 +08:00
ifvxlan.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sfp.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00