Page MenuHomeFreeBSD

Don't truncate interface names for periodic script: 420.status-network
ClosedPublic

Authored by rew on Aug 11 2020, 7:34 AM.
Tags
None
Referenced Files
F148923187: D26023.id.diff
Sat, Mar 21, 1:24 AM
F148895288: D26023.id.diff
Fri, Mar 20, 8:28 PM
F148884383: D26023.diff
Fri, Mar 20, 6:44 PM
Unknown Object (File)
Tue, Mar 17, 11:35 PM
Unknown Object (File)
Tue, Mar 17, 10:47 PM
Unknown Object (File)
Sun, Mar 8, 2:06 PM
Unknown Object (File)
Sat, Feb 28, 10:58 PM
Unknown Object (File)
Sat, Feb 28, 1:44 AM

Details

Summary

420.status-network uses netstat(1) to report interface status and by default
netstat(1) truncates interface names.

Add the -W (don't truncate interface names) flag to daily_status_network_netstat_flags
as a default in periodic.conf(5).

After this patch, the default 420.status-network command is netstat -i -d -W -n

There's a couple bug reports (linked below) where the expected behavior is to display
the entire interface name. It seems reasonable that this shoud be default behavior.

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable