Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Apr 2024 19:41:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278265] `route -n monitor' is quiet when redirecting its output
Message-ID:  <bug-278265-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278265

            Bug ID: 278265
           Summary: `route -n monitor' is quiet when redirecting its
                    output
           Product: Base System
           Version: 14.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: oleg@pcbtech.ru

Hello

It seems to me that this is an error at /sbin/route

This works fine

[qemu] ~ $ route -n monitor &
[1] 1526
[qemu] ~ $ arp -d 10.0.2.2 ; ifconfig gif0 create ; ifconfig gif0 destroy
10.0.2.2 (10.0.2.2) deleted
22:26:45.838 PID 1527 delete neigh 10.0.2.2 state REACHABLE lladdr
52:55:0a:00:02:02 iface em0=20
22:26:45.839 PID    0 add/repl neigh 10.0.2.2 state REACHABLE lladdr
52:55:0a:00:02:02 iface em0=20
22:26:45.840 PID    0 add/repl iface iface#3 gif0 admin DOWN oper DOWN mtu =
1280=20
22:26:45.843 PID    0 add/repl iface iface#3 gif0 admin DOWN oper DOWN mtu =
1280=20
22:26:45.843 PID    0 add/repl iface iface#3 gif0 admin DOWN oper DOWN mtu =
1280=20
22:26:45.843 PID    0 add/repl iface iface#3 gif0 admin DOWN oper DOWN mtu =
1280=20
22:26:45.845 PID    0 delete iface iface#3 gif0 admin DOWN oper DOWN mtu 12=
80=20

but

[qemu] ~ $ route -n monitor > temp.log &
[1] 1535
[qemu] ~ $ arp -d 10.0.2.2 ; ifconfig gif0 create ; ifconfig gif0 destroy
10.0.2.2 (10.0.2.2) deleted
[qemu] ~ $ ll temp.log=20
-rw-r--r--  1 root wheel 0 Apr  8 22:26 temp.log

file is zero length, there's no output from `route -n monitor' if we redire=
ct
it to file (or pipe within the script)

that's seems to be related w/ 14.0-RELEASE when monitor_nl() and NETLINK is
used by default as there's no such behaviour in 13.3-RELEASE

I've tested it on amd64 GENERIC (under qemu and on real hardware servers).
Found it while trying to fix wireguard wg-quick tool (see bug #275026)

--=20
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-278265-227>