Summary: | Calling route delete with an invalid gateway deletes the route | ||
---|---|---|---|
Product: | Base System | Reporter: | Lomash Gupta <lgupta> |
Component: | kern | Assignee: | freebsd-net (Nobody) <net> |
Status: | New --- | ||
Severity: | Affects Many People | CC: | emaste, ghuckriede, melifaro |
Priority: | --- | ||
Version: | 12.2-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Lomash Gupta
2021-02-18 14:13:49 UTC
IIRC gateway value is simply ignored in GENERIC kernel - the only thing that code checks is the prefix. This part has been changed in 13 - if a gateway is specified, then the route gateway(s) are checked for the match. I agree that 12 behaviour may look weird, however, that's what existed historically. I'm not sure if we can change it in FreeBSD 12, as we need to preserve compatibility any people may rely on this behaviour. Re interface route: could you please clarify what do you think should be the expected behaviour? I'll close this PR on Jun 5 if there are no other questions. |