| Summary: | [tcp] odd error handling from net.inet.tcp.functions_default sysctl | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Ed Maste <emaste> |
| Component: | kern | Assignee: | freebsd-net (Nobody) <net> |
| Status: | New --- | ||
| Severity: | Affects Only Me | CC: | asomers, tuexen |
| Priority: | --- | ||
| Version: | 14.0-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Ed Maste
2023-11-17 00:27:06 UTC
Proposed patch from zlei in https://reviews.freebsd.org/D42647 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. I agree with Michael, too. |