[Bug 274426] route get command returns a zero even no route is found

2023-12-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Dmitry Afanasiev  changed:

   What|Removed |Added

   Severity|Affects Only Me |Affects Some People

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


[Bug 274426] route get command returns a zero even no route is found

2023-12-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Sergey Zhmylove  changed:

   What|Removed |Added

 CC||zhmyl...@narod.ru

--- Comment #4 from Sergey Zhmylove  ---
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: 
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.


[Bug 274426] route get command returns a zero even no route is found

2023-12-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Dmitry Afanasiev  changed:

   What|Removed |Added

Version|14.0-CURRENT|14.0-RELEASE

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


[Bug 274426] route get command returns a zero even no route is found

2023-12-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

--- Comment #3 from Dmitry Afanasiev  ---
Also I tried to download official VM image from
https://download.freebsd.org/releases/VM-IMAGES/14.0-RELEASE/amd64/Latest/FreeBSD-14.0-RELEASE-amd64.raw.xz

I got same behavior:
root@freebsd:~ # uname -a
FreeBSD freebsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0
releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023
r...@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@freebsd:~ # route -6 delete default
delete net default
root@freebsd:~ # route -6 get ::
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.


[Bug 274426] route get command returns a zero even no route is found

2023-12-27 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

--- Comment #2 from Dmitry Afanasiev  ---
(In reply to Mark Johnston from comment #1)
What freebsd version are you using?

I'm updated to 14.0-STABLE to commit e373880312fb8ea09c501975e1fd23234a0df1e3
and still have this problem:
$ uname -a
FreeBSD cat 14.0-STABLE FreeBSD 14.0-STABLE #9 e37388031: Wed Dec 27 11:50:11
MSK 2023 root@cat:/usr/obj/usr/src/amd64.amd64/sys/desktop amd64
$ route -6 get ::  
route: route has not been found: No error: 0
$ echo $?  
0
$ route -6 get 2000::  
route: route has not been found: No error: 0
$ echo $?  
0

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


[Bug 274426] route get command returns a zero even no route is found

2023-10-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Mark Johnston  changed:

   What|Removed |Added

 CC||ma...@freebsd.org

--- Comment #1 from Mark Johnston  ---
Seems to work correctly on main:

markj@nuc> route -6 get ::
route: route has not been found
markj@nuc> echo $?
255

Presumably the difference here is that route(8) is using netlink by default.

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


[Bug 274426] route get command returns a zero even no route is found

2023-10-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

Graham Perrin  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|n...@freebsd.org
 Status|New |Open
   Keywords||ipv6, needs-qa

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