Page MenuHomeFreeBSD

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

Authored by rew on Aug 11 2020, 7:34 AM.
Referenced Files
Unknown Object (File)
Sat, Sep 16, 11:55 PM
Unknown Object (File)
Wed, Sep 13, 11:58 PM
Unknown Object (File)
Wed, Sep 6, 9:49 AM
Unknown Object (File)
Aug 23 2023, 3:11 PM
Unknown Object (File)
Jul 9 2023, 7:33 PM
Unknown Object (File)
Jul 2 2023, 5:30 PM
Unknown Object (File)
Jul 2 2023, 2:29 AM
Unknown Object (File)
Jun 29 2023, 7:03 AM



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.

Diff Detail

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