routing: Use a better error number in sysctl_fibs()

ENOTCAPABLE is for capsicum and its use here is inappropriate.  In
particular, note that syscallret() treats this value specially.

Reviewed by:	glebius, pouria, zlei
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56481
This commit is contained in:
Mark Johnston
2026-04-18 12:21:22 +00:00
parent 2b264cb802
commit 8de0fc10a1
+1 -1
View File
@@ -132,7 +132,7 @@ sysctl_fibs(SYSCTL_HANDLER_ARGS)
new_fibs = normalize_num_rtables(new_fibs);
if (new_fibs < V_rt_numfibs)
error = ENOTCAPABLE;
error = EINVAL;
if (new_fibs > V_rt_numfibs)
grow_rtables(new_fibs);
}