[Bug 270351] Incompatible change in route(8) utility since 13.x

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 21 Mar 2023 08:52:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270351

--- Comment #4 from Jamie Landeg-Jones <jamie@catflap.org> ---
(In reply to Eugene Grosbein from comment #2)

> The task is look up a route not knowing a mask beforehand and find the mask.

But did it ever work though? I'm sure that on 12.X and earlier, it's not
actually finding the mask, it's just assuming you're looking for a /24.

If you try creating (say) a /23 instead of a 24, you'll find the 'route -n get
-net 192.168.0.0" doesn't return the /23, it instead fails.

The confusion to me is that it now seems that "-net" / "-host" are redundant. -
A "net" without a mask is now considered a host, not given the old pre-cidr
default mask.

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