-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround to ignore interfaces name truncated by netstat
When interface names are longer than 7 characters, netstat will truncate them to the first 7 chars which leads to looking up an invalid interface name. We attempt to guess the name of the interface based on the output of ifconfig -l. If there is only one candidate we consider it, otherwise we ignore it.
- Loading branch information
Showing
2 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters