Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2023 09:17:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 274426] route get command returns a zero even no route is found
Message-ID:  <bug-274426-7501-Cj49eb0LPW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274426-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274426-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Sergey Zhmylove <zhmylove@narod.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zhmylove@narod.ru

--- Comment #4 from Sergey Zhmylove <zhmylove@narod.ru> ---
Hey everyone,

Checked on 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4 and it looks like
RELEASE is affected :(

Even if I specify non-zero prefix:

root@freebsd:~ # route -6 get ::/11
route: route has not been found: No error: 0
root@freebsd:~ # echo $?
0

Moreover deleting existing route leads to the same issue:

root@freebsd:~ # route -6 get 2000::1
   route to: 2000::1
destination: default
       mask: default
    gateway: fe80::5054:ff:feb5:5748%vtnet0
        fib: 0
  interface: vtnet0
      flags: <UP,GATEWAY,DONE>
recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0 
root@freebsd:~ # route -6 delete default
delete net default
root@freebsd:~ # route -6 get 2000::1
route: route has not been found: No error: 0
root@freebsd:~ # echo $?
0

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274426-7501-Cj49eb0LPW>