FreeBSD 15 recently gained a nice feature called "exterr”, which allows syscalls to return an error message string in addition to an errno value.

that's nice for lots of things, but particularly for things like if_bridge that have a lot of error cases that return EINVAL and it's not really clear what's going on.

old behaviour:

# ifconfig bridge1 untagged epair2a 20
ifconfig: BRDGSIFPVID 20: Invalid argument

new behaviour:

# ifconfig bridge1 untagged epair2a 20
ifconfig: BRDGSIFPVID 20: Invalid argument (extended error VLAN filtering not enabled)

this only works for syscalls which have specifically added support for it, so it'll take a while for everything to get the new errors.

0
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/lw/statuses/114825310213039548 on your instance and quote it. (Note that quoting is not supported in Mastodon.)