opnsense-src/sbin/route
Oleg Streejak d32b38fd4a route: fix route -n monitor when its output is redirected
This is a small oversight in the transition to netlink; the non-netlink
implementation would explicitly flush its stdout as necessary to avoid
apparent long stalls in output when we end up fully-buffered.  Adjust
the netlink implementation to do the same.  This was noticed while
trying to triage failures in the wg-quick script.

Commit message by kevans, patch by author.

PR:		278265
Fixes:		091fec1188 ("route: switch transport protocol [...]")
Approved by:	so
Security:	FreeBSD-EN-25:14.route

(cherry picked from commit 97b61b22ed)
(cherry picked from commit dd695839efd80fe81143cd6c7a552c30df8448f6)
2025-08-08 11:49:20 +02:00
..
tests route: introduce add interface route test cases 2024-03-14 17:52:50 +08:00
keywords Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
route.8 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
route.c route: avoid overlapping strcpy 2024-08-08 14:59:15 -05:00
route_netlink.c route: fix route -n monitor when its output is redirected 2025-08-08 11:49:20 +02:00