[Bug 275146] [tcp] odd error handling from net.inet.tcp.functions_default sysctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Sep 2025 19:52:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275146

--- Comment #2 from Michael Tuexen <tuexen@freebsd.org> ---
The current code now returns `ENOENT` if the requested TCP function block does
not exist, `EINVAL` is returned if the requested function block cannot be the
default function block.  I think returning these different error causes makes
sense. It would be less informative to return `EINVAL` in both cases...

So I would vote for keeping the `errno` values as we have currently.

-- 
You are receiving this mail because:
You are the assignee for the bug.