On Thu, May 24, 2018 at 5:35 AM Denis Fondras <de...@openbsd.org> wrote:
> Hi, > > On Wed, May 23, 2018 at 10:34:19PM -0400, David Higgs wrote: > > I am using route(8) in a script but found some odd behavior when > > querying routes for some IPv6 addresses - lookups seem to fail if the > > trailing address bytes are zero (implicit or explicitly) as shown > > below. However, the routing table still seems to be forwarding > > traffic correctly, as shown in my final example. > > > > Can anyone shed light on this, perhaps explain how I'm misusing route(8)? > > > > route is getting confused between host address and network address. > Try with route -n get 2607:f8b0:4004:805::/128 Awesome, that should fix my script. But shouldn’t the answer be the same, since I have a valid default route? —david