Summary: | "route add 10/8 ip" adds 0.0.0.0/8, not 10.0.0.0/8 | ||
---|---|---|---|
Product: | Base System | Reporter: | Leo <grey.leo> |
Component: | bin | Assignee: | Mike Karels <karels> |
Status: | Closed DUPLICATE | ||
Severity: | Affects Some People | CC: | emaste, grey.leo, karels, zarychtam |
Priority: | --- | ||
Version: | 13.2-RELEASE | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258874 |
Description
Leo
2024-01-03 06:59:59 UTC
That's expected. Please see also bug 258874 I have a change to route to detect this error and complain about it. In response to "route add 10.8 ip", it prints this and exits non-zero: route: malformed address, bits set after mask; 10 means 0.0.0.10 Comments? I'll put the change into review soon. (In reply to Mike Karels from comment #2) Sorry, that should have been "route add 10/8 ip". I committed a change to route that causes attempts to add such a route to fail with an error; see the note on the associated bug (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258874#c14). I plan to close this bug as a duplicate of that bug when that bug is closed. 258874 was fixed by failing to add a bogus route, and explaining the problem in the error message. *** This bug has been marked as a duplicate of bug 258874 *** |